473,836 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best way to send email via outlook 2k3

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

Nov 13 '06 #1
2 5872
"Andy" <an***@med-associates.comw rote in news:1163449468 .420595.91320
@f16g2000cwb.go oglegroups.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
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.
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.
Nov 13 '06 #2
Spam Catcher wrote:
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.
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.

Nov 13 '06 #3

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

Similar topics

11
12096
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going to do away with our rogue SMTP server access and force everything through Exchange
0
9101
by: Akira | last post by:
Could someone tell me how to send outlook appointment email from asp page? I would like appointment email just like one outlook can send out. I tried to look for an answer for this, but it seems exchange server has to be installed on web server if I want to use the following code?? Is there way to send outlook appointment email without using outlook.Application object? If not, how can I make the code below work since we have separate...
1
5351
by: Jay McGrath | last post by:
Help - trying to send a simple text email with with as little user intervention. I am trying to create a button in my Access application that will automatically send a simple text email. It works except that I have two warning nuisances: 1) Program is trying to access email Addresses you have stored in Outlook. Allow access for ... 2) A program is trying to automatically send email on your behalf ... Heck, I am only trying to a send...
3
2941
by: Max | last post by:
When you send an email programatically throgh Microsoft Outlook it goes into the Outbox and stays there. I have an application that opens the email window and allows the user to type a message and then hit the Send button. After that the window closes but the message isn't sent like in Outlook Express it goes into the Outbox folder. Is there a way to force Outlook to send the email in the Outbox folder? Cheers, Max
1
47528
by: Michele | last post by:
Hi, I need to send the same Email to different people. I'm using Outlook XP and VB.Net. I tryed with the following code: Dim oOutL As Outlook.Application Dim oMail As Outlook._MailItem oOutL = CreateObject("outlook.application") For i = 0 To Email.Length - 1
8
17066
by: John Brock | last post by:
I am currently using a VB.NET program to send out e-mails with plain text bodies (plus one attachment). The emails are being received as Rich Text messages (probably just my personal Outlook default, because I didn't do this in the program), but there is no actual formatting (italics, color, etc.) in the message body, which is passed to from VB.NET to Outlook as an unformatted text String. I want to start applying formatting to the...
13
2514
by: BK | last post by:
Our .Net team has just inherited a junior programmer that we need to get up to speed as quickly as possible. Unfortunately, his skill set is largely Access with some VB6 and ASP classic experience. We employ some parts of XP such as pair programming, and this should help. Other than books, does anyone have any suggestions? His skill set is pretty antiquated and we need to get him up to speed as quickly as possible so any suggestions...
9
77449
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
1
6578
by: sxwend | last post by:
I am trying to use the following post results (http://www.thescripts.com/forum/thread189759.html) and add another requirement. I need to send the results to just the email addresses that the query specifies for each record... Essentially this is a make shift Ordering Tool and I want to be able to notify the receiver of the order and its specifics. q_Order_Detail_4email consists of ,,, and Example: Hello@mail.com,956,Modem,1000,xyz123...
0
10838
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10544
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10585
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9369
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7788
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6977
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5645
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5821
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4447
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.