This page was last modified 11:27, 12 December 2007.
Sending Emails with RSendAs
From Forum Nokia Wiki
Code for sending emails
For sending emails the follwing code can be used
RSendAs send;
User::LeaveIfError(send.Connect());
CleanupClosePushL(send);
RSendAsMessage sendAsMessage;
sendAsMessage.CreateL(send, KUidMsgTypeSMTP);
CleanupClosePushL(sendAsMessage);
sendAsMessage.SetSubjectL(_L("Welcome back to symbian"));
sendAsMessage.AddRecipientL(
_L("you@me.com"),SendAsMessage::ESendAsRecipientTo);
//adding to field
sendAsMessage.SetBodyTextL(_L("somebody@world.com"));
TRequestStatus status;
//adding attachments
sendAsMessage.AddAttachment(_L("c:\\splash.bmp"),status);
User::WaitForRequest(status);
sendAsMessage.SendMessageAndCloseL();
CleanupStack::Pop();
CleanupStack::PopAndDestroy();
Gokul.S.Kartha, DeviceDriven, -flauntr.com-"flaunt your stuff" --Everyourgokul 11:11, 24 April 2007 (UTC)
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to Fetch only unread mails for the first time after installing the appln? | symnewbie | General Symbian C++ | 0 | 2005-07-27 11:21 |
| What is the error of the following code. | runforu | General Messaging | 2 | 2007-07-30 13:35 |
| Get Text | namak | General Symbian C++ | 27 | 2008-01-09 07:19 |
| Problem of RSendAsMessage | beover1984 | Symbian Networking & Messaging | 2 | 2006-11-28 12:38 |
| PC Suite 9210i -Email | egatch | Symbian Networking & Messaging | 0 | 1970-01-01 02:00 |
