wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Send email to end users with Voting option using Java Mail API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Send email to end users with Voting option using Java Mail API" Watch "Send email to end users with Voting option using Java Mail API" New topic
Author

Send email to end users with Voting option using Java Mail API

Aditi Tervankar
Greenhorn

Joined: Apr 10, 2013
Posts: 8
Hi,
I am using Java Mail API to send emails to end users through java class file. I have requirement to add voting option with Approve and Reject option, so that end user will get these options in mail. Can anyone help how to get these options in mail using Java.
I heard about Java TNEF package to solve this but not sure how to use it. Pleease advice.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
OK, so you send a user an email - which is after all just a chunk of text. You want:

so that end user will get these options in mail.


How do you expect to get the user choices back?

I see the following methods in use these days:

1. URL links with the choice parameters set. ie "http://somehost/survey/approve" or "http://somehost/survey/noway"

2. Embedded HTML form. (requires that the user accept HTML fomated email)

3. Instructions to do an email reply with "approve" or "noway" in the first line.

1 & 2 will of course require a servlet to extract the vote, 3 will require email processing.

Bill
Aditi Tervankar
Greenhorn

Joined: Apr 10, 2013
Posts: 8
Thanks for your response, but I ddint get this.
I want to add voting option in mail. As shown below. Like we have when in Microsoft Outlook Options->Use Voting Button



Thanks.


[Thumbnail for Untitled.png]

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
Standard email has no such functionality - that's Outlook and Exchange-specific.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Send email to end users with Voting option using Java Mail API
 
Similar Threads
How to make Email template
Sending an Email with JavaMail
problem on sending mail to client
Mailing query
Mail API - "Do not Forward" permission setting