HaworthBantam
Programmer
I've created an Outlook form where the Edit Compose Page and the Edit Read Page are identical, except for field names. The form also has a Page 2 that must be completed by the recipient and returned to sender (the "King" still is "The King"
. I have a button on Page 2 that, when clicked, should return the original mail to the sender with Page 2 completed. Unfortunately when the recipient completes Page 2 and clicks the button to return the mail the following error message appears :
"You do not have the permission to send the message on behalf of the specified user"
The code behind the button is.....
Sub cmdReply_Click
Set MyItem=Item.GetInspector.CurrentItem
Set MyPage=Item.GetInspector.ModifiedFormPages("Page 2"
'Various Validation here of fields using MyPage etc.
MyItem.Send
End Sub
I've tried determining the original sender....
strSender = MyItem.SenderName
...and adding him/her to the recipients list before sending.....
MyItem.Recipients.Add(strSender)
....but still no luck.
Any help would be gratefully appreciated and I appologise in advance if I'm being a numpty - my knowledge of Oulook VB Script is very limited.
"You do not have the permission to send the message on behalf of the specified user"
The code behind the button is.....
Sub cmdReply_Click
Set MyItem=Item.GetInspector.CurrentItem
Set MyPage=Item.GetInspector.ModifiedFormPages("Page 2"
'Various Validation here of fields using MyPage etc.
MyItem.Send
End Sub
I've tried determining the original sender....
strSender = MyItem.SenderName
...and adding him/her to the recipients list before sending.....
MyItem.Recipients.Add(strSender)
....but still no luck.
Any help would be gratefully appreciated and I appologise in advance if I'm being a numpty - my knowledge of Oulook VB Script is very limited.