Solved

Sending an email from Java code with links in it

Posted on 2013-06-29
4
270 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

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

Suggested Solutions

Title # Comments Views Activity
Systems talking to each other 5 110
Issue to mail 11 41
backtracking recursion  code 19 41
Java Timer (static) 9 18
Whether you believe the “gig economy,” as it has been dubbed, is the next big economic paradigm shift (https://www.theguardian.com/commentisfree/2015/jul/26/will-we-get-by-gig-economy) or an overstated trend (http://www.wsj.com/articles/proof-of-a-g…
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

20 Experts available now in Live!

Get 1:1 Help Now