RemoveMailRecipient(#Mail [, Address$ [, Flags])Description
Remove a recipient from the specified mail.
The mail to use. Address$ (optional) The address to remove. It must match an address from a call to AddMailRecipient(). If not specified, all the recipients are removed from the mail. Flags (optional) The categories from which to remove 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)If not specified, all the categories are removed for the specified address.
InitNetwork() If CreateMail(0, "firstname.lastname@example.org", "Hello") AddMailRecipient(0, "email@example.com", #PB_Mail_To) ; Andre is the main recipient AddMailRecipient(0, "firstname.lastname@example.org", #PB_Mail_Cc) ; Fred is in copy AddMailRecipient(0, "email@example.com", #PB_Mail_Bcc) ; Timo is in copy as well, but Andre and Fred are not aware of it ; Ensure Fred is removed from every destination :-) RemoveMailRecipient(0, "firstname.lastname@example.org") EndIf