AddRecipientEx Method


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

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

Parameter:

AddressList

Recipients' email addresses, divided by comma, semicolon.

Flags

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 "dennis@mail.com;John Smith<john@email.com>", 0 'normal recipients

See Also

ClearRecipient Method