Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Asp.net mvc4

Posted on 2014-11-17
3
Medium Priority
?
480 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Richard Lee earned 2000 total points
ID: 40449424
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
ID: 40450168
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
ID: 40692056
solved
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

688 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