[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sending an email from Java code with links in it

Posted on 2013-06-29
4
Medium Priority
?
288 Views
Last Modified: 2013-07-03
Hi,
I have an automated email sending class that uses swing to do the sending.
What text do I send as a string to include links or images in it? Must I simply send an <HTML> page's text for the email to have links, images at the receiving end?
If I send HTML from a Yahoo email, the html text is what is received.
Thanks
0
Comment
Question by:beavoid
  • 3
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 39287965
Yes, the mime type must be set to text/html. This is normally a part of the JavaMail procedure
0
 

Author Comment

by:beavoid
ID: 39288405
Thanks
How is that done? What Object must I act on?

So, once I set it to HTML. My message can be drafted in HTML?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 39288418
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39298083
:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Gift cards are not a new concept - it's been around for a very long time.  Undoubtedly, over the past you have received such a card or purchased one for a friend or relative.  Are you aware that you've been feeding the machine?  If not, read on :)
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 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