LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Outlook Object Model via Excel -- return code after send?

I use the following OUTLOOK Object Model code to email sheets to users. I
need to know if the sender actually sent the email.

I know how to get a return code using the SENDMAIL model, but I need to
modify the body of the message. I have searched all documentation that I
have, or have been able to find, including searching the OUTLOOK community
Q&A's.

Can a return code be sent back that tells me if the sender actually sent the
email?


Thanks regards,
Gary

€˜
€˜Send email
€˜
With OutMail
.To = "
.CC = ""
.BCC = ""
.Subject = "Ron, Thank you for making your code samples public!"
.Body = Modified_message_based_on_sheet_content
.Attachments.Add archivename
.Display
End With

If emailsent then
LogTheEmailSent
Else
Msgbox €œemail was not sent!€
endif

 
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
Outlook - Object Model Guardian Braindeadbeachbum Excel Programming 7 May 10th 06 08:26 PM
Send Mail - Code to test whether Lotus Notes / Outlook is used Andibevan[_4_] Excel Programming 2 August 12th 05 03:10 PM
How can I use Outlook express to send mail rather than Outlook by VBA code new.microsoft.com Excel Programming 5 August 3rd 05 03:45 PM
How can I use Outlook express to send mail rather than Outlook by VBA code new.microsoft.com Excel Programming 1 August 1st 05 12:45 PM
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM


All times are GMT +1. The time now is 08:04 AM.

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

About Us

"It's about Microsoft Excel"