email sending to a group name error

S

Spike

I will be grateful for any help on the following. I have a short macro that
sends an email message; the receipient’s address is held in a cell =
s_Config.Range("Config_Email")
When the receipient is a single address this works fine, but if it is sent
to a group name;ie, several different people, then it errors out but usually
the message is actually sent

I show below the code I am using



ESubject = Successful"
Sendto = s_Config.Range("Config_Email")
EBody = "Operation is successful"


Set App = CreateObject("Outlook.Application")
Set Itm = App.CreateItem(0)

With Itm
.Subject = ESubject
.To = Sendto
.Importance = 2
.Body = EBody
.send
End With

Set App = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top