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
%>

Was this answer helpful?

 Print this Article

Also Read

What directory do I have to put my ASP pages in ?

The server will parse the ASP pages in any and all directories.

What ASP mail component is installed on the servers ?

Jmail is installed on all servers. More information can be found at the Dimac site.

Do you have an ASP upload component installed on your servers ?

Yes, ASPUpload is installed. This is an Active Server component which enables an ASP application...

Can I install my own ASP components or if not can you do it for me ?

For security and satiability reasons we do not allow users to add any additional components....

When using JMail it only seems to work with some eMil addresses, why is this ?

You can only use email addresses of domains that are hosted on our servers. This is to prevent...