Solved

Need something similar to mailto:

Posted on 2006-07-14
1
268 Views
Last Modified: 2012-06-21
Hi there

I need to be able to email from my webapp, but there is a catch. I need greater functioanlity than the mailto: command, but still do what it does.

I have tried some of the jsp email apps, they work fine, but what my client has requested is that the still send the messages from their outlook so as to keep a record of their send items in their personal folders.

So what i need to be able to do is send an email from my applcation with the email address, subject automatically entered into my outlook (just like mailto does) along with the body of the email (which could be quite long, therefore mailto wouldnt suffice) Also i would also like to be able to add attachements automatically if this is possible.

Any ideas??
0
Comment
Question by:AndriesKeun
1 Comment
 
LVL 29

Accepted Solution

by:
bloodredsun earned 125 total points
Comment Utility
The basic answer is you can't. The mailto command requires the presence of a client mail program which you cannot guarantee. If the user doesn't have Outlook or has set it up so that it does not respond to mailto, then you are out of luck. And there are various shortfalls of the command as you have noticed.

The advanced answer is you do it yourself. Using a basic email servlet or something similar to this http://javaalmanac.com/egs/javax.mail/SendApp.html you send an email to the destination but also to the user who is sending the email. Therefore they have arecord of the email. This also allows complete control of the subject, email body and any email attachments.

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

15 Experts available now in Live!

Get 1:1 Help Now