View Single Post
  #7  
Old September 11th 06, 01:10 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook2003 Script How to change the sender missing something

If these are both separate Exchange mailboxes, you can assign the value of the MailItem.SendOnBehalfOfName property to the name of another mailbox. Otherwise, see
http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds that might fit your scenario.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message ...
Hi i'ts me Again.....

I've done it but it solve only à 50% of my PB

The name of the sender (from ) stay the same one (olivier D) I want to
replace it with and when some one receive a mail
(sent with the new form) he can
only see from:
and not from: Olivier.D


For the second part (Reply) it work's fine

Set myReplyRecipient = myItem.replyRecipients.Add(
)

when you click Reply the Recipient is



Thank U All


"Jonas Svensson" a écrit dans le message de news:
...
Here's some code that I use:

Dim myOlApp As Outlook.Application
Dim myItem As Outlook.MailItem

Dim colReplyRecips As Recipients
Dim objReplyRecip As Recipient

' Create an Outlook application object
Set myOlApp = New Outlook.Application

' Creates a new MailItem form
Set myItem = myOlApp.CreateItem(olMailItem)

Set colReplyRecips = myItem.ReplyRecipients
Set objReplyRecip = ")

bbnimda wrote:
Tks a lot sue your answer are very usefull to me

Tryed tu use this but i doesn't work , Sorry i'm new in Vbscript and
VBA

Item.ReplyRecipients = "mydistributionlist"

can your where am I wrong...

tks



"Sue Mosher [MVP-Outlook]" a écrit dans le
message de news:
...
You can use the Item.ReplyRecipients collection to control the reply-to
address.



Ads