http://aspemail.com/manual.html is the location of ASPEMAIL version 5.0 (paid version) available for use on our Windows servers.

Use smtp.w2k3.usbusinessweb.net as smtp server.


Below is a simple example of an ASP web page form called simple.asp that emails the form results using AspEmail 5.0

simple.asp

<%
strHost = "smtp.w2k3.usbusinessweb.net"

If Request("Send") <> "" Then
   Set Mail = Server.CreateObject("Persits.MailSender")
   Mail.Host = strHost

   Mail.From = Request("From") ' From address
   Mail.FromName = Request("FromName") ' optional
   Mail.AddAddress Request("To")

   ' message subject
   Mail.Subject = Request("Subject")
   ' message body
   Mail.Body = Request("Body")
   strErr = ""
   bSuccess = False
   On Error Resume Next ' catch errors
   Mail.Send ' send message
   If Err <> 0 Then ' error occurred
      strErr = Err.Description
   else
      bSuccess = True
   End If
End If
%>

<HTML>
<BODY BGCOLOR="#FFFFFF">
<% If strErr <> "" Then %>
<h2>Error occurred: <% = strErr %></h2>
<% End If %>
<% If bSuccess Then %>
<h2>Thank you, form submitted!</h2>
<% End If %>
<FORM METHOD="POST" ACTION="simple.asp">
<TABLE CELLSPACING=0 CELLPADDING=2 BGCOLOR="#E0E0E0">
<TR>
   <TD>From (enter sender's address):</TD>
   <TD><INPUT TYPE="TEXT" NAME="From"></TD>
</TR>
<TR>
   <TD>FromName (optional, enter sender's name):</TD>
   <TD><INPUT TYPE="TEXT" NAME="FromName"></TD>
</TR>
<TR>
   <TD>To: (enter one recipient's address):</TD>
   <TD><INPUT TYPE="TEXT" NAME="To"></TD>
</TR>
<TR>
   <TD>Subject:</TD>
   <TD><INPUT TYPE="TEXT" NAME="Subject"></TD>
</TR>
<TR>
   <TD>Body:</TD>
   <TD><TEXTAREA NAME="Body"></TEXTAREA></TD>
</TR>
<TR>
   <TD COLSPAN=2><INPUT TYPE="SUBMIT" NAME="Send" VALUE="Send Message">
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>

Note:  You can specify a recipient in advance, without getting it from a form page field, using the following code:

Mail.AddAddress Request("fred@flintstoners.net")

Note:  You can use multiple fields in your form page using the following code:

Mail.Body = Request("Field1") & chr(13) & chr(10) & Request("Field2")

(The & adds additional information, and the chr(13) chr(10) provides a line break so each form field data is on a separate line.)

Note:  You can include field names in the form results message using the following code:

Mail.Body = "Field1:" & chr(9) & Request("Field1") & chr(13) & chr(10) & "Field2:" & chr(9) & Request("Field2")

(The chr(9) adds a tab to provide space between the field name and the field data.)