Example: smtp_send_mail

In the following example, the smtp_send_mail sends a mail message.

Action()
{
    smtp_logon("Logon",
        "URL=smtp://user0001t@techno.merc–int.com",
        "CommonName=Smtp Test User 0001",
        LAST );
    smtp_send_mail( "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();
    return 1;
}