Solved

How can i sending Mail thru Cdonts and Jmail???

Posted on 2001-06-12
15
295 Views
Last Modified: 2008-02-26
I am having the coding for sending mail thru jmail and cdonts. But if the mail is invalid for example(ss@kk.com) then the cdonts and jmail returns true or value that i have send the mail. But it is false. Then my gateway search for the particular domain and it was locked in gateway due to invalid ID. so these was the problem ?. Please do the needful for me?. I want to get wheteher it was sent to the Mail id or not. I want to get a reply mail sent or Failure for the Mail ID.
0
Comment
Question by:srinivasmr
  • 5
  • 5
  • 3
  • +1
15 Comments
 
LVL 20

Expert Comment

by:Silvers5
ID: 6184701
you can't effectively.. the best you can do to know it failed you should include a return address so that the mail hostmaster returns you a failure notice to your mailbox.. Jmail supports this cdont if I remember correctly doesn't

0
 

Author Comment

by:srinivasmr
ID: 6184722
Hai Silers5!

  Can u tell me clearly!! I am Not able to follow ur words! Please
0
 

Author Comment

by:srinivasmr
ID: 6184723
Hai Silers5!

  Can u tell me clearly!! I am Not able to follow ur words! Please
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:srinivasmr
ID: 6184733
Hai Silers5!

  Can u tell me clearly!! I am Not able to follow ur words! Please
0
 

Author Comment

by:srinivasmr
ID: 6184748
Hai Silers5!

  Can u tell me clearly!! I am Not able to follow ur words! Please
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6184903
I don't have jmail installed.. check if the component have a return address proprety.. so if the mail fails it will return to you.. hmm in cdonts the mail server will return the mails to the email you included in the from
0
 
LVL 4

Expert Comment

by:epeele
ID: 6186351
srinivasmr,

The first article below is an excellent article on email validation which will help you to determine what is necessary to validate the email address prior to sending it, including whether or not the domain is registered and able to receive mail.

The Forgotten Art of Email Address Validation
http://www.4guysfromrolla.com/webtech/093000-1.shtml

Another article with source code:
http://coveryourasp.com/ValidateEmail.asp#Result3

Components for email validation using Domain MX queries:
http://www.hexillion.com/software/components/HexValidEmail/
http://www.nehuenmultimedia.com.ar/html/vmailcom.html
http://www.email-screen.com/index-emailscreen.html
0
 

Author Comment

by:srinivasmr
ID: 6189486
Dear epeele!!

   I want to know whether cdonts or jmail will return mail error demo to the from ID. If jmail or cdonts will return mail failure demo to the from id. My question is if from ID also get wrong then how can the process is to be?.

0
 
LVL 4

Accepted Solution

by:
epeele earned 75 total points
ID: 6190989
In either case, if the mail was sent successfully, but to an invalid email account, the message will be returned to the address assigned to either the FROM property or to the RETURNADDRESS property (JMail only).

In NEITHER case will an error be generated if the email address is properly constructed but invalid.

However, to proactively prevent this problem, you could use a component (listed in earlier message) to query the target MX Server to verify that the email address in question is in fact valid and able to receive mail.  

After doing this, you could use simple error handling (JMail supports error messages, CDONTS does not) in your page to make sure the page executes properly with something like:

.....
on error resume next
JMail.execute
if err <> 0 then
Response.Write(JMail.ErrorMessage)
Response.End()
end if
.....

or

.....
on error resume next
set objMail = Server.CreateObject("CDONTS.NewMail")
'set objMail properties
objMail.Send()
if err <> 0 then
Response.Write(Err.description)
Response.End()
end if
....
0
 
LVL 4

Expert Comment

by:epeele
ID: 6191014
You could try the below to test:

Response.Write ConvertBinary(g_vtInfo)

of course, using the function in the earlier example.
0
 
LVL 4

Expert Comment

by:epeele
ID: 6191019
woops, disregard last post.  Posted on wrong question. sorry
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6191049
heh.. that binary array is driving everybody crazy :o)
0
 
LVL 4

Expert Comment

by:epeele
ID: 6191110
Yep!  That's the kind of question that makes this all worthwhile.  Something we can all learn from.
0
 
LVL 14

Expert Comment

by:puranik_p
ID: 8646995

        No comment has been added lately, so it's time to clean up this TA.
         I will leave a recommendation in the Cleanup topic area that this question is:

->    Accept epeele's comment as answer

         Please leave any comments here within the next seven days.
         
         PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
         
         puranik_p
         EE Cleanup Volunteer  

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now