my dog learned polymorphism*
The moose likes JSP and the fly likes E-mailing functionality in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "E-mailing functionality in Java" Watch "E-mailing functionality in Java" New topic
Author

E-mailing functionality in Java

Varsha Goswami
Greenhorn

Joined: Jul 20, 2009
Posts: 16
In my java application I have many screens with data in tables (as reports) and graphs etc. There is an e-mail button. On click of this e-mail button i want the facility to e-mail that screen or that report. If anybody have an idea in this please help me out!!


Varsha
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41613
    
  55
Is this question about how to create something that can be emailed (like a PDF of that report), or about how to send emails using Java?


Ping & DNS - my free Android networking tools app
Varsha Goswami
Greenhorn

Joined: Jul 20, 2009
Posts: 16
I want that on click of an e-mail icon in jsp.... my outlook express compose mail option should get opened... and that mail should contain data which we can see in the jsp page.... For ex: if my jsp page contains a table having data then on click of e-mail icon that table should be displayed as it is in outlook mailing screen....i dont want that table in jsp page to be attached in the mail as a screenshot....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41613
    
  55
Please refrain from using the color and size font tags for the entire post; that's rather annoying. Those are meant to highlight small sections of text.

So you want to create an HTML mail from the web page, and you don't actually want to send it, but rather it should be somehow transferred into Outlook?
Varsha Goswami
Greenhorn

Joined: Jul 20, 2009
Posts: 16
Oh Sorry ... will consider your point from now onwards...

Actually I want to compose mail using outlook only...and then user can send it to any id.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1473
    
    6

I guess its someway related to html href attribute, and if I am not wrong following should solve your purpose



Swastik
Varsha Goswami
Greenhorn

Joined: Jul 20, 2009
Posts: 16
Yes i tried that... but it is not working as we want....a mail opens up having id that we have mentioned in the link.... but my report is not viewable in the message body of the outlook!!!
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1473
    
    6

you can mention the subject and body too

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41613
    
  55
you can mention the subject and body too

But there's no way to make a mailto: link transfer elements of a web page into an email client, so this is a dead end.
Varsha Goswami
Greenhorn

Joined: Jul 20, 2009
Posts: 16
Yes thats ok... but how to get the message body properly is my question? I want my reports to be displayed as it is in the message body!!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: E-mailing functionality in Java