Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO with ASP: if TO is incorrect ?

Status
Not open for further replies.

ZioGian

Programmer
Jul 7, 2001
4
IT
I've been asked to resolve this problem:

when a surfer fill his address INCORRECTLY,
surely he won't receive anything;
BUT, as a copy of the mail is sent ALSO to
site-owner, WHY this second-message never
arrive to site-owner ?

I've searched a lot everywhere for CdoE_*
Error Codes, but I'm not been able in finding
something to GET this kind of ERROR.

Anyone has already solved the problem ?

Thanks in advance.
 
... Excuse Me ...

Set NEGOZIOmail = Server.CreateObject("CDONTS.NewMail")
NEGOZIOmail.BodyFormat = CdoBodyFormatHTML
NEGOZIOmail.MailFormat = CdoMailFormatMime
NEGOZIOmail.From = ADOrecord(CNsessioniTAB)("email")
NEGOZIOmail.To = indirizzo_email_negozio
NEGOZIOmail.Subject = "Acquisto REGALI dal sito - eseguito da " & ADOrecord(CNsessioniTAB)("nome") & " " & ADOrecord(CNsessioniTAB)("cognome") & " il " & Now() & " (€ " & Totalone & ")"
NEGOZIOmail.Body = str_IdentLista & vbCrLf & &quot;<br>&quot; & vbCrLf & str_Articoli & vbCrLf & &quot;<br>&quot; & vbCrLf & str_Totalone & vbCrLf & &quot;<br>&quot; & vbCrLf & vbCrLf & str_Prenotante
NEGOZIOmail.Importance = CdoHigh
NEGOZIOmail.Send
Set NEGOZIOmail = Nothing

Hope it'll be rewritten in the right way by the Browser.

OBVIOUSLY the field ADOrecord(CNsessioniTAB)(&quot;email&quot;) must contains, for example, an invalid e-mail address ... wrongly typed by surfer.


 
Hey ZioGian,

CDO will not attempt to send out emails that do not meet the qualified email rules.. USER@DOMAIN.TLD

If any of those (USER, DOMAIN or TLD) are missing, CDO will trash the email.

Hope this helps..

Cheers,

Gorkem.
 
Thanks Gorkem !

Effectively I've found something like this, but i'll try to specify better this case:

My correct mail is ZIOGIAN@LIBERO.IT
this address MEET rules.

Suppose I type (wrongly) ziogAIn@libero.it
the USER &quot;ziogAIn&quot; doesn't exist, sure,
BUT still the address MEETS rules ... (or not ???)

THEN: Why the mail is TRASHED if the &quot;FROM&quot; field
contains this wrong USER, considering that
the IMPORTANT address is &quot;TO&quot; field ???

ALSO: Let's assume CDOnts or SMTP verify existence
of mis-typed address in &quot;FROM&quot; field;
ISN'T there ANY return error-message ???

I understand i'm boring with a low-importance question, but i can't understand the way CDO or SMTP can TEST addresses before sending mails ...

Thank you again for kind attention.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top