How to send email from a web page on pslhosting
Special Note
Be sure to make the following changes when using these coding examples:
1. Replace YourDomain.com with a valid pslhosting hosted domain name.
2. Replace you@domain.com with a valid pslhosting hosted email account.
3. Replace password with the password for the email account used above.
4. Replace user@domain.com with a valid email account.
ASPEMail:
<%
Dim objEmail
Set objEmail = Server.CreateObject("Persits.MailSender")
objEmail.Username = "you@domain.com"
objEmail.Password = "password"
objEmail.Host = "mail.YourDomain.com"
objEmail.From = "you@domain.com"
objEmail.AddAddress "user@domain.com"
objEmail.Subject = "Test message sent using the ASPEMail component"
objEmail.Body = "This is a test message."
objEmail.Send
Set objEmail = Nothing
%>