Example: smtp_send_mail_ex

In the following example, the smtp_send_mail_ex sends an SMTP mail message via MS Outlook.

Action()
{
    smtp_logon_ex(&ppsmtp, "Logon",
        "URL=smtp://user0001t@techno.merc–int.com",
        "CommonName=Smtp Test User 0001",
        LAST );
    smtp_send_mail_ex(&ppsmtp, "SendMail",
        "To=williamprice@mansfield.park.co.uk", 
        "Cc=fannyprice@mansfield.park.co.uk", 
        "Bcc=susanprice@mansfield.park.co.uk", 
        "From=edmundbertram@mansfield.park.co.uk", 
        "Subject=", 
        "ContentType=text/plain;", 
        "charset=\"iso–8859–4\"", 
        MAILOPTIONS, 
            "X–Priority: 3", 
            "X–MSMail–Priority: Normal", 
            "X–Mailer: Microsoft Outlook Express 5.00.2919.6700", 
            "X–MieOLE: Produced By Microsoft MimeOLE V5.00.2919.6700", 
        MAILDATA, 
            "MessageText=This is a simple mail\r\n", 
        LAST );
    smtp_logout_ex(&ppsmtp);
    return 1;
}