AddHeader Method

Add customized header to current email.

[Syntax]
C++: HRESULT AddHeader( BSTR strHeader, BSTR strValue, long* pVal )
Visual Basic: AddHeader( strHeader As String, strValue As String ) As Long
C#: long AddHeader( string strHeader, string strValue )

Parameter:

strHeader

Header's name.

strValue

Header's value.

Return Values

If this method succeeds, the return value is zero; otherwise the return value is non-zero.


Remarks

AddHeader method provides some advanced functions. For example,
developer can use AddHeader to add a customized header as follows:
oSmtp.AddHeader( "Disposition-Notification-To", "reply@email.com" )
Once the recipient receives this e-mail via Outlook, it requests a read receipt for this email.

See Also

ClearHeader Method


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.