Syntax:
INT LsMailSendFile (HLSMAILJOB hJob, HWND hWndParent);
Task:
Sends an email with the current settings.
Parameter:
hJob: List & Label email API job handle
hWndParent: Parent window handle for the email dialog. If the window handle is "0", no dialog will be shown and the email will be sent without any user activities.
Return value:
Error code
Example:
HLSMAILJOB hMailJob;
hMailJob =
LsMailJobOpen(0);
LsMailSetOptionString(hMailJob, "Export.Mail.To",
"test@domainname.de");
LsMailSetOptionString(hMailJob, "Export.Mail.Subject",
"Test!");
LsMailSetOptionString(hMailJob,
"Export.Mail.AttachmentList",
"c:\\test.txt");
LsMailSendFile(hMailJob, 0);
LsMailJobClose(hMailJob)
See also:
LsMailSetOptionString