CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    66

    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

  2. #2
    Join Date
    Jan 2003
    Location
    Sweden
    Posts
    115

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





Click Here to Expand Forum to Full Width

Featured