Solved

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

Posted on 2001-06-12
15
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

734 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