Flicks FAQ: Sethelodomainname


Prev   Next

Back to the top of the FAQ

SetHeloDomainName

The SetHeloDomainName method Overrides the default HELO domain.

By default, OCXMail looks up the domain name of the sending system and uses this as part of the initial HELO request to the SMTP server. Under Windows NT/2000, this lookup typically returns the machine name eg: WEB_SRV and this this name does not conform to the RFC-821 requirement to supply a canonical fully-qualified domain name.
The mail still goes through because the SMTP server is required to accept the message anyway, however some SMTP servers can complain to a log file, and this log file can grow large with heavy use.
Use SetHeloDomainName to set the canonical fully-qualified domain name to an acceptable value. Version 2.2e and above.

Syntax

SetHeloDomainName(domain)

Parameters

domain
Specifies the replacement HELO domain name.

Return Values

Returns nothing.

Example

The following sends an email with a custom HELO domain name.


<% Set Mailer = Server.CreateObject("ASPMail.ASPMailCtrl.1") %>
<%
recipient = "Joe@Mailer.net"
sender = "Cheryl@Mailer.net"
subject = "Great Program"

crlf = chr(10) & chr(13)
message = "<H2><font color=blue>The Message Contents</font></h2><P>" & crlf	

mailserver = "Mailer.flicks.com"

result = Mailer.SetHeloDomainName("xp90.domain.com")

result = Mailer.SendMail(mailserver, recipient, sender, subject, message)
%>
<% If  "" = result Then %>
<P>
Mail has been sent.
<P>
<% Else %>
<P>
Mail was not sent, error message is
<H2>
<%= result %>
</H2>
<P>
<% End If %>


 

Applies To

OCXMail ASP Component

http://www.flicks.com/authentix/discover/main.htm

Back to the top of the FAQ