Send Email using Outlook

R

Raghuram Raichooti

Hi,

I have a requirement to send a mail. I am developing a Windows Application
in .NET v1.1.
Could anyone please let me know the process to send.

As we don’t have the option to use the SMTP server and need to share our MS
Office Outlook for this.

Thanks & Regards,
Raghuram Raichooti
 
K

Ken Slovak - [MVP - Outlook]

You can't share Outlook except for different users on the same computer.

You don't say which version of Outlook you plan to work with, or what
language you plan to use, and I assume from what you did say that you are
using a stand-alone program. If this is anything other than Outlook 2007 you
will see the security prompt when your code calls Send on the mail item,
unless you use one of the methods described at
http://www.outlookcode.com/article.aspx?id=52.

You also don't mention if the email is already in Outlook and just has to be
sent, or if it has to be created from scratch using Outlook object model
code, so it's hard to be very specific as to what to do. In general you can
use the object model to create an email and populate it with subject,
recipients, attachments if required and any body text needed. You can check
out the many code samples at www.outlookcode.com for a primer on using the
Outlook object model.
 
R

Raghuram Raichooti

Hi Ken

My requirement is as follows:
I had written a C# windows based application it keeps searching for new
records in the database. when it finds a new record it pops up with the
Message box. now i want to implement the same using the Email. when a new
record is added it should trigger a email to concern persons (Email ID's can
be hardcoded in the code)

Email content should picked form the database and then send to the email
id's which are predefined.

Problem is, this is just for our team and internal purpose. Our company does
not provide access to SMTP Server or we can create one. so for this i thought
to use our email client as an email sender.

I use Office 2007 as my email client.

Thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

New records in what database, the Outlook store (PST file or Exchange
mailbox)?

You want to handle things when a new email is added to the Inbox? Use either
the Inbox.Items.Add() event for that or the Application.NewMailEx() event
handler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top