Share this page

# Example: smtp_logout_ex

In the following example, the smtp_logout_ex function logs off from the server.

    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=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_logout_ex(&ppsmtp);

        return 1;

    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: