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

How do I send a message via MML?

Question

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

Answer

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");
MsgClose(Msg,MSG_SEND);


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

Need Support?

Can't find the answer you're looking for?
Contact Support