Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Emial with notes

I am emailing with notes and everything seems to work fine except when I add
group to the EmailCCto field

I use an array to set the values but when I use a group it only picks up the
last group name, the Sendto field works fine it send to all of those users,
it is the EmaillCCto field that cause the problems, any assistance would be
appreciated

Also how would I get a message box to pop up shoping me the values in the
emailCCto field

Dim objNotesSession As Object
Dim objNotesMailFile As Object
Dim objNotesDocument As Object
Dim objNotesField As Object




'On Error GoTo errmsg
emailsendto = ,", ,",
,", ,", ,",
") '' Required - Send to address
EMailCCto = Array("THMD-Sales Administration,", "THMD-National Accounts,",
"THMD-Region 100,", "THMD-Region 200,", "THMD-Region 300,", "THMD-Region
400,", "THMD-Region 500,", "THMD-Region 600,", "NASSMT") '' Optional

'EMailBCCTo = "" '' Optional
EmailSubject = " Daily Sales Report"
''Establish Connection to Notes
Set objNotesSession = CreateObject("Notes.NotesSession")

''Establish Connection to Mail File
'' .GETDATABASE("SERVER", "FILE")
Set objNotesMailFile = objNotesSession.GETDATABASE("", "")
''Open Mail
objNotesMailFile.OPENMAIL

''Create New Memo
Set objNotesDocument = objNotesMailFile.CREATEDOCUMENT

''Create 'Subject Field'
Set objNotesField = objNotesDocument.APPENDITEMVALUE("Subject", EmailSubject)
'With objNotesField
' .appendtext "Daily Sales Report"
'End With
''Create 'Send To' Field
Set objNotesField = objNotesDocument.APPENDITEMVALUE("SendTo", emailsendto)
''Create 'Copy To' Field
Set objNotesField = objNotesDocument.APPENDITEMVALUE("CopyTo", EMailCCto)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Emial with notes

See your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Nigel" wrote in message ...
I am emailing with notes and everything seems to work fine except when I add
group to the EmailCCto field

I use an array to set the values but when I use a group it only picks up the
last group name, the Sendto field works fine it send to all of those users,
it is the EmaillCCto field that cause the problems, any assistance would be
appreciated

Also how would I get a message box to pop up shoping me the values in the
emailCCto field

Dim objNotesSession As Object
Dim objNotesMailFile As Object
Dim objNotesDocument As Object
Dim objNotesField As Object




'On Error GoTo errmsg
emailsendto = ,", ,",
,", ,", ,",
") '' Required - Send to address
EMailCCto = Array("THMD-Sales Administration,", "THMD-National Accounts,",
"THMD-Region 100,", "THMD-Region 200,", "THMD-Region 300,", "THMD-Region
400,", "THMD-Region 500,", "THMD-Region 600,", "NASSMT") '' Optional

'EMailBCCTo = "" '' Optional
EmailSubject = " Daily Sales Report"
''Establish Connection to Notes
Set objNotesSession = CreateObject("Notes.NotesSession")

''Establish Connection to Mail File
'' .GETDATABASE("SERVER", "FILE")
Set objNotesMailFile = objNotesSession.GETDATABASE("", "")
''Open Mail
objNotesMailFile.OPENMAIL

''Create New Memo
Set objNotesDocument = objNotesMailFile.CREATEDOCUMENT

''Create 'Subject Field'
Set objNotesField = objNotesDocument.APPENDITEMVALUE("Subject", EmailSubject)
'With objNotesField
' .appendtext "Daily Sales Report"
'End With
''Create 'Send To' Field
Set objNotesField = objNotesDocument.APPENDITEMVALUE("SendTo", emailsendto)
''Create 'Copy To' Field
Set objNotesField = objNotesDocument.APPENDITEMVALUE("CopyTo", EMailCCto)



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
add notes reza Excel Discussion (Misc queries) 2 October 6th 09 10:53 AM
Excel sheet send as emial body - office 2007 csi.sec Excel Discussion (Misc queries) 1 February 5th 07 07:40 AM
Notes Supe Excel Discussion (Misc queries) 1 November 14th 06 01:46 PM
Connection to notes nath Excel Programming 0 July 13th 04 02:29 PM
Notes and Closures scrabtree23[_2_] Excel Programming 0 November 25th 03 01:10 PM


All times are GMT +1. The time now is 09:28 PM.

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"