Hi,
From last many days, I was trying to send mail from my application, FAILED all the time. I am giving here full information regarding the issue. If anyone had face this kind of issue please reply me.
First Way:
Second Way:Code:QDesktopServices::openUrl(QUrl("mailto:narendar.saini@xymob.com?subject=Test&body=Test Body"));
Added Headers:Code:QString body("This is to test"); body.replace(QLatin1Char('\n'),QLatin1String( "\r\n" )).remove( QLatin1String("\r\r" )); QByteArray encoded = "mailto:" + QUrl::toPercentEncoding( "narendar.saini@xymob.com" ) + "&subject=" + QUrl::toPercentEncoding("Playing with it") + "&body=" +QUrl::toPercentEncoding(body) ; QDesktopServices::openUrl( QUrl::fromEncoded( encoded ) );
QDesktopServices
QUrl
.Pro Entries
QT += core gui network
CONFIG += mobility
MOBILITY = messaging
symbian {
TARGET.UID3 = 0xe6dafc9d
TARGET.CAPABILITY += UserEnvironment NetworkServices LocalServices Location ReadUserData ReadDeviceData WriteUserData WriteDeviceData
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}
Target Device:
Nokia E7-00 (Without SIM Card, with Wi-Fi)
After building the App. I sent this file for Singing to Open Signed Online (Symbian). Here is the link
https://www.symbiansigned.com/app/pa...ignedOnline.do
Then I get singed sis file and when I install this file on my device (E7) both way to invoke default client not works.
Is this device issues? OR
Am I missing some signing related things? OR
Any other issue ?
Mailbox:
I have configured 2 mailboxes "Gmail" and "Yahoo Mail"
Note: If I load local Html file in Browser with hyperlink which contains "mailto...." then default mail client works. See this code
Please let me know if something is not clear....Code:QDesktopServices::openUrl(QUrl::fromLocalFile("E:/send_me_mail.html"));






