AddRecipientEx Method

Add multiple normal, carbon copy or blind carbon copy recipients to current email.

Visual C++: HRESULT AddRecipientEx(BSTR AddressList, long Flags, long* pVal)
Visual Basic AddRecipientEx(AddressList As String, Flags As Long) As Long



Recipients' email addresses, divided by comma, semicolon.


Value Meaning
0 Normal recipient(To)
1 Carbon copy recipient(Cc)
2 Blind carbon copy recipient(Bcc)

Return Values

Return total count of recipients added.

Usage Example

[Visual Basic/Late Binding]		
Dim oSmtp As Object
Set oSmtp = CreateObject("EASendMailObj.Mail")
oSmtp.LicenseCode = "TryIt"

oSmtp.AddRecipientEx ";John Smith<>", 0 'normal recipients

See Also

ClearRecipient Method