• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

sending email with default email editor

Hi,
I want to send email with attachment with my default email editor. What I want to set programatically is just the subject line and files to be attached. Then the program should open 'New Mail' window of my default email editor (Outlook for my case) with Subject line and attached files preset. Also, it would be nice if I can preset some body text.

I tried SMTP mail, but it sends email without allowing me use my default email editor. Is there any other way?
0
chhakuli
Asked:
chhakuli
  • 4
  • 2
1 Solution
 
mjmarlowCommented:
Here is an article with examples on how to automate Outlook using c# - including sending an email.  Hope this helps!
http://www.dotnetjunkies.com/Tutorial/2E1EEEAF-C78A-4A38-A830-AC204B12DF83.dcik
0
 
chhakuliAuthor Commented:
I don't want to automate Outlook. I am looking for code which uses default email editor, whichever it is (Outlook, lotus notes etc).
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
chhakuliAuthor Commented:
dear e1v, mailto, though opens default email editor, is not suitable as it does not support file attachment.
0
 
e1vCommented:
You can attach one file using mailto with attachments="myfile.name"

But it seems like multiple attachments is not possible
0
 
chhakuliAuthor Commented:
Dear e1v,
have you tested this? I am not able to attach even a single file. I am using C#. It just ignores the attachments="myfile.name". Do you have a working code snippet?
0
 
chhakuliAuthor Commented:
Thanks e1v.
It works. While specifying the file name, I have to use some extra quotes to make it work.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now