C400 Usage

fmhiguefmhigue Member Posts: 290
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

Comments

  • KarenhKarenh Member Posts: 209
    We use it a lot. this is in a function:


    EmailAddress := UserSetup."E-Mail";
    SMTPMail.CreateMessage('Scheduler',FromEmailAddress,EmailAddress,EmailSubject,
    BodyText,FALSE);
    SMTPMail.AddAttachment(PathFileName);
    SMTPMail.Send;
    CLEAR(SMTPMail);
  • fmhiguefmhigue Member Posts: 290
    Karenh:

    Thank you a lot. I got it working now
Sign In or Register to comment.