MAPI protocol

MAPI Vuser script functions generate activity to and from an MS Exchange server. Each MAPI function begins with a mapi prefix. You cannot record Vuser scripts using the MAPI protocol. For detailed syntax information on these functions, see the Function Reference (select the relevant version).

Note: To run MAPI scripts, you must define a mail profile on the machine running the script. For example, install Outlook Express or Microsoft Outlook, set it as the default mail client, and create a mail account.

In the following example, the mapi_send_mail function sends a sticky note through an MS Exchange server.

Actions()
{
    mapi_logon("Logon",
            "ProfileName=John Smith",
            "ProfilePass=Tiger",
            LAST);
    //Send a Sticky Note message
    mapi_send_mail("SendMail",
            "To=user1@techno.comp-int.com",
            "Cc=user0002t@techno.comp-int.com",
            "Subject=<GROUP>:<VUID> @ <DATE>",
            "Type=Ipm.StickyNote",
            "Body=Please update your profile today.",
            LAST);
    mapi_logout();
    return 1;
}

Back to top