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: 26
Default Problems with SendMail ?

When I have multiple recipients I cannot get SendMail to
work. I have a feeling this might be an issue with
exchange server, but that's just a guess. Here is the
code, I'm getting run time error 1004 when the first
condition of the IF statement is executed, the second
condition works fine. (sorry if this wordwraps)

<vb code

If shtMain.Range(RG_PROJ).Value = 500 Then
' This is a Savannah project, send to Kevin & Paula
ThisWorkbook.SendMail Array("Kevin Coll", "Paula
Kessinger"), "Requisition " & FILE_PREFIX & Format
(shtMain.Range(RG_REL), "00000"), True
Else
' This is a Lathrop project, Kevin only
ThisWorkbook.SendMail Array("Kevin
Coll"), "Requisition " & FILE_PREFIX & Format(shtMain.Range
(RG_REL), "00000"), True
End If

</vb code

I have tried also creating a string array variable and
using that, and also tried adding ";" after the first name
(such as with Outlook with multiple recipients).

Any help is appreciated!
 
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
sendmail Eef New Users to Excel 4 March 23rd 09 05:55 PM
Sendmail Mattlynn via OfficeKB.com Excel Discussion (Misc queries) 4 August 8th 08 12:21 PM
Problems with SendMail or automation of Send To Douglas Wills Excel Programming 7 October 1st 03 04:45 PM
Problems with SendMail Douglas Wills Excel Programming 1 September 24th 03 10:03 PM
SendMail and BCC Darrin Henry Excel Programming 0 September 15th 03 10:17 PM


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