Hi all,
its the first time I write on this forum.
I hope someone of you could help me to solve a problem.
I would like to change the from address and add some tag to subject for each new email I send.
While adding tag to subject it would be very simple, isn't so for the From address field.
I've googled a lot and, for now, nothing helpded me in this task.
Now my question are
Is it possible using ItemSend event, or I should use another way?
Does someone know if and how is it possible change the from address?
Here's the code I've used to change the subject and to try to change the from address
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)'
Item.Subject = Item.Subject & "[myDepartment]" 'it works
Item.SentOnBehalfOfName = "department01" 'it doesn't
(((
End Sub
I've grant my user sendas right for the email address/mailbox I wish to use.
Thanks
Marco
its the first time I write on this forum.
I hope someone of you could help me to solve a problem.
I would like to change the from address and add some tag to subject for each new email I send.
While adding tag to subject it would be very simple, isn't so for the From address field.
I've googled a lot and, for now, nothing helpded me in this task.
Now my question are
Is it possible using ItemSend event, or I should use another way?
Does someone know if and how is it possible change the from address?
Here's the code I've used to change the subject and to try to change the from address
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)'
Item.Subject = Item.Subject & "[myDepartment]" 'it works

Item.SentOnBehalfOfName = "department01" 'it doesn't

End Sub
I've grant my user sendas right for the email address/mailbox I wish to use.
Thanks
Marco