Changing from mail address when mail is sent

S

Shiraz Bhaiji

We have a client that wants to be forced to choose the "from address" of a
mail when they press send.



So far we have implemented it based on the following article:



http://www.win2000mag.com/Articles/Index.cfm?ArticleID=15442



This allows the user to write in a reply address.



We have two problems:



1.. When the mail arrives the reply address is OK, but the displayed from
name is the account it was sent from not the account of the reply address. I
have tried to set the sentOnBehalfOff property, but that does not seem to
help.

2.. The client would like to be able to select an address using a drop
down box. I do not think that it is possible using a message box, and I have
not been able to find out how to display a form from the
Application_ItemSend event.
Thanks



Shiraz
 
G

Guest

If you are not using Exchange, you can change the displayed From address on
the recipient's end by using Outlook Redemption:

http://www.dimastr.com/redemption/faq.htm#14

If you are using Exchange, then you need to give the sending user "Send As"
rights (not Send on Behalf of via Delegation) on the chosen delivery mailbox
in order for the latter name to be displayed:

How to grant "Send as" and "Send on behalf" permissions in Exchange 2000
Server:
http://support.microsoft.com/default.aspx?scid=kb;en-us;327000&Product=OFF2003

To display a list of possible e-mail addresses to choose from, you could
either design a UserForm in your Outlook VBA project, or use CDO's
Session.AddressBook method to display Outlook's Address Book dialog.

A custom form is possible as well, but a little trickier. You'd just
instantiate your custom form in Item_Send like this:

Set myForm = MyFolder.Items.Add("IPM.Note.CustomFormName")
myForm.Display

Where MyFolder is where you have the form published.
 

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