Share this page

# smtp_logout_ex

Logs off from the SMTP server for a specific session.

Simple Mail Transfer Vuser Functions (SMTP)

    int smtp_logout_ex( SMTP *ppsmtp );

ppsmtp | A session identifier.

This function is for use with multiple sessions. For global sessions, use the smtp_logout function, which leaves out the session identifier.

## Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

## Parameterization

Standard parameterization is not available for this function.

## Example

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 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: