1. Home
  2. Knowledge Base
  3. GMS
  4. Is it possible to modify a message using an SMTP Script?

Is it possible to modify a message using an SMTP Script?

Question

GMS will process a MML script when a message arrives at the server.

Answer

Yes. This may be used for such things as address re-writing in addition to changing the content of the message itself.

For example, the line:

emailTo = "another@abc.com"


would change the “To:” clause of the email message as it passes through the server. (NOTE: this would not change the destination of the message, only the message contents. In order to change the destination, use “emailRCPT”.)

Note that you will have to call MsgClose to commit any changes to the message. See the MML Programmers Guide for further information.

Keywords:SMTP, script, scripts, mml, message, email, modify, rewrite, address

Was this article helpful?

Related Articles

Contents

Need Support?

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