I am using LL12 with Delphi2007.
Is there anyway to specify SMTP authentication?
I’m trying to enable my reporting app that uses LL12 to email out invoices.
Possibly I’m doing something wrong (code extract below) but I think the problem is that the SMTP Authentication specification is missing.
From what I recall my web hosting company and my clients won’t send without it.
Here an extract from my code:
FileName := frmMain.PDFdestinationFolder + frmMain.AutoPrint_CurrentInvNum + '.htm';
LL.LlPrintSetOptionString(LL_PRNOPTSTR_EXPORT, 'HTML');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Path', ExtractFilePath(FileName));
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.File', ExtractFileName(FileName));
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Quiet', '1');
//htm files & images are correctly being created
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.SendAsMail', '1');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.Provider', 'SMTP');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.SMTP.ServerAddress', 'smtp.1and1.com');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.SMTP.ServerPort', '587');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.SMTP.User', 'xxxx@xxxx.com');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.SMTP.Password', '9999999');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTMl', 'Export.Mail.SMTP.SenderAddress', 'xxxx@xxxx.com');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.To', 'customer@theiremail.com>');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.Subject', 'Company Invoice #' + sCurrentInvNum);
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.ReplyTo', 'Do_Not_Reply@xxxx.com');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.SendResultAs', 'text/html');
LL.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, 'HTML', 'Export.Mail.ShowDialog', '0');
Any help appreciated
Thanks
…Steven