|
| |
|
|
stephen78751
Posts: 15 Joined: 5/12/2004 Status: offline
|
SMTP mail server issue - 5/12/2004 21:09:24
My problems scenario: My email account is web based. My MS Outlook is by-passed and remains dormant. I am trying to email the password back to a subscriber upon request via asp. Code looks fine; web host agrees all is fine on their end. I am able to send and receive email between the web host email service and my personal email service. From my error message '80040213', I now know it is a SMTP mail server issue. As to what next step(s) to a solution - I am lost. Change web host? Any SMTP mail server issue debug tips appreciated. Stephen
|
|
|
|
Richard Dudley
Posts: 668 Joined: 8/22/2002 From: Butler, PA Status: offline
|
RE: SMTP mail server issue - 5/13/2004 9:16:24
I'm lost, too. What does Outlook have to do with this? And where does the error show up--when you e-mail to a client, or to yourself? What is the full text of the error message? Is your web-based e-mail acocunt on a different host than the one you're e-mailing from (like maybe Hotmail or Yahoo)?
_____________________________
I need to change my avatar--the puppy is full grown now!
|
|
|
|
stephen78751
Posts: 15 Joined: 5/12/2004 Status: offline
|
RE: SMTP mail server issue - 5/13/2004 18:55:23
Try this: Called my shared host & confirmed: •SMTP Server is correct •SMTP Server Port = 25 •SMTP server requires authentication •User Name = User Name of pop account •Password = Password of pop account Gets error message below for the code at bottom, I guess figuring out how to debug SMTP server problems is the next step – any suggestions on doing this, I'm lost? Would ASPmail be a solution? CDO.Message.1 error '80040213' The transport failed to connect to the server. /sendit2.asp, line 95 'Setting up Message parameters with Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort 'Replace with your SMTP server .Item(cdoSMTPServer) = "smtp.xyz.com" .Item(cdoSMTPServerPort) = 25 .Item(cdoSMTPConnectionTimeout) = 10 'Only used if SMTP server requires Authentication .Item(cdoSMTPAuthenticate) = cdoBasic .Item(cdoSendUserName) = "UserName" .Item(cdoSendPassword) = "Password" .Update end with 'Passing parameters to message object Set m_objCDO.Configuration = m_objCDOcon With m_objCDO 'Replace with email you wish the message to be sent to .To = sEmail 'Replace with email you wish the message to be from .From = "webmaster@xyz.com" 'Replace with subject .Subject = "Forgotten Password" 'Replace with information you want to be sent .HTMLBody = rs("Password") .Send End With Response.write "Email has been sent<BR>" Response.write sEmail
|
|
|
|
Richard Dudley
Posts: 668 Joined: 8/22/2002 From: Butler, PA Status: offline
|
RE: SMTP mail server issue - 5/13/2004 21:47:57
Are you sure you should be using CDO, and not CDONTS? There is a difference. quote:
The transport failed to connect to the server If you are using the proper provider, then your host needs to check how they have the smarthost configured on your virtual SMTP server. quote:
.Item(cdoSendUserName) = "UserName" .Item(cdoSendPassword) = "Password" Also, I hope these have actual values in your code. Sounds dumb, but I've seen it done.
_____________________________
I need to change my avatar--the puppy is full grown now!
|
|
|
|
stephen78751
Posts: 15 Joined: 5/12/2004 Status: offline
|
RE: SMTP mail server issue - 5/13/2004 22:42:29
My server only supports CDO - no CDONTS allowed. My server is Microsoft Windows Server 2003.
|
|
|
|
Richard Dudley
Posts: 668 Joined: 8/22/2002 From: Butler, PA Status: offline
|
RE: SMTP mail server issue - 5/14/2004 20:38:10
What about CDOSYS? That's the replacement for CDONTS.
_____________________________
I need to change my avatar--the puppy is full grown now!
|
|
|
|
stephen78751
Posts: 15 Joined: 5/12/2004 Status: offline
|
RE: SMTP mail server issue - 5/14/2004 20:52:13
CDOSYS, yes that's correct! The asp code is on a web host, I wondering if this is interfering.
|
|
|
|
stephen78751
Posts: 15 Joined: 5/12/2004 Status: offline
|
RE: SMTP mail server issue - 5/14/2004 22:14:54
Richard Dudley: CDOSYS was the keyword I was looking for, it continues to produce a wealth of valuable info on google – CDO was quite limiting. Thanks for your rewarding input. Spooky: Can’t wait to try your code out. I let you know the results. Thanks. Stephen
< Message edited by stephen78751 -- 5/14/2004 22:18:33 >
|
|
|
|
stephen78751
Posts: 15 Joined: 5/12/2004 Status: offline
|
RE: SMTP mail server issue - 5/15/2004 13:22:36
Bingo! It works! This "local service" approach works just fine. Thanks! Local service (dont change) iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1 iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "http://127.0.0.1" However, the "External server / IP" approach produced the following error. CDO.Message.1 error '80040213' The transport failed to connect to the server.
|
|
|
|
ortiz
Posts: 2 Joined: 5/31/2007 Status: offline
|
RE: SMTP mail server issue - 5/31/2007 6:06:48
Hi all its my first post here, so hello to all members. Im finding some information about how send mails with remote SMTP server with a IIS and ASP code. I have found some webs that its explain some codes to send an email but with local server. Why i need to use a remote server?Because i have a big problem with a local smtp. Im doing some tests and first i need to connect a web server with a little asp script to smtp remote server.
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Test message from SMTP remote server with CDOSYS"
myMail.From="somemail@somedomain.com"
myMail.To="myfriend@somedomain.com"
myMail.TextBody="Im a test!!!"
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") _
="[some.][domain][.com]" '< -- here i write my true 'domain
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
'myMail.Configuration.Fields.Item _
'("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") _
'= 1
'
'myMail.Configuration.Fields.Item _
'("http://schemas.microsoft.com/cdo/configuration/sendusername") _
'= ""
'
'myMail.Configuration.Fields.Item _
'("http://schemas.microsoft.com/cdo/configuration/sendpassword") _
'= ""
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
The asp code returns: CDO.Message.1 error '80040213' Have you some idea to try solve this problem? Many thanks :)
|
|
|
|
ortiz
Posts: 2 Joined: 5/31/2007 Status: offline
|
RE: SMTP mail server issue - 5/31/2007 6:58:27
Ok i have found the problem :) Listen, if you are trying to connect a remote smtp server from a webserver, you must configure your smtp server(we are speaking about Windows Servers) to receive connections from webserver. How? Setup your windows firewall. Its very easy. To test if you smtp server receives connections by 25 port, try in the webserver Telnet [your.remotesmtp.server IP or domain] 25 If you can connect, its works! Bye :)
|
|
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
|
|
|