Skip to main content

Name

msg:rcptto — Sets the 'RCPT TO' email address if one is provided

Synopsis

msg:rcptto(...);

...: string, optional

Description

Sets the 'RCPT TO' email address if one is provided and returns the current or new value.

Enable this function with the statement require('msys.extended.message');.

Note

The function may be used to return the current RCPT TO address in any validation phase from validate_rcptto and later. However, if you want to modify the RCPT TO address, you must do this in validate_data_spool_each_rcpt or later.

Was this page helpful?