navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Why is My Mailer Failing?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Why is My Mailer Failing?
Page: [1]
 
yisraelharris

 

Posts: 7
Joined: 1/3/2004
Status: offline

 
Why is My Mailer Failing? - 1/3/2004 15:58:49   
I wish to generate an email but I receive an error message.

My code:

set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromAddress= "yisraelh@actcom.net.il"
Mailer.RemoteHost = "mail.kabbalaonline.org"
Mailer.AddRecipient "yisrael", "yisraelh@actcom.net.il"
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Failure:" & Mailer.Response & ". "
end if
set Mailer = nothing

I get the following error message: Failure:503 5.5.1 Incorrect command sequence.

I would be grateful for solutions.

Please note:
1. I got the same error message even when I assigned the subject and bodyText.
2. Regarding the order of assigning the FromAddress, RemoteHost and AddRecipient fields, I tried all 6 possible orders, and got the same error message each time.
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Why is My Mailer Failing? - 1/3/2004 22:01:48   
Is that the full code?
I dont have any samples handy, but it seems you are missing at least subject and body??

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to yisraelharris)
yisraelharris

 

Posts: 7
Joined: 1/3/2004
Status: offline

 
RE: Why is My Mailer Failing? - 1/4/2004 1:06:21   
If you look at my origina posting again, you'll see that I wrote the following:

Please note:
1. I got the same error message even when I assigned the subject and bodyText.

(in reply to yisraelharris)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Why is My Mailer Failing? - 1/4/2004 3:42:45   
Could you supply the full text that failed? Ill test it on my server - its probably an object permission or smtp error

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to yisraelharris)
yisraelharris

 

Posts: 7
Joined: 1/3/2004
Status: offline

 
RE: Why is My Mailer Failing? - 1/4/2004 5:07:40   
Here is the code with subject and body, which still fails:

set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromAddress= "yisraelh@actcom.net.il"
Mailer.RemoteHost = "mail.kabbalaonline.org"
Mailer.Subject = "hi"
Mailer.BodyText = "hi"
Mailer.AddRecipient "yisrael", "yisraelh@actcom.net.il"
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Failure:" & Mailer.Response & ". "
end if
set Mailer = nothing

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Why is My Mailer Failing? - 1/4/2004 14:49:13   
I can confirm the code works happily - do you have aspQmail on the server?

Also - try adding the line :

Mailer.QMessage = true

If that fails, can you perhaps try a different script such as using CDOSYS to send your mail?

< Message edited by Spooky -- 1/4/2004 14:50:49 >


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to yisraelharris)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Why is My Mailer Failing?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts