Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send To->Mail Recipient
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01176375
Message ID:
01176808
Views:
9
Rick,
Thanks for your reply. I am probably not explaining myself here well enough. I have used System.Net.Mail in the past and you are right it is very simple. Well it is simple if you have a SMPT server or even know what an SMTP server is (well and it is simple after you have created the mail message form).

What I want to do is to add a simple interface where the user can click a button (in the report viewer) and the button will generate a PDF of the report and open a mail message window using the default mail client (when I say default mail client this means Outlook or Outlook Express 200 or later <s>)

By doing it this way it is easy to explain to the user (it works just like Send To->Mail Recipient in Explorer) and the user does not have to go through additional steps to set up the SMTP server.

Something this simple:
System.Diagnostics.Process.Start("mailto:<email address here>");
The only problem is that I can't attach a file going this route.

Thanks,
Einar

>Not sure what you mean. The MailMessage API is pretty easy to use - it's maybe 10 lines of code to send a message. Doesn't get much easier than that...
>
>Do a Google search on System.Net.Mail and you'll get plenty of simple examples...
>
>+++ Rick ---
>
>>>>I want to add a feature similar (very similar) to the Windows feature Send To->Mail Recipient from the explorer context menu to my app. Has anyone seen example of this?
>>>
>>>Doesn't System.Net.Mail do what you want?
>>>
>>>http://msdn2.microsoft.com/en-us/library/system.net.mail.aspx
>>>
>>>+++ Rick ---
>>
>>It does more than what I want :) I want to make a simple interface that piggy-backs on sendmail.dll.
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform