Sending e-mail from other account

Status
Not open for further replies.
C

CodeingForLife

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. jones@logic.eu and want the ender of teh e-mail te be

noreply@logic.eu. 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
 
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.

"CodeingForLife" <CodeingForLife> wrote in message

news:02680C93-3419-4979-B293-4F68B9FD545D@microsoft.com...
> 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. jones@logic.eu and want the ender of teh e-mail te be
> noreply@logic.eu. 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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Change the account from sending e-mail Outlook VBA and Custom Forms 3
H Custom autoforwarding, sending mail through outlook office 365 Using Outlook 1
C How to avoid sending mail to the wrong contact person Using Outlook 1
C Change From address while sending a new mail Outlook VBA and Custom Forms 5
T What code to use to move the custom field values to message body when sending e-mail ? Outlook VBA and Custom Forms 8
A Shortcut for sending complete mail Using Outlook 1
R How to Block from sending mail to public domain. Using Outlook 8
S Checking attachment is passward protected or not before sending the mail Using Outlook 1
A Application_ItemSend not accessed when sending email outside outlook (i.e. word or send to mail from Using Outlook 7
R POP3 Mail repeating while sending to group of recipient Using Outlook 1
M IMAP & Exchange accounts sending mail Using Outlook 1
J Sending Mail From A Different Address Using Outlook 2011 for Mac Using Outlook 0
N Sending encrypted signed mail using outlook 2010 Using Outlook 1
A How to send Personalized attachment while sending mass mail Using Outlook 1
E Outlook invitation request mail sending twice problem Using Outlook 1
W Sending video attachment with e-mail Using Outlook 1
D Sending mass e-mail (picture only) Using Outlook 1
B Re: Outlook Forms E-mail Creation Sending Blank Fields Outlook VBA and Custom Forms 1
H VBA about sending e-mail automatickly Outlook VBA and Custom Forms 1
D Check whether mail item is proper for sending or not Outlook VBA and Custom Forms 5
H using macro for sending multiple mail in outlook Outlook VBA and Custom Forms 1
N Automating Outlook 2007 problem with sending mail Outlook VBA and Custom Forms 1
T need help w/ sending an e-mail -- outlook 2007 addin Outlook VBA and Custom Forms 2
Q sending mail when Otlook in 'always prompt for user name and passw Outlook VBA and Custom Forms 4
Fozzie Bear Calendar Events created on iPhone have suddenly start sending invitations to attendees Using Outlook 2
D Prompt to prefix subject line whenever sending an email Outlook VBA and Custom Forms 3
P default font when sending email from browser Using Outlook 1
M Messages Intermittently Dont Arrive In Sent Items After Sending Successfully Using Outlook 4
O Outlook on Android: after sharing / sending a news article, draft remains open. Why? Using Outlook 1
P Sending email from outlook IMAP to GMAIL where embedded images are added as attachment Using Outlook 1
V Form data not sending for some users Outlook VBA and Custom Forms 2
L isn't there an OL add-on that flags addressee before sending Using Outlook 3
R Microsoft Outlook 2016 - Gmail not sending, asks for password for SMTP, tried different ports Using Outlook 23
A Flag Message for Follow Up after sending Outlook VBA and Custom Forms 1
D Sending email from Office 365 alias in Outlook Using Outlook 3
E Change sending account depending on Subjectline Outlook VBA and Custom Forms 0
L unblocking attachments before sending Office 365 Advanced Protection Using Outlook 0
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
R Warn before sending message Outlook VBA and Custom Forms 4
HarvMan Hotmail - Sending email is undeliverable Using Outlook 4
A Sending contact vcards sends older version instead of updated version Using Outlook 4
M McAllister Outlook stops Sending/Receiving/Synching after disconnecting remote desktop session Using Outlook 2
D Adding Enterprise Exchange Email Account to Outlook Prevents Sending via Outlook.com Account Using Outlook.com accounts in Outlook 10
B When sending an email, I am showing 2 of my address's Using Outlook 1
M Auto expand Distribution List Before Sending Email Outlook VBA and Custom Forms 1
A Check for words in subject header before sending email Outlook VBA and Custom Forms 4
O Run macro automatically at sending an email Using Outlook 11
W Sending To Wrong Account Using Outlook 15
H Select Specific Account When Sending Email, Based on Current Folder Outlook VBA and Custom Forms 1
M Help sending email but removing signature via VBA Outlook VBA and Custom Forms 5

Similar threads

Back
Top