Current location: Hot Scripts Forums » Programming Languages » ASP » Send email by ASP mail


Send email by ASP mail

Reply
  #1 (permalink)  
Old 07-08-03, 09:58 PM
nghiapk nghiapk is offline
New Member
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send email by ASP mail

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
Reply With Quote
  #2 (permalink)  
Old 07-09-03, 12:47 AM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing email form abuse LunarOrbit Perl 3 10-04-03 09:55 PM
send email when sending form (asp) bmatth1 Script Requests 0 09-30-03 05:52 AM
sending email acknowledgement to user after registration onlynils PHP 3 07-04-03 02:05 PM
send mail to user onlynils New Members & Introductions 1 07-04-03 01:18 PM
send email via local intranet superman PHP 3 06-29-03 12:20 PM


All times are GMT -5. The time now is 04:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.