Using AspEmail

pezpc

Guppy
How use AspEmail?

I have tried to use the aspemail component in a script but it doesn't work, it doesn't send the email. The code that I'm using is:


<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mail.mydomain.com"
Mail.Port = 25
Mail.From = "[email protected]"
Mail.Username = "[email protected]"
Mail.Password = "xxxxxxx"
Mail.FromName = "my"
Mail.AddAddress "[email protected]" Mail.Subject = "Test"
Mail.Body = "test 5"
Mail.IsHTML = True
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description
End If
Set Mail = Nothing%>

Is it correct?
Thanks
 
Back
Top