Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 10th, 2006, 02:05 PM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
IIS smtp won't send mail.

hi.

I have spent 2 days trying to send email using asp code with my xp iis5.1, no matter how much i tried, the emails always stuck in the "queue" folder or end up in "BadMail" folder.

I am sure the code is correct, except i must had did somethng wrong with the setting in smtp property. can some one post their setting or give me some him on how to resolve the issue?

part of the error from a file in"badmail" folder: The specific error code was 0xc00402c7.

and under SMTP->properties->Delivery:
//i choose er.jdleon.com for domain, because i dont know what
//else i can use
masquerade domain: er.jdleon.com

//jdleon is my computer name
Fully-Qualified domain name: jdleon

//smart host is from my isp(rogers), they give me this address
// to receive email
Smart Host: smtp.braodband.rogers.com

uncckeck for the two item below.



can anyone help?

Reply With Quote
  #2  
Old May 11th, 2006, 07:10 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 121
Have you allowed 127.0.0.1 to relay mail?
Have you checked the basic authentication option

Reply With Quote
  #3  
Old May 11th, 2006, 09:15 AM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by degsy
Have you allowed 127.0.0.1 to relay mail?
Have you checked the basic authentication option


yes, i added "127.0.0.1" to relay to the Relay Restriction option; And i selected Anonymous access under Authentication option. but mails still goes to badmail folder.

then i switch the code from CDONTS TO CDOSYS. all the mails go to queue folder and stuck there.

i know there is something wrong with the setting. can your setting on your computer?

Reply With Quote
  #4  
Old May 11th, 2006, 11:53 AM
yeowjhhk yeowjhhk is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 2 yeowjhhk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 9 sec
Reputation Power: 0
SMTP Service - The answer

The Smtp service in IIS Administration might has failed to turn on when it is needed.Turn it on else it will be stored in Badmail.

Another reason is the pc (IIS server) you are sending your mail from is not currently connected to the internet.
Hence it is still in the queue.

Reply With Quote
  #5  
Old May 11th, 2006, 01:48 PM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by yeowjhhk
The Smtp service in IIS Administration might has failed to turn on when it is needed.Turn it on else it will be stored in Badmail.

Another reason is the pc (IIS server) you are sending your mail from is not currently connected to the internet.
Hence it is still in the queue.


affirmative, 1) smtp is running because it shows on the IIS window. 2) there is internet connection, i can connect to internet.

I am running windows xp in my home.

Reply With Quote
  #6  
Old May 11th, 2006, 11:49 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Maybe your isp blocks port 25. Most home broadband connections block outgoing smtp other than to their smtp server.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #7  
Old May 12th, 2006, 06:52 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 121
Also try checking the basic Authentication option.
If you have a firewall try temporarily disabling it to test.

Reply With Quote
  #8  
Old May 12th, 2006, 09:03 AM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by degsy
Also try checking the basic Authentication option.
If you have a firewall try temporarily disabling it to test.


checked the basic authentication. still doens't work.

what do you guy put in the "masquerade domain" and "smart host"?

I tried to do:
telnet smtp.hotmail.com 25
Connecting To smtp.hotmail.com...Could not open connection to the host, on port
25: Connect failed

did i screwed up some setting outside IIS? gee, who would guess setting up smtp can be this difficult.

Reply With Quote
  #9  
Old May 16th, 2006, 08:15 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 121
Why are you trying to telnet hotmail's server?

For a local install using IIS 5.1 then you shouldn't need any changes to masquerade or smart host.

The only settings you should need to change are the Relay and Autherntication.
Possible the prot setting if your ISP does block port 25.

http://www.emailarchitect.net/webapp/smtpcom/developers/smtpservice.asp

You may also have to specify certain criteria in your script
Code:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="localhost"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25 
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>

Reply With Quote
  #10  
Old May 16th, 2006, 10:09 AM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
hi this frustrated the hell out of me. i tried many many ways, still dont get it right. maybe i got some setting right but screwed up another setting.. here is my code and error msg:

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@myidomain.com"
myMail.To ="johnsmith@hotmail.com"
myMail.TextBody="hi from joey This is a message."

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.broadband.rogers.com"
'Server port
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
Response.Write("Joey default email has been sent out")


error on the browser:
Error Type:
(0x8004020E)
Cannot modify or delete an object that was added using the COM+ Admin SDK
/test/index.asp, line 33( line 33 is "myMail.Send")

Reply With Quote
  #11  
Old May 17th, 2006, 09:13 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 121
I would suspect that one of your errors is because you are trying to send mail via smtp.broadband.rogers.com and you don't have permission.

Why are you trying to setup a local SMTP server and then send using a remote SMTP server?

Reply With Quote
  #12  
Old May 17th, 2006, 09:59 AM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by degsy
I would suspect that one of your errors is because you are trying to send mail via smtp.broadband.rogers.com and you don't have permission.

Why are you trying to setup a local SMTP server and then send using a remote SMTP server?


i tried this but still doesn't send email. the email either go to bad mail or queue folder..
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="localhost"

Reply With Quote
  #13  
Old May 17th, 2006, 10:07 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 121
Couple of things.

Disable any firewalls/av incase they are blocking the sending of mail.
If that doesn't help then uninstall and reinstall SMTP to get the default settings.
Add 127.0.0.1 to the relay and test your script.

Reply With Quote
  #14  
Old May 18th, 2006, 03:32 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 11,014 micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 4 Months 1 Week 1 Day 10 h 56 m 53 sec
Reputation Power: 1776
Also, if u r sending mail through localhost, then change this
Code:
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
to
Code:
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=1
__________________
Laziness is my religion and Sunday is my God

Get the Mantra!

Reply With Quote
  #15  
Old May 18th, 2006, 10:44 AM
fry fry is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 17 fry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 6 sec
Reputation Power: 0
nothing works. Can some one please host their setting on their IIS 5.1? thanks alot.

here is my setting:


Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@myidomain.com"
myMail.To ="joeydeng@hotmail.com"
myMail.TextBody="hi from joey This is a message."

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=1
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="localhost"
'Server port
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
Response.Write("Joey default email has been sent out")
Attached Images
File Type: jpg Clip.jpg (36.7 KB, 372 views)
File Type: jpg Clip_2.jpg (25.3 KB, 325 views)