g4msmail_addRecipient

*//////////////////////////////////////////////////////////////*

* g4msmail_addRecipient - Add Recipient *

* *

* Input: *

* in_recip [r] - The address of the recpient. *

* in_recipName - The name as it will appear in the email. *

* in_recipType - The recpient type. *

* TO (0) *

* CC (1) *

* BCC (2) *

* *

* Output: *

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, number of recipients *

* *

*//////////////////////////////////////////////////////////////*

D g4msmail_addRecipient...

D PR 10i 0

D in_recip 256 Const

D in_recipName 256 Const Options(*NOPASS)

D in_recipType 10i 0 Const Options(*NOPASS)

D out_errMsg 256 Options(*NOPASS)

g4msmail_addRecipient is used to add an email recipient that will be used with the G4MSMAIL functions.

There is a maximum of 100 recipients allowed.

Returns: Total number of recipients for success, -1 for error.

Required Parameters:

  • Recipient email address - Specify the email address of the recipient

Optional Parameters:

  • Recpient Name - Specify the recipient name as you would like it to appear on the email

  • Recipient Type - Specify the type of recipient (TO=0, CC=1, BCC=2)

  • Error Message (output) - Error message