SenderHostname Property

<< Click to Display Table of Contents >>

Navigation:  Reference > SmtpMail >

SenderHostname Property

 

Use SenderHostname property to specify fully-qualified hostname of the computer that sends e-mail messages (Enterprise version only). SenderHostname is used when AddEmail sends e-mails directly without using SMTP server of your organization or internet provider. Please see remarks for more information.

 

Syntax

 

[Visual Basic]


objSmtpMail.SenderHostname = "myserver.mydomain.com"

 

[VBScript]


objSmtpMail.SenderHostname = "myserver.mydomain.com"

 

[C#]


objSmtpMail.SenderHostname = "myserver.mydomain.com";

 

[C++]


HRESULT get_SenderHostname(BSTR*);

HRESULT put_SenderHostname(BSTR);

 

spSmtpMail->PutSenderHostname("myserver.mydomain.com");

 

 

Remarks

 

SenderHostname property should be set to the fully-qualified hostname of the computer that sends e-mail messages, for example myserver.mydomain.com. SenderHostname is transmitted to the recipient's mail server when AddEmail sends e-mail messages directly. Some mail servers do not accept incoming mail if SenderHostname is not set. In addition, some mail servers check reverse DNS entry for the IP address of the computer that sends e-mail messages directly and verify that it matches with the SenderHostname. Use the following link to check reverse DNS entry for an IP address: http://postmaster.aol.com/cgi-bin/plugh/rdns.pl