ASPEmail 5.0 is an active server component for sending e-mail messages using an external SMTP server in an ASP or VB environment. ASPEmail 5.0 supports multiple recipients, multiple file attachments, HTML format, embedded images and sounds, non-US ASCII character sets, secure mail, and high-performance message queuing.
For further information, please refer to: http://www.aspemail.com/manual_01.html
Note: This may please be noted that this component can be uniformly used by all the users of Windows 2003 Shared Hosting. Whereas, as regards to our VPS users, the following guideline will be effective:
- This component is not offered with the purchase of a VPS, therefore, if any client wishes to use this, he/she will need to purchase and install it on his/her VPS.
Sample code:
- <%
- strHost = "mail.serverhost.com"
- If Request("Send") <> "" Then
- Set Mail = Server.CreateObject("Persits.MailSender")
- Mail.Host = strHost
- Mail.From = Request("From")
- Mail.FromName = Request("FromName")
- Mail.AddAddress Request("To")
- Mail.Subject = Request("Subject")
- Mail.Body = Request("Body")
- strErr = ""
- bSuccess = False
- On Error Resume Next
- Mail.Send
- If Err <> 0 Then
- strErr = Err.Description
- else
- bSuccess = True
- End If
- End If
- %>
Explanation according to line:
- Open ASP tag
- Set the strHost variable with the email server host name
- Checking whether the data passed by an html form is empty or not
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set Mailer control properties and collection items
- Set the strErr variable to empty
- Set the bSuccess variable to False
- If there is an error, go to the next line
- Send email
- If the error occurs then go to line (16)
- Display error description
- If no error occurs then go to line (18)
- Set the bSuccess variable to True upon success
- End if statement on line (15)
- End if statement on line (03)
- Close ASP tag
For further information, please refer to: http://www.aspemail.com/manual_01.html
Note: This may please be noted that this component can be uniformly used by all the users of Windows 2003 Shared Hosting. Whereas, as regards to our VPS users, the following guideline will be effective:
- This component is not offered with the purchase of a VPS, therefore, if any client wishes to use this, he/she will need to purchase and install it on his/her VPS.
Looking to send emails using ASP.NET (VB)? Click on Send Mail > Using ASP.NET (VB) for more details. To send emails via ASP using SMTP, Click on Send Mail > Using ASP SMTP.