PDA

View Full Version : Send email by ASP mail


nghiapk
07-08-03, 10:58 PM
Hi all

I used this code to send mail from my web

<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "thuephim.com" ' Specify your domain
Mail.From = "webmaster@thuephim.com" ' Specify sender's address
Mail.FromName = "Phan Khanh Nghia" ' Specify sender's name

Mail.AddAddress "nghiapk2001@yahoo.com"
Mail.AddReplyTo "webmaster@thuephim.com"


Mail.Subject = "Test"
Mail.Body = "To whom it may concern:" & Chr(13) & Chr(10) & _
"This is a test."

On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>

and it responsed me this massage:

Error encountered: 503 This mail server requires authentication. Please check your mail client settings.

Please help me.

Thanks & regard
Nghia

Shane
07-09-03, 01:47 AM
It means that you need to specify a username and password in order to send an e-mail using the specified mail server. Look through your documentation to see how that would work with your component.