Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
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
View Public Profile
 
 
Register now for full access!
Old 07-03-2009, 09:25 PM Re: CDO mail
Super Talker

Posts: 100
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.
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
|
Please login or register to view this content. Registration is FREE
twhdir is offline
View Public Profile
 
Old 07-05-2009, 02:40 AM Re: CDO mail
itHighway's Avatar
Skilled Talker

Posts: 83
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.
__________________
Zeeshan Dar
itHighway -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
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
View Public Profile
 
Old 07-06-2009, 03:17 PM Re: CDO mail
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 07-06-2009, 10:22 PM Re: CDO mail
Super Talker

Posts: 100
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?
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
|
Please login or register to view this content. Registration is FREE
twhdir is offline
View Public Profile
 
Old 07-07-2009, 05:42 AM Re: CDO mail
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « 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.19326 seconds with 12 queries