Solved

Sending an email from Java code with links in it

Posted on 2013-06-29
4
272 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 500 total points
ID: 39288418
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39298083
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
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.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

867 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

24 Experts available now in Live!

Get 1:1 Help Now