LsMailSetOptionString

Syntax:

INT LsMailSetOptionString (HLSMAILJOB hJob, LPCTSTR pszKey, LPCTSTR pszValue);

Task:

Sets various mail settings in List & Label.

Parameter:

hJob: List & Label email API job handle

pszKey: The following values are possible:

Value

Meaning

Export.Mail.To

Recipient address. Multiple recipients can be separated by semicolons.

Export.Mail.CC

This address will receive a carbon copy. Multiple recipients can be separated by semicolons.

Export.Mail.BCC

This address will receive a blind carbon copy. Multiple recipients can be separated by semicolons.

Export.Mail.Subject

Email subject.

Export.Mail.Body

Mail body text.

Export.Mail.Body:text/plain

Mail body text in plain text format. Identical to Export.Mail.Body.

 

Export.Mail.Body:text/html

Mail body text in HTML format (SMTP and XMAPI only). Optional, otherwise the mail will be sent with the text defined in Export.Mail.Body or Export.Mail.Body:text/plain.

Export.Mail.AttachmentList

Tabulator-separated attachment list

pszValue: new value

Return value:

Error code

Example:

HLSMAILJOB   hMailJob;

hMailJob = LsMailJobOpen(0);
LsMailSetOptionString(hMailJob, "Export.Mail.To",
   "test@domainname.com");
...
LsMailJobClose(hMailJob)

See also:

LsMailGetOptionString