We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

How To Automate Outlook Mail in a Web Application utilizing .net

Robb Hill
Robb Hill asked
on
Medium Priority
387 Views
Last Modified: 2012-08-14
PLEASE HELP!!!  SUPER STUMPED  

i have a government client that I develop a web application for.  They have a requirement that needs the web application to utilize the clients Microsoft outlook to send mail with attachments.  Do to the nature of this government client we have to use there outlook rather than other mail options because of the DOD's methods for encryption of attachments on email.  

We need the application to basically just open up outlook from our web application - populate the attachments and other items - and then send the mail - so that the PKI within the clients outlook is utilized.  We CANNOT install Outlook on the application server since this is a DOD server.  

Is this possible to do.  Please remember that this is a web application - Outlook 2007 - we are coding in C# but i will accept VB solutions as I can convert them myself.


Thank you in advance!!!!
Comment
Watch Question

Your requirement is not clear.  Outlook is the mail client, You want the replacement web app for that client, Right?

i.e. You want to read mails from their Mail server, Is it?
Robb HillSenior .Net Full Stack Developer
CERTIFIED EXPERT

Author

Commented:
No.


When they are using my web application......lets say they press a button that sais ...."email"  ....I need my c# code to open the default mail client - which in this case will be Outlook 2007.  Then populate the attachments, send to, cc, comments ....body...etc .....basically automate the process they would normally do manually. And then send the mail.

I have seen code out on the internet that does this but it all seems to require Outlook to be installed on the server where the web application lives...and we cannot do this since we do not have access to the DOD servers or there mail client.


We have to use Outlook to do this though do to the encrypition the DOD uses when sending mail.

Does that sound more clear?
You want to send the automate mail, Is it?

Where did u have the attachment files, From ID and TO id?
Robb HillSenior .Net Full Stack Developer
CERTIFIED EXPERT

Author

Commented:
Just assume there are some files in a folder on the local drive.  The program needs to utilize outlook to send mail using outlook and be able to attach files.

How to you code this with .net....for a web form?
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Robb HillSenior .Net Full Stack Developer
CERTIFIED EXPERT

Author

Commented:
No your not answering my question.


1)  I cannot install Outlook on the Server

2)  I have to use Outlook on the client - because of the Certificate and Encryption that is in Outlook for attachments.

3)  I need to achieve the automation of creating and sending the email using asp.net and vb or c#.net.

4)  This is a web application.


I am very familiar with the system.net.mail library...that method does not use the PKI Cert / Encryption that Outlook has for attachments.

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Robb HillSenior .Net Full Stack Developer
CERTIFIED EXPERT

Author

Commented:
I couldnt go with any of these solutions....


We couldnt use mapi.....we couldnt put outlook on server...we couldnt use a javascript and activex solution....

Since we were out of the domain we basically couldnt do anything that allowed us to utilize their outlook client which basicaly allows their security paradigm to persist.


Oh well.....I am still giving points to you all as all of your solutions are valuable informatin on most Outlook mail and .net related scenarios.  ...just not mine:)
Robb HillSenior .Net Full Stack Developer
CERTIFIED EXPERT

Author

Commented:
This solution does not work for my initial question...only keeping it for the effort and it can be helpfull for most other .net email questions.  The mapi solution was not explained very well.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.