Hi, I would like to use LL to sent and email message, but the program is unable to find the SMTP setting configured for LL.
I use the following (pseudo code):
LsMailJobOpen
LsMailSetOptionString “Export.Mail.To” "smith@foo.com"
LsMailSetOptionString “Export.Mail.Subject” “test String”
LsMailSetOptionString “Export.Mail.Body” “body text”
LsMailSendFile
LsMailJobClose
I have mail settings configured using
lsMailConfigurationDialog CURRENT-WINDOW:HWND, “@@GlobalSettings”,
{&LS_MAILCONFIG_USER}
+ {&LS_MAILCONFIG_GLOBAL}
+ {&LS_MAILCONFIG_PROVIDER}.
{&CMBTLANG_ENGLISH}).
The settings are configured to use SMTP. Sending a test mail from the configuration dialog works ok.
The problem is that the executable which sends the email is unable to find the settings configured. Is there a way to make the executable ‘point’ to the correct settings?
Btw: The executable used to configure the settings is a different one from the one who is trying to send the email.