|
| I am studying the sdk about how to send a email with body and attachement.
It seems that the message to be sent is an mulitpart message.
as shown msgAcknowledgement.partAcknowledgementString seems to be only
a part of the message.
--------
msgAcknowledgement.partAcknowledgementString = new
Microsoft.XLANGs.CustomFormattersSDK.RawString("<HTML><BODY>Your
expensereport with reference <B>" +
msgApprovalRequest(ExpenseReports.Reference) + "</B> has been sent for
approval to <A HREF='mailto:" +
msgExpenseReportIn(ExpenseReports.EmailManager) + "'>" +
msgExpenseReportIn(ExpenseReports.EmailManager) + "</A></BODY></HTML>");
SMTPUtils.Part.SetContentType(msgAcknowledgement.partAcknowledgementString,"
text/html");
SP_Acknowledgement(Microsoft.XLANGs.BaseTypes.Address) = "mailto:" +
msgExpenseReportIn(ExpenseReports.EmailEmployee);
msgAcknowledgement(SMTP.Subject) = "Expense report submission confirmation";
-------
My question is how the multipart message is constructed in the example.
and send plain text email example is also confusing as follow
-------
RawOutMsg = new Microsoft.XLANGs.CustomFormattersSDK.RawString( ¡°e-mail
body goes here¡± );
SP_Acknowledgement(Microsoft.XLANGs.BaseTypes.Address) =
"mailto:MyManager@MyCompany.com";
msgAcknowledgement(SMTP.Subject) = "Expense report submission confirmation";
-----------
what is relation of RawOutMsg and msgAcknowledgement?
I hope the sdk team can provide the full source code of this example.
thank you.
|
|