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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Script Sending Mail using another account ?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 10th 08, 11:07 AM posted to microsoft.public.outlook.program_forms
bbnimda
external usenet poster
 
Posts: 94
Default Outlook Script Sending Mail using another account ?

Hi all,

I use personal Task Item, I added à Button to this task, this button create
and send an email, but I uses the identity of the curent user, want to send
the mail as the Task Owner (email saved in a field) or distribution list
mail )

is there a way to do that ?

tks


  #2  
Old November 10th 08, 03:54 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Script Sending Mail using another account ?

Outlook version?

If this is Outlook 2007 you can use the new MailItem.SendUsingAccount
property to set the sending account, assuming you have permissions to send
as that email address and it's one of the Outlook profile's accounts.
Otherwise you'd have to use the SentOnBehalfName property.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"bbnimda" wrote in message
...
Hi all,

I use personal Task Item, I added à Button to this task, this button
create and send an email, but I uses the identity of the curent user, want
to send the mail as the Task Owner (email saved in a field) or
distribution list mail )

is there a way to do that ?

tks


  #3  
Old November 10th 08, 04:27 PM posted to microsoft.public.outlook.program_forms
bbnimda
external usenet poster
 
Posts: 94
Default Outlook Script Sending Mail using another account ?

Hello Ken,

Unfortunately I'm under Outlook 2003 (Server SBS2003)

tks

"Ken Slovak - [MVP - Outlook]" a écrit dans le message
de news: ...
Outlook version?

If this is Outlook 2007 you can use the new MailItem.SendUsingAccount
property to set the sending account, assuming you have permissions to send
as that email address and it's one of the Outlook profile's accounts.
Otherwise you'd have to use the SentOnBehalfName property.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"bbnimda" wrote in message
...
Hi all,

I use personal Task Item, I added à Button to this task, this button
create and send an email, but I uses the identity of the curent user,
want to send the mail as the Task Owner (email saved in a field) or
distribution list mail )

is there a way to do that ?

tks




  #4  
Old November 10th 08, 05:09 PM posted to microsoft.public.outlook.program_forms
bbnimda
external usenet poster
 
Posts: 94
Default Outlook Script Sending Mail using another account ?

Tks a lot, I work perfectly

but to prevent possible manipulation, Is it possible to hide the "from"
field in the mail.... because when my click button create the mail I don't
send the mail direcly I use mailItem.Display to alloy the current user to
add some text to the mail " a small note Note " to prevent user from adding
there anotation to the task

is there a way ??

another question
Or if this action is not possible, can we make the from field read only

tks for your help Ken


"Ken Slovak - [MVP - Outlook]" a écrit dans le message
de news: ...
Outlook version?

If this is Outlook 2007 you can use the new MailItem.SendUsingAccount
property to set the sending account, assuming you have permissions to send
as that email address and it's one of the Outlook profile's accounts.
Otherwise you'd have to use the SentOnBehalfName property.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"bbnimda" wrote in message
...
Hi all,

I use personal Task Item, I added à Button to this task, this button
create and send an email, but I uses the identity of the curent user,
want to send the mail as the Task Owner (email saved in a field) or
distribution list mail )

is there a way to do that ?

tks




  #5  
Old November 10th 08, 07:34 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Script Sending Mail using another account ?

I suppose you could get the state of the relevant ribbon control using the
CommandBars.GetPressedMso() method from the Office library to see about
whether or not the From field is showing and then use ExecuteMso() to toggle
it if it is. There's no way to make that field read-only.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"bbnimda" wrote in message
...
Tks a lot, I work perfectly

but to prevent possible manipulation, Is it possible to hide the "from"
field in the mail.... because when my click button create the mail I
don't send the mail direcly I use mailItem.Display to alloy the current
user to add some text to the mail " a small note Note " to prevent user
from adding there anotation to the task

is there a way ??

another question
Or if this action is not possible, can we make the from field read only

tks for your help Ken


 




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
Exchange 2003: The e-mail account does not exist at the organization" when sending to ONE INTERNAL user KingCronos Outlook - General Queries 3 October 5th 07 01:20 PM
Is there a way to remove an POP3 email account with a script? David Roberts Outlook - Installation 0 August 11th 07 01:12 AM
select e-mail account for sending message BBran Outlook - General Queries 12 August 3rd 07 05:42 PM
Create IMAP account in Outlook using Logon Script Karnifexx Outlook - General Queries 1 January 24th 07 02:18 PM
how to automate specifying the account to use when sending mail? admaybhate Outlook - General Queries 3 September 18th 06 12:49 PM


All times are GMT +1. The time now is 11:42 AM.


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.