Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default sending automatic email with VBA-Excel in Vista OS and Windows Mail

This will only work if you use Outlook

For Windows Mail use SendMail (see the first section of this page)
http://www.rondebruin.nl/sendmail.htm
Or use CDO


--

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


"Alain Bernard" wrote in message ...
Hi,

The following code run perfectly with Windows2000 and Outlook. Using Vista
OSa nd Windows Mail that doesn't work any more. Is there a specific library
to select ? or Is there a different code ?

Set myMailApp = CreateObject("Outlook.Application")
Set myMail = myMailApp.CreateItem(olMailItem)
With myMail
.To = "
.Subject = "test"
.Body = "test"
'.Attachments.Add Path & "\" & File
.ReadReceiptRequested = True
.Display
End With

Could any body send me back information to adapt this code in my environment
?

Thank you in advance.
Alain

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sending automatic email with VBA-Excel in Vista OS and Windows Mail

Thank you to Ron de Bruin for his help.
I need more precisions.

In CDO context the .Display method does'nt exists and I have not found the methods to attach a file to my mail and to view it before sending it.
I have already include the "Microsoft CDO for Windows 2000 library" but there is'nt any description of all methods and properties of these functions.

How to get these descriptions ? Reading some tips about CDO methods I tested the option .Send showDialog:=True without success.

Thank you in advance for your help.


"Ron de Bruin" a écrit dans le message de ...
This will only work if you use Outlook

For Windows Mail use SendMail (see the first section of this page)
http://www.rondebruin.nl/sendmail.htm
Or use CDO


--

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


"Alain Bernard" wrote in message ...
Hi,

The following code run perfectly with Windows2000 and Outlook. Using Vista
OSa nd Windows Mail that doesn't work any more. Is there a specific library
to select ? or Is there a different code ?

Set myMailApp = CreateObject("Outlook.Application")
Set myMail = myMailApp.CreateItem(olMailItem)
With myMail
.To = "
.Subject = "test"
.Body = "test"
'.Attachments.Add Path & "\" & File
.ReadReceiptRequested = True
.Display
End With

Could any body send me back information to adapt this code in my environment
?

Thank you in advance.
Alain

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default sending automatic email with VBA-Excel in Vista OS and Windows Mail

As far as I know it is not possible to view the mail before you send it with CDO

Use the SendMail code and not fill in the To
Like this

.SendMail "", "This is the Subject line"



--

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


"Alain Bernard" wrote in message ...
Thank you to Ron de Bruin for his help.
I need more precisions.

In CDO context the .Display method does'nt exists and I have not found the methods to attach a file to my mail and to view it before sending it.
I have already include the "Microsoft CDO for Windows 2000 library" but there is'nt any description of all methods and properties of these functions.

How to get these descriptions ? Reading some tips about CDO methods I tested the option .Send showDialog:=True without success.

Thank you in advance for your help.


"Ron de Bruin" a écrit dans le message de ...
This will only work if you use Outlook

For Windows Mail use SendMail (see the first section of this page)
http://www.rondebruin.nl/sendmail.htm
Or use CDO


--

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


"Alain Bernard" wrote in message ...
Hi,

The following code run perfectly with Windows2000 and Outlook. Using Vista
OSa nd Windows Mail that doesn't work any more. Is there a specific library
to select ? or Is there a different code ?

Set myMailApp = CreateObject("Outlook.Application")
Set myMail = myMailApp.CreateItem(olMailItem)
With myMail
.To = "
.Subject = "test"
.Body = "test"
'.Attachments.Add Path & "\" & File
.ReadReceiptRequested = True
.Display
End With

Could any body send me back information to adapt this code in my environment
?

Thank you in advance.
Alain

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
Copy email addresses from excel to windows mail Michael Douglas[_2_] Excel Discussion (Misc queries) 2 February 9th 09 08:12 PM
Copy email addresses from excel to windows mail Michael Douglas Excel Discussion (Misc queries) 0 February 9th 09 05:26 PM
Sending file to Vista PC via email frustrated Excel Worksheet Functions 0 December 10th 08 05:46 PM
automatic e-mail sending from excel Ivica Rihter Excel Programming 1 July 13th 06 09:48 PM
Sending automatic e-mail from Xl JBCIB Excel Programming 11 April 25th 06 08:57 PM


All times are GMT +1. The time now is 09:08 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"