Share this page

# smtp_free

Frees the SMTP server and cancels all pending commands.

Simple Mail Transfer Vuser Functions (SMTP)

    void smtp_free();

This function is for use with global sessions. For multiple sessions, use the smtp_free_ex function, which allows you to specify a session identifier.

## Return Values

This function does not return any value.

## Parameterization

Standard parameterization is not available for this function.

## Example

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;

    }

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: