473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Outlook emails

Nak
Hi there,

I'm currently using Outlook to send email in a VB.NET app but I would
like more control over which email address the email is sent from. Is it
possible to enumerate the available addresses for the current user and
select one that is more appropriate? Thanks loads in advance. BTW I'm
using the Microsoft Office 11.0 Object Library. Thanks again!

Nick.
Nov 21 '05 #1
6 1307
Hi Nick,

Do you mean you want to set the From field of the mail message?
I think it is hard to get such a list, because if we wants to send mail on
behalf of another user's account, that user must give me the
send-on-behalf-of privilege, if that user did not give me the privilege, I
can not send mail on behalf of that user's account.

If I have any misunderstanding, please feel to let me know.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
Nak
Hi Peter,

I think we are referring to 2 different things. My Outlook profile has
3 email accounts, and at current I can only seem to get it to send email
from the default account, I can change the default account to the required
one via Outlook but I would like my application to have the choice of which
account to send it from.

The other alternative I have is to make another profile and set the
desired email account as the only accout in the profile, then use that one
to send my emails. But I only wanted to use that as a last resort as it
requires far too much interaction outside my application. Any ideas?
Thanks loads in advance again.

Nick.

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:8v**************@cpmsftngxa10.phx.gbl...
Hi Nick,

Do you mean you want to set the From field of the mail message?
I think it is hard to get such a list, because if we wants to send mail on
behalf of another user's account, that user must give me the
send-on-behalf-of privilege, if that user did not give me the privilege, I
can not send mail on behalf of that user's account.

If I have any misunderstanding, please feel to let me know.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #3
Nick,
Does the "Set the sending account" sample at

http://www.outlookcode.com/d/tips/co...un.htm#samples

Do what you need?

Post if you need help changing it to VB.NET.

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:Ou****************@TK2MSFTNGP11.phx.gbl...
Hi there,

I'm currently using Outlook to send email in a VB.NET app but I would
like more control over which email address the email is sent from. Is it
possible to enumerate the available addresses for the current user and
select one that is more appropriate? Thanks loads in advance. BTW I'm
using the Microsoft Office 11.0 Object Library. Thanks again!

Nick.

Nov 21 '05 #4
Nak
Hi Jay,

This code appears to just change a drop down menu, which is great, with
the exception that Outlook is not always visible when I send the email, and
I never actually see the email appear on the screen. I get a message box
telling me that an application is attempting to send email through outlook
and if I should allow it or not, then it just flies out into the ether and
jumps into my sent items.

But anyways, I shall delve into the site you have posted because it
looks quite formative. Thanks loads for your help! :-)

Nick.

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Nick,
Does the "Set the sending account" sample at

http://www.outlookcode.com/d/tips/co...un.htm#samples

Do what you need?

Post if you need help changing it to VB.NET.

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:Ou****************@TK2MSFTNGP11.phx.gbl...
Hi there,

I'm currently using Outlook to send email in a VB.NET app but I would
like more control over which email address the email is sent from. Is it
possible to enumerate the available addresses for the current user and
select one that is more appropriate? Thanks loads in advance. BTW I'm
using the Microsoft Office 11.0 Object Library. Thanks again!

Nick.


Nov 21 '05 #5
Hi Nick,

I am sorry for misunderstanding, as for the security dialog you may take a
look at the link below.
290499.KB.EN-US OL2002: Administrator Information About E-Mail Security
Features
http://support.microsoft.com/?id=290499

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #6
Nak
Hi Peter,

Hey you have nothing to appologise for, sometimes my wording can be a
little off target! Thanks loads for the link! I have read elsewhere that
this was impossible to achieve, Im really glad I can get rid of that damn
box now! :-D

Nick.

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:Yh**************@cpmsftngxa10.phx.gbl...
Hi Nick,

I am sorry for misunderstanding, as for the security dialog you may take a
look at the link below.
290499.KB.EN-US OL2002: Administrator Information About E-Mail Security
Features
http://support.microsoft.com/?id=290499

If you still have any concern on this issue, please feel free to post
here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ronny Sigo | last post by:
Hello all, I am trying to make a program which sends emails without intervenience of the user. It works fine except the Outlook always displays two warnings with each email it is going t send :...
2
by: Bob | last post by:
Hi Everybody A tough one!!! Is there any way that incoming eMails (MailItems) into Ms Outlook can be used to automatically create records in a ms Access table or sub table. Smiley Bob
3
by: Curious George the Monkey | last post by:
Hi, I have about 20,000 emails of which about 1% of them have attached word, excel, jpeg, pdf, powerpoint files. The emails are located in about 1000 folders. The hierachy of folders is...
3
by: Strasser | last post by:
In Access2000 mass emailing worked perfectly (very powerful tool!). Doesn't work when using XP version of both Access and Outlook, even though I checked the box to ensure that I was sending the...
2
by: Lars Netzel | last post by:
I'm working with an Outlook object and I, thru VB code, execute menu option "Purge All Items" (which deletes all "marked for deletion" emails from the MAPI folder on the server and in outlook). ...
1
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files...
7
by: Dean Spencer | last post by:
Can anyone help? I am importing Emails from Outlook using the following code: Public Function ScanInbox(SubjectLine As String) Dim TempRst As Recordset Dim OlApp As Outlook.Application Dim...
16
by: Kosmos | last post by:
Good afternoon everyone, just wondering if anyone knew if it's possible to send meetings or appointments through email when you run VBA or SQL code in Access 2003? The following is the code I've been...
6
by: AMP | last post by:
I am trying to write a windows sevice that will send emails. The data is stored in a database and the service scans the database for new entries It work well as a stardard windows app, but when...
6
by: =?Utf-8?B?UmljaA==?= | last post by:
How to suppress the Outlook 2003 security prompts from VB2005. When I tried to look at the body of a message or any other part of an outlook mailItem -- I get these annoying security prompts. I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.