Returns the Cash-On-Delivery cost of the outgoing message. Returns the amount set via SetSendMailCOD(), which in the default UI is only called once its Send button has been clicked (immediately before sending the message). Thus, does not return the COD amount set in the default UI's Send Mail window.


See also Mail functions.

Signature:

amount = GetSendMailCOD()

Returns:

  • amount - COD cost for the items attached to the message (in copper) (number)