Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Best way to send email via outlook 2k3

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy - 13 Nov 2006 20:24 GMT
Hi,

I have a C# application.  In part of it, users can define distribution
lists, which is basically an email group.

To actually send the email, I've been using Process.Start with a
mailto: link.  This works fine for single email addresses, but when
trying the same method for large lists, it doesn't work.

I'm not sure that is the best way to go anyway..

All I want to do is get outlook to open a new email window and set the
To or possibly BCC addresses automatically.  The user can enter the
rest.

Any suggestions?

Thanks
Andy
Spam Catcher - 13 Nov 2006 20:54 GMT
"Andy" <andyj@med-associates.com> wrote in news:1163449468.420595.91320
@f16g2000cwb.googlegroups.com:

> To actually send the email, I've been using Process.Start with a
> mailto: link.  This works fine for single email addresses, but when
[quoted text clipped - 5 lines]
> To or possibly BCC addresses automatically.  The user can enter the
> rest.

Outlook has a COM object which you can program against. Also take a look at
Microsoft's Office Interops (not sure if Outlook is a part of those
interops).

More info on the com object can be found here:

http://www.outlookcode.com/d/outtech.htm

If you're going to send large amount of emails - you might be better off
using System.net.mail classes or a 3rd party e-mail software.
Andy - 13 Nov 2006 21:25 GMT
> Outlook has a COM object which you can program against. Also take a look at
> Microsoft's Office Interops (not sure if Outlook is a part of those
[quoted text clipped - 6 lines]
> If you're going to send large amount of emails - you might be better off
> using System.net.mail classes or a 3rd party e-mail software.

Thanks for the tip.  I did program against the COM objects, but they
seemed to be a way to programatically send email... I didn't find any
way to cause outlook to open a New email window.

I don't want to use System.Net.Mail because I don't want to re-invent
the wheel; outlook already has a decent email composition system, and I
don't think my time would be well spent copying that functionality.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.