غير قادر على الحصول على نوع messageType في تطبيق البريد الإلكتروني لـ Symbian 3rd

StackOverflow https://stackoverflow.com/questions/1990784

سؤال

أرغب في تطوير تطبيق يرسل بريدًا إلكترونيًا من إعدادات IMAP4 للهاتف. وأنا أتابع هذا الويكي perticular.

RSendAs send;
User::LeaveIfError(send.Connect());
CleanupClosePushL(send);

     RSendAsMessage sendMsg;
sendMsg.CreateL(send,**KUidMsgTypeSMTP** );
CleanupClosePushL(sendMsg);
sendMsg.SetSubjectL(_L("Incident Capture."));
sendMsg.AddRecipientL(_L("abc@xyz.com"),RSendAsMessage::ESendAsRecipientTo);
sendMsg.SetBodyTextL(_L("Image Attached"));

TRequestStatus status;
//add attachment
sendMsg.AddAttachment(_L("C:\\Data\\Images\\hhj.jpg"),status);
User::WaitForRequest(status);

sendMsg.SendMessageAndCloseL();
CleanupStack::Pop();
CleanupStack::PopAndDestroy();

الآن أريد kuidmsgtypesmtp uid. أنا لا أحصل على كيفية استخدام هذا الشيء. كيف أحصل على قيمة هذا الثابت. عندما استخدمت قيمة عشوائية سداسية 0x040 ، أعطاني خطأ في النظام (-1) في وقت التشغيل. شكرا لك مقدما.

هل كانت مفيدة؟

المحلول

تحتاج إلى #include <miutset.h> رأس النظام كما يحتوي

const TUid KUidMsgTypeSMTP                      = {0x10001028}; // 268439592
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top