Knowledgebase: Script Mail
Sending E-Mail using ASP
Posted by Paul Woodland on 04 August 2012 04:24 PM
|
|
If you are sending mail through ASP on your website, you must use SMTP authentication through our Script Mail service, of which details can be found here: We have a number of ASP components installed for sending emails from ASP. We recommend using Persits ASPEmail, the documentation for which can be found here:
Example of sending email from ASP using Persits ASPEMail:
<% Set Mail = Server.CreateObject("Persits.MailSender")
' Enter your script mail details here
Mail.Host = "uk.scriptmail.yourwebservers.com"
Mail.Username = "YOUR USERNAME"
Mail.Password = "YOUR PASSWORD"
' Set the from and to addresses
Mail.From = "test@yourwebservers.com"
Mail.FromName = "Test"
Mail.AddAddress "test@yourwebservers.com"
' Set the message subject and body
Mail.Subject = "Test Message"
Mail.Body = "This is a test"
' Send Message
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error: " & Err.Description
Else
Response.Write "Message Sent"
End If
%>
| |
|
Comments (0)