#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default CDO Mail

I am using Ron de Bruin's quite excellent code.

Howveer is it possible to test to know if am Email was actually sent? As an
example if iMsg.To is set to 0, I am looping through a set of email
addresses stored in a DB, and the query returns 0 when no Email address is
present, no Email is sent but the code does not error when using 0 as a To
address.

If the answer is I have to test every variable and that I am on-line to know
something has been sent then let me know. However I am sure the question I
am asking has been asked many times so I wonder what the answer is.

PWS


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default CDO Mail

Test if there is a mail address in the cell in the loop

If cell.Value Like "?*@?*.?*" Then



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Paul W Smith" wrote in message ...
I am using Ron de Bruin's quite excellent code.

Howveer is it possible to test to know if am Email was actually sent? As an
example if iMsg.To is set to 0, I am looping through a set of email
addresses stored in a DB, and the query returns 0 when no Email address is
present, no Email is sent but the code does not error when using 0 as a To
address.

If the answer is I have to test every variable and that I am on-line to know
something has been sent then let me know. However I am sure the question I
am asking has been asked many times so I wonder what the answer is.

PWS


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default CDO Mail

It's not really the Email address, what I am wanting to know is if there is
a test to know that the Email was actually sent.

I could write a function that returns true or false, but in my limited
experience the .send line of code executes without error, but the Email does
not get sent.

Do you know of a way of testing if the Email gets sent?

I copy myself on as a BCC but this is a manual test not one I can check in
code.

PWS



"Ron de Bruin" wrote in message
...
Test if there is a mail address in the cell in the loop

If cell.Value Like "?*@?*.?*" Then



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Paul W Smith" wrote in message
...
I am using Ron de Bruin's quite excellent code.

Howveer is it possible to test to know if am Email was actually sent? As
an example if iMsg.To is set to 0, I am looping through a set of email
addresses stored in a DB, and the query returns 0 when no Email address
is present, no Email is sent but the code does not error when using 0 as
a To address.

If the answer is I have to test every variable and that I am on-line to
know something has been sent then let me know. However I am sure the
question I am asking has been asked many times so I wonder what the
answer is.

PWS




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default CDO Mail

Hi Paul

No good way that I know of.
But I not spend much time looking for that

Now with Outlook 2007 CDO is not needed anymore because
there are no security warnings anymore if your AV is ok

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Paul W Smith" wrote in message ...
It's not really the Email address, what I am wanting to know is if there is
a test to know that the Email was actually sent.

I could write a function that returns true or false, but in my limited
experience the .send line of code executes without error, but the Email does
not get sent.

Do you know of a way of testing if the Email gets sent?

I copy myself on as a BCC but this is a manual test not one I can check in
code.

PWS



"Ron de Bruin" wrote in message
...
Test if there is a mail address in the cell in the loop

If cell.Value Like "?*@?*.?*" Then



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Paul W Smith" wrote in message
...
I am using Ron de Bruin's quite excellent code.

Howveer is it possible to test to know if am Email was actually sent? As
an example if iMsg.To is set to 0, I am looping through a set of email
addresses stored in a DB, and the query returns 0 when no Email address
is present, no Email is sent but the code does not error when using 0 as
a To address.

If the answer is I have to test every variable and that I am on-line to
know something has been sent then let me know. However I am sure the
question I am asking has been asked many times so I wonder what the
answer is.

PWS




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default CDO Mail

Thanks Ron, I guess if you do not know of a way, there probably isn't one.

Would love to use Outlook 2007, but client still uses Excel 2003.

PWS



"Ron de Bruin" wrote in message
...
Hi Paul

No good way that I know of.
But I not spend much time looking for that

Now with Outlook 2007 CDO is not needed anymore because
there are no security warnings anymore if your AV is ok

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Paul W Smith" wrote in message
...
It's not really the Email address, what I am wanting to know is if there
is a test to know that the Email was actually sent.

I could write a function that returns true or false, but in my limited
experience the .send line of code executes without error, but the Email
does not get sent.

Do you know of a way of testing if the Email gets sent?

I copy myself on as a BCC but this is a manual test not one I can check
in code.

PWS



"Ron de Bruin" wrote in message
...
Test if there is a mail address in the cell in the loop

If cell.Value Like "?*@?*.?*" Then



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Paul W Smith" wrote in message
...
I am using Ron de Bruin's quite excellent code.

Howveer is it possible to test to know if am Email was actually sent?
As an example if iMsg.To is set to 0, I am looping through a set of
email addresses stored in a DB, and the query returns 0 when no Email
address is present, no Email is sent but the code does not error when
using 0 as a To address.

If the answer is I have to test every variable and that I am on-line to
know something has been sent then let me know. However I am sure the
question I am asking has been asked many times so I wonder what the
answer is.

PWS






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert to HTML and e-mail selection as the body of the e-mail. ryanmhess Excel Programming 5 April 16th 09 01:28 AM
Error: cannot load the mail service. Check your mail installation. Brad Bowser Excel Discussion (Misc queries) 0 December 20th 05 10:03 PM
General mail failure when sending e-mail from Excel Adrienne Excel Discussion (Misc queries) 5 November 4th 05 12:59 PM
Creating TWO-WAY E-Mail Attachments with 'BeforeSave Events' in Code for 2nd E-Mail Chuckles123[_112_] Excel Programming 0 September 8th 05 05:56 PM


All times are GMT +1. The time now is 11:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"