|
-
February 17th, 2008, 11:09 AM
#1
How to detect the current email address????
Hi all,
In my application when some works are finished the program should automatically send an email to some persons (their emails are known before). The point is, different user can do this operation on different PCs, so I want to get the standard email account on the PC where my application is started from.
Using the class “MailMessage” like:
MailMessage message = new MailMessage(
"[email protected]",
"[email protected]",
"The Subject.",
"Some useless text to build the body….");
works perfect, but I don’t want to write the “from” email hard coded, I want to get it programmatically (All users are using MS Office Outlook 2007 – if this is important).
Another Question is: is it possible to send at once the email to many people (how should the “to” field looks like?), or I must send it to each one (repeating the step for each user – this works).
For any idea thanks in advance.
Best Regards,
Emil
-
February 19th, 2008, 04:54 AM
#2
Re: How to detect the current email address????
I do not know this field but I saw a discussion about using MSOutlook from your app.
Maybe this link could contain some hints?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|