Customer email message

G

Greg2582

I'm working with a database that automatically sends a email message when a
new issue is submiited. We recently changed to the Microsoft Exchange Server,
and now when a question is submitted, noone get anything. When I looked at
the code, I get the error message, "You do not have the permission to send
the message on behalf of the specified user."
Enclosed is some of the code below.
Set objOutlook = Outlook.Application
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
.subject = "New Submission"
.Importance = olImportanceHigh
.To = "[email protected];[email protected]"
.Cc = "[email protected]
.sentonbehalfofname = "[email protected]"
.htmlbody
"
"
.Send
End With
 
Top