dbTalk Databases Forums  

Email to more than 1 recipient

comp.databases.ms-access comp.databases.ms-access


Discuss Email to more than 1 recipient in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
XPS350
 
Posts: n/a

Default Re: Email to more than 1 recipient - 06-05-2011 , 03:00 PM






You can use a code like:

Dim olApp As Outlook.Application
Dim olItem As Outlook.MailItem

Set olApp = CreateObject("Outlook.Application")
Set olItem = olApp.CreateItem(olMailItem)


olItem.Recipients.Add ("aaa (AT) bbb (DOT) com")
olItem.Recipients.Add ("ccc (AT) ddd (DOT) com")

olItem.Display


Peter
http://access.xps350.com/

Reply With Quote
  #12  
Old   
Phil
 
Posts: n/a

Default Re: Email to more than 1 recipient - 06-05-2011 , 04:18 PM






On 05/06/2011 21:00:00, XPS350 wrote:
Quote:
You can use a code like:

Dim olApp As Outlook.Application
Dim olItem As Outlook.MailItem

Set olApp = CreateObject("Outlook.Application")
Set olItem = olApp.CreateItem(olMailItem)


olItem.Recipients.Add ("aaa (AT) bbb (DOT) com")
olItem.Recipients.Add ("ccc (AT) ddd (DOT) com")

olItem.Display


Peter
http://access.xps350.com/

Thanks Peter

Think it might demend which version of Office you are using.
Does olItem.Recipients.Add ("Fred Smith")
olItem.Recipients.Add ("John Jones") work as well.
Do I need to do a olItem.ResolveAll (I think that is the correct syntax)?

Phil

Reply With Quote
  #13  
Old   
Ed Robichaud
 
Posts: n/a

Default Re: Email to more than 1 recipient - 06-06-2011 , 07:41 AM



It works in versions 2002-2010

"Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote

Quote:
Thanks, Ed

Which version of Access / Office are you using

Phil

Reply With Quote
  #14  
Old   
Phil
 
Posts: n/a

Default Re: Email to more than 1 recipient - 06-06-2011 , 08:14 AM



On 06/06/2011 13:41:48, "Ed Robichaud" wrote:
Quote:
It works in versions 2002-2010

"Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in message
news:isg5td$l1r$1 (AT) speranza (DOT) aioe.org...
Thanks, Ed

Which version of Access / Office are you using

Phil


Thanks Ed

Seems to be OK now. I think the space after the semicolon was the cause of
the trouble.

Thanks again

Phil

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.