AddMailRecipient(#Mail, Address$, Flags)Description
Add a recipient to the specified mail.
The mail to use. Address$ The address of the recipient. The address have to be one of the following format:"firstname.lastname@example.org" "<email@example.com>" "Joe Doe <firstname.lastname@example.org>" Flags The categories to which to add the recipient. It can be a combination of the following values:#PB_Mail_To : Main(s) recipient(s) of the mail #PB_Mail_Cc : Recipient(s) which are in copy of the mail (and everybody see it) #PB_Mail_Bcc: Recipient(s) which are in copy of the mail (but nobody see it)
InitNetwork() If CreateMail(0, "email@example.com", "Hello") AddMailRecipient(0, "firstname.lastname@example.org", #PB_Mail_To) ; Andre is the main recipient AddMailRecipient(0, "email@example.com", #PB_Mail_Cc) ; Fred is in copy AddMailRecipient(0, "firstname.lastname@example.org", #PB_Mail_Bcc) ; Timo is in copy as well, but Andre and Fred doesn't know it EndIf