I was using MailOCX versino 1.00.01 for a lot of years not that I moved to Windows 2008 Server and Windows 2012 Servers it does not work anymore due to the 6 bits OS.
As a workaround I am using now C400. I got it working after the problem on the Port Number. I just wonder if anyone has code on how to use the Codeunit.
I am using the AddAttacment without problems I also use the AddRecipients, AddCC and AddBCC but when I send the email I am using the following:
CsmtpMail.CreateMessage(TsmtpMailSetup."Email Account Name",TsmtpMailSetup."Email Account",recipients,
'Subject Text','Testing Email Notice Email Body - Test C400',TRUE);
CsmtpMail.Send();
My question is do I have to use the CreateMessage().?
Does any one has an example of the use of C400?
thank you in advance
0
Comments
EmailAddress := UserSetup."E-Mail";
SMTPMail.CreateMessage('Scheduler',FromEmailAddress,EmailAddress,EmailSubject,
BodyText,FALSE);
SMTPMail.AddAttachment(PathFileName);
SMTPMail.Send;
CLEAR(SMTPMail);
Thank you a lot. I got it working now