PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Changing from mail address when mail is sent

Reply

Changing from mail address when mail is sent

 
Thread Tools Rate Thread
Old 04-11-2004, 01:30 PM   #1
Shiraz Bhaiji
Guest
 
Posts: n/a
Default Changing from mail address when mail is sent


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




  Reply With Quote
Old 04-11-2004, 09:33 PM   #2
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: Changing from mail address when mail is sent

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
>
>
>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off