Re: Email problems



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>
>>
>>
>>


.



Relevant Pages

  • Re: SMTP Relay Best Practice Question
    ... The only reason that I am looking for a way to allow the IP without SMTP ... If adding the IP address to the relay tab isn't reliable, ... Exchange server? ... With such a configuration you can have an open relay ...
    (microsoft.public.exchange.admin)
  • Re: Question Re Securing SMTP Server
    ... I don't care at all about the Sender or Reply To information. ... using my SMTP server as a relay for their nefarious purposes. ... client and enter this into our SMTP server security configuration. ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: rss2email gives: Fatal error: could not connect to mail server
    ... to localhost via SMTP to send email. ... set SMTP_SERVER* to your ISP's SMTP server ... configuration. ... # This file sets the configuration options used by Pine and PC-Pine. ...
    (Fedora)
  • DNS problem with Exchange 2000, I think
    ... I have a windows 2000 domain controller running exchange 2000. ... "A configuration error in the e-mail system caused the message to ... In virtual SMTP server I have configured forwarders for DNS and the ...
    (microsoft.public.exchange.setup)
  • Re: More questins on SMTP spam attacks.
    ... If a session is not allowed to relay to a domain -- because it is not ... A user comes into my SMTP server, ... The SMTP server accepts the emails, ...
    (microsoft.public.inetserver.iis.smtp_nntp)