How do I send a message via MML?

  1. Home
  2. Knowledge Base
  3. GMS
  4. How do I send a message via MML?


I would like to use MML to send a message to one of my users from a web page.


The Mail Meta Language (MML) is specifically designed to allow scripting within a messaging environment. It is therefore a simple task to create and send email messages using MML.

The following code will create a message from sales@companyA.dom and send it to joe@companyA.dom with the subject “Test message”. It will also add two lines to the body of the message.

Msg = MsgCreate("sales@companyA.dom",   "joe@companyA.dom", "Test message");
MsgAddBody(Msg, "First line of body");
MsgAddBody(Msg, "Second line of body");

Common Mistakes

  1. There is no MsgClose() call.
  2. Failure to specify the message handle.

Please see the MML Programmers Guide for further information.

(Also applies to messages generated from SMTP scripts).

See Also:

Keywords:MML, Message send sent generating smtp scripts

Was this article helpful?

Related Articles