E
Emil
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(
"(e-mail address removed)",
"(e-mail address removed)",
"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
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(
"(e-mail address removed)",
"(e-mail address removed)",
"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