|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
Have you allowed 127.0.0.1 to relay mail?
Have you checked the basic authentication option |
|
#3
|
|||
|
|||
|
Quote:
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? |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Quote:
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. |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
Also try checking the basic Authentication option.
If you have a firewall try temporarily disabling it to test. |
|
#8
|
|||
|
|||
|
Quote:
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. |
|
#9
|
|||
|
|||
|
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
%>
|
|
#10
|
|||
|
|||
|
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") |
|
#11
|
|||
|
|||
|
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? |
|
#12
|
|||
|
|||
|
Quote:
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" |
|
#13
|
|||
|
|||
|
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. |
|
#14
|
||||
|
||||
|
Also, if u r sending mail through localhost, then change this
Code:
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
Code:
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=1
|
|
#15
|
|||
|
|||
|
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") |