Example: smtp_free

In the following example, the smtp_free function frees up the SMTP server.

Action()
{
    smtp_logon("Logon",
        "URL=smtp://user0001t@techno.merc–int.com",
         "CommonName=Smtp Test User 0001",
        LAST );
    smtp_send_mail(    "SendMail",
        "To=user0002t@merc–int.com",
        "Cc=user0003t@merc–int.com",
        "Subject=MIC Smtp: Sample Test",
        "MAILOPTIONS",
        "X–Priority: 3",
        "X–MSMail–Priority: Medium",
        "X–Mailer: Microsoft Outlook Express 5.50.4133.2400\r\n",
        "X–MimeOLE: By Microsoft MimeOLE V5.50.4133.2400\r\n",
        "MAILDATA",
        "MessageText="
            "Content–Type: text/plain;\r\n"
            "\tcharset=\"iso–8859–1\"\r\n"
            "Content–Transfer–Encoding: quoted–printable\r\n"
            "\r\n"
            "Test,\r\n"
            "<HTML><BODY>"
            "<H1><CENTER>PROGRESS UPDATE </CENTER></H1>"
                "</BODY></HTML>\r\n",
        "MessageBlob=16384",
                LAST );
    smtp_free ();
    smtp_logout();
    return 1;
}