Link to home
Start Free TrialLog in
Avatar of James Hancock
James HancockFlag for United States of America

asked on

Sending an email from Java code with links in it

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Yes, the mime type must be set to text/html. This is normally a part of the JavaMail procedure
Avatar of James Hancock

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)