Solved

Asp.net mvc4

Posted on 2014-11-17
3
347 Views
Last Modified: 2015-03-27
Hi guys ,

I have some report button in my application "asp.net mvc4" and I would like to open outlook send message when users click on the button. is it possible to do so?  or there is other way to do it.

Please , advice.



Thansk ,
0
Comment
Question by:Moti Mashiah
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Richard Lee earned 500 total points
Comment Utility
To open outlook from  web application it would have to be set at the user's default email application and a link such as the following would have to be in your application.

<a href="mailto:abc@abc.com?Subject=ABC&Body=Body" title="title" >Email</a>

Open in new window


Since I don't believe that is what you are asking for, but more of an automated approach I would suggest that it would be better to send the email from the web application. Provide the fields for the user to enter the message and subject and when the Send button is clicked then send the email using some SMTP service from your application.

I wrote a component Fluent.NET Mail that allows the easy sending of email and constructs personalised emails.

new Mail()
    .Html(new MessageTemplate()
        .FromText("This is my email with {content} text")
        .DataFrom(new { content = "html" })
        .BetweenBraces())
    .To(new MailBox(emailAddress))
    .From(new MailBox(emailAddress))
    .Subject("Fluent API .NET 2")
    .Timeout(5000)
    .SmtpServer("[your smtp server]")
    .Send();

Open in new window


http://www.avantprime.com/products/docs/fluent-net-mail/

I hope this helps.
0
 
LVL 1

Author Comment

by:Moti Mashiah
Comment Utility
Thank you for your answer.

please , would you be able to send me some instruction how to implement the HTML page mvc for that and the controller side what you did already.

I'm really new to this and i need some step by step instruction.

please see attachment of my application to get any idea;

when you click on report button it should popup window (i assume with jquery ) and this window should give you the page email view to send email.

thanks email.JPG
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
Comment Utility
solved
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now