• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Send mail to MS Outlook with hyperlink body using java Mail API  RSS feed

yousuf alam
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am sending mail to Microsoft outlook using java mail API with hyperlink body and text message body.
I am getting text message in body.but i couldnot able to get hyperlink message.i got hyperlink message in attachement.i attached the screenshot for the reference.
But i want to display the hyperlink in body itself.this is my source code.Kinldy help me on this..this is very urgent

protected Message mesg;
mesg = new MimeMessage(session);
mesg.setFrom(new InternetAddress("test@test.com"));
InternetAddress toAddress = new InternetAddress(message_recip);
mesg.addRecipient(Message.RecipientType.TO, toAddress);
InternetAddress ccAddress = new InternetAddress(message_cc);
mesg.addRecipient(Message.RecipientType.CC, ccAddress);

Multipart mp = new MimeMultipart();
BodyPart textPart = new MimeBodyPart();
BodyPart pixPart = new MimeBodyPart();
pixPart.setContent(html_data, "text/html");


[Thumbnail for mail.png]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!