Reply
Old 07-02-2009, 05:18 PM CDO mail
Junior Talker

Posts: 2
Trades: 0
Hi I am using the following code for sending a mail from asp page.I am not sure how to track whether the email is sent or delivered.Even i give a wrong to address like 'ono@on.com'
I am getting err.number is 0.Can somebody explain me to track it.In which case the err.number hold the value.


Set myMail=CreateObject("CDO.Message")
on error resume next
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.Send
if err.number <> 0 then
response.write "Error number " & err.number & " Error Desc " & err.description
err.clear
end if
prasath_s01 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-03-2009, 09:25 PM Re: CDO mail
Super Talker

Posts: 101
Trades: 0
It is not possible to track where the email has been received at the recipient mail server or not. Script will just send the mail. It can not track whether the mail was accepted by the mail server or rejected or un-routed, etc.

However, if the mail could not be sent then you will receive the appropriate error number there in the script.
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting
twhdir is offline
Reply With Quote
View Public Profile
 
Old 07-05-2009, 02:40 AM Re: CDO mail
itHighway's Avatar
Skilled Talker

Posts: 73
Name: Zeeshan Dar
Location: GUJ
Trades: 0
There are some email components which provide the option to get a confirmation email on successful transfer of email. CDO does not provide this option.

When sending email, CDO or any other component does not check or validate whether the given email address exists or not.
itHighway is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 12:17 PM Re: CDO mail
Junior Talker

Posts: 2
Trades: 0
If i have given some invalid email address for eg "one.com" whether it will throw the error...
prasath_s01 is offline
Reply With Quote
View Public Profile
 
Old 07-06-2009, 03:17 PM Re: CDO mail
chrishirst's Avatar
Super Moderator

Posts: 22,281
Location: Blackpool. UK
Trades: 0
An error number of 0 means the message was accepted and sent successfully from the by the sending server. You cannot track if it was delivered or not, or if the recipient is a valid address or not
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-06-2009, 10:22 PM Re: CDO mail
Super Talker

Posts: 101
Trades: 0
Quote:
Originally Posted by itHighway
There are some email components which provide the option to get a confirmation email on successful transfer of email. CDO does not provide this option.
Can you give the name of anyone component that returns the status of the successful transfer of an email sent?
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting
twhdir is offline
Reply With Quote
View Public Profile
 
Old 07-07-2009, 05:42 AM Re: CDO mail
chrishirst's Avatar
Super Moderator

Posts: 22,281
Location: Blackpool. UK
Trades: 0
There isn't one!

No server component can retrieve the read/unread status on another remote mail server.
There can be ways of reading the status provided the recipient mail server is on the same server as your sending script, and the mail server in use allows for scripting to be used.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to CDO mail
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12864 seconds with 13 queries