PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Changing from mail address when mail is sent
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Changing from mail address when mail is sent
![]() |
Changing from mail address when mail is sent |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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/...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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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/defaul...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. -- Eric Legault - B.A, MCP, MCSD, Outlook MVP -------------------------------------------------- {Private e-mails ignored} Job: http://www.imaginets.com Blog: http://blogs.officezealot.com/legault/ "Shiraz Bhaiji" wrote: > 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/...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 > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

