Solved

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

Posted on 2001-06-12
15
290 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
 

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

16 Experts available now in Live!

Get 1:1 Help Now