A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook2003 Script How to change the sender



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 10th 06, 11:19 AM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 29
Default Outlook2003 Script How to change the sender

Hi,

I made my own form, and it generate a formated mail Receipient / CC
/subject / retails etc....

but a wan't to change the sender of the mail , by a ditributioin list in
this case no matter who send the mail, if the recipient answer the mail it
will be sent to all member of th distribution list

Thank's


Ads
  #2  
Old September 10th 06, 03:22 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

You can use the Item.ReplyRecipients collection to control the reply-to address.

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

"bbnimda" wrote in message ...
Hi,

I made my own form, and it generate a formated mail Receipient / CC
/subject / retails etc....

but a wan't to change the sender of the mail , by a ditributioin list in
this case no matter who send the mail, if the recipient answer the mail it
will be sent to all member of th distribution list

Thank's


  #3  
Old September 10th 06, 08:09 PM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 29
Default Outlook2003 Script How to change the sender

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.

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

"bbnimda" wrote in message
...
Hi,

I made my own form, and it generate a formated mail Receipient / CC
/subject / retails etc....

but a wan't to change the sender of the mail , by a ditributioin list in
this case no matter who send the mail, if the recipient answer the mail it
will be sent to all member of th distribution list

Thank's




  #4  
Old September 10th 06, 09:14 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

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from All Libraries to Outlook to browse all Outlook objects and their properties, methods, and events. Select any object or member, then press F1 to see its Help topic.

If you did that, you'd learn that ReplyRecipients is a Recipients collection in which you create new items by using the Add method:

Item.ReplyRecipients.Add "mydistributionlist"

In that application, "mydistributionlist" must be an Exchange distribution list with its own distinct email address.

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

"bbnimda" wrote in message ...
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.

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

"bbnimda" wrote in message
...
Hi,

I made my own form, and it generate a formated mail Receipient / CC
/subject / retails etc....

but a wan't to change the sender of the mail , by a ditributioin list in
this case no matter who send the mail, if the recipient answer the mail it
will be sent to all member of th distribution list

Thank's




  #5  
Old September 11th 06, 01:52 AM posted to microsoft.public.outlook.program_vba
Jonas Svensson
external usenet poster
 
Posts: 2
Default Outlook2003 Script How to change the sender

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.

  #6  
Old September 11th 06, 09:05 AM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlook2003 Script How to change the sender missing something

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.



  #7  
Old September 11th 06, 02: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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to script to change Mail delivery in Outlook2003 Peter Outlook - Installation 1 July 11th 06 12:50 PM
how to change email address in outlook2003 [email protected] Outlook - Using Forms 0 June 29th 06 05:54 AM
script/macro to send auto reply to sender ah Outlook and VBA 6 June 22nd 06 05:21 PM
script to extract sender ip addresses JTL Outlook and VBA 1 April 25th 06 06:34 AM
how to change sender when i create new mail? StupidDog Outlook - Using Forms 1 March 29th 06 07:02 AM


All times are GMT +1. The time now is 09:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.