Re: Email problems
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 09:59:50 -0400
Hi Jerry,
Unfortunately, CDO doesn't give very good information about what went wrong.
However, this sort of error almost always happens due to the Relay
configuration of the SMTP Server that CDO is sending the message to. SMTP
Relay happens when the "from" address of the email is not specified as the
same domain as the SMTP server. In your case, the "from" address specified
"falcodevelopers.com." SMTP Servers are usually (these days) configured to
disallow Relay, as Relay is often used by SPAMmers to send SPAM. Relaying
can also be configured to allow relaying from any particular machine, group
of machines, domain, or group of domains.
Another possible issue involves the Authentication configuration of the SMTP
Server. Most SMTP Servers allow anonymous access, meaning that the SMTP
client app (CDO in your case) doesn't have to authenticate itself to the
SMTP Server. If anonymous access is disallowed, the client app must pass
credentials to the SMTP server, which can be either by Basic (plain text)
user name and password, or using Kerberos authentication. This is more
difficult to resolve. Fortunately, it is not usually the problem; Relay is.
In either case, you will need to work with the Network Administrator of the
machine hosting the SMTP server to resolve this.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
I'd rather be a hammer than a nail.
"Jerry" <Jerry@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EE8BAF72-9212-42AD-8973-86DD9BE765C7@xxxxxxxxxxxxxxxx
> Thanks for the information. I decided just to send a text message but I'm
> still having the same problem with it stopping on the myMail.send. Please
> Help
>
> Set MyMail=CreateObject("CDO.Message")
> myMail.Subject="Password"
> myMail.From="Administrator@xxxxxxxxxxxxxxxxxxx"
> myMail.To=ors("email")
> myMail.TextBody="Sample Mail"
> -----> myMail.send
> Set myMail=Nothing
>
>
> "Stefan B Rusynko" wrote:
>
>> For tips on CDO see
>> http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=46
>> - but there is no way your server can send a file from your PC where you
>> have
>> myMail.CreateMHTMLBody "file://E:/Falco/valley.htm"
>> Which should probably be: myMail.CreateMHTMLBody("valley.htm")
>> - if the page valley.htm is at the same level as your ASP page (if not
>> add a relative path)
>> --
>>
>> _____________________________________________
>> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> "Warning - Using the F1 Key will not break anything!" (-;
>> To find the best Newsgroup for FrontPage support see:
>> http://www.net-sites.com/sitebuilder/newsgroups.asp
>> _____________________________________________
>>
>>
>> "Jerry" <Jerry@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:C96D1EE4-07D3-41ED-9CB1-89F798084208@xxxxxxxxxxxxxxxx
>> | I'm getting this error message. Any suggestions? Its stopping on -
>> myMail.Send
>> |
>> |
>> | CDO.Message.1 error '80070005'
>> |
>> | Access is denied.
>> |
>> | /email.asp, line 23
>> |
>> | Sample Code:
>> | <!--#include file="ADOvbs.inc"-->
>> | <%Username = Cstr(Trim(Request.form("UserName")))%>
>> | <%email = Cstr(Trim(request.form("Email")))%>
>> | <%
>> | Set Conn = Server.CreateObject( "ADODB.Connection" )
>> | set oRs=Server.CreateObject("ADODB.recordset")
>> | conn.Open "DSN=falco; uid=sa; pwd=6stang7"
>> | strSql = "SELECT * FROM Tenant " &_
>> | "WHERE Customerid = '" & Cstr(Request.form("UserName")) & "' " &_
>> | "AND email = '" & Cstr(Request.form("email")) & "'"
>> | oRS.open strSql, conn
>> | if ors.eof then
>> | response.redirect "errorpage.asp"
>> | end if
>> |
>> |
>> | Set MyMail=CreateObject("CDO.Message")
>> | myMail.Subject="Password"
>> | myMail.From="Administrator@xxxxxxxxxxxxxxxxxxx"
>> | myMail.To=ors("email")
>> | myMail.TextBody="This is your password" &" "& ors("password")
>> | myMail.CreateMHTMLBody "file://E:/Falco/valley.htm"
>> | myMail.Send
>> | Set myMail=Nothing
>> |
>> |
>> | oRs.close
>> | set oRS=nothing
>> |
>> | %>
>> |
>> |
>> | <html>
>> |
>> | <head>
>> | <meta http-equiv="Content-Type" content="text/html;
>> charset=windows-1252">
>> | <title>Email</title></head>
>> |
>> | <body>
>> |
>> |
>> | <H2>Your message has been sent!</H2>
>> | </BODY>
>> |
>> | </html>
>>
>>
>>
.
- Follow-Ups:
- Re: Email problems
- From: Jerry
- Re: Email problems
- References:
- Re: Email problems
- From: Stefan B Rusynko
- Re: Email problems
- From: Jerry
- Re: Email problems
- Prev by Date: Re: Anyone know how to keep spammers out of a guestbook!
- Next by Date: Re: Email problems
- Previous by thread: Re: Email problems
- Next by thread: Re: Email problems
- Index(es):
Relevant Pages
|