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

Sending e-mail from other account



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 25th 10, 04:50 PM posted to microsoft.public.outlook.program_vba
CodeingForLife
external usenet poster
 
Posts: 1
Default Sending e-mail from other account

I'm writing a VBA function that creates a MailItem object, attaches a PDF
file and sends it to an e-mail adres. It works so far.
But now I want to use another account to send the e-mail by setting an
Account object to the SendUsingAccount property. So my default/login account
for Outlook is e.a. and want the ender of teh e-mail te be
. I'm using Outlook 2007 with Exchange 2003 that does not
allow multiple accounts for Outlook. The Application.Session.Accounts
collection shows only 1 account, my default/login account, can't select
another one. Rights in Outlook are set to manualy select a different sender,
but i can't get it done from VBA with MailItem object.
Need some help on this one
Ads
  #2  
Old February 25th 10, 06:05 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Sending e-mail from other account

Unless you set up another account there's no way you can do what you want.

You cannot have more than 1 Exchange account in Outlook 2007 unless one is
an IMAP account but you can have multiple POP3 accounts.

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


"CodeingForLife" wrote in message
...
I'm writing a VBA function that creates a MailItem object, attaches a PDF
file and sends it to an e-mail adres. It works so far.
But now I want to use another account to send the e-mail by setting an
Account object to the SendUsingAccount property. So my default/login
account
for Outlook is e.a. and want the ender of teh e-mail te be
. I'm using Outlook 2007 with Exchange 2003 that does not
allow multiple accounts for Outlook. The Application.Session.Accounts
collection shows only 1 account, my default/login account, can't select
another one. Rights in Outlook are set to manualy select a different
sender,
but i can't get it done from VBA with MailItem object.
Need some help on this one


 




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
Change the account from sending e-mail Michael Outlook and VBA 3 November 24th 09 02:00 PM
Outlook Script Sending Mail using another account ? bbnimda Outlook - Using Forms 4 November 10th 08 06:34 PM
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 12:20 PM
select e-mail account for sending message BBran Outlook - General Queries 12 August 3rd 07 04:42 PM
how to automate specifying the account to use when sending mail? admaybhate Outlook - General Queries 3 September 18th 06 11:49 AM


All times are GMT +1. The time now is 08:05 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.