Next: Constants, Previous: Here Documents, Up: MFL [Contents][Index]
Sendmail macros are referenced exactly the same way they are in
sendmail.cf configuration file, i.e. ‘$name’,
where name represents the macro name. Notice, that the notation
is the same for both single-character and multi-character macro names.
For consistency with the Sendmail
configuration the
‘${name}’ notation is also accepted.
Another way to reference Sendmail macros is by using function
getmacro
(see Macro access).
Sendmail macros evaluate to string values.
Notice, that to reference a macro, you must properly export it in
your MTA configuration. Attempt to reference a not exported
macro will result in raising a e_macroundef
exception at the run time
(see uncaught exceptions).