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 with a valid pslhosting hosted domain name.
2. Replace with a valid pslhosting hosted email account.
3. Replace password with the password for the email account used above.
4. Replace with a valid email account.

Dim objEmail
Set objEmail = Server.CreateObject("Persits.MailSender")

objEmail.Username = ""
objEmail.Password = "password"
objEmail.Host = ""
objEmail.From = ""
objEmail.AddAddress ""
objEmail.Subject = "Test message sent using the ASPEMail component"
objEmail.Body = "This is a test message."

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