• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't send a html based mail using java

 
Azz Romaysa
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What I try to do is that mt webapplication will send a mail when a user is succesvolly registered. The problem is that I can't send a html based mail. When I open the mail I get just the text but not the images ...

This is my code of Mail.java:

Register.java:

Could someone help me to fix this problem?

Abu Romaysa.
[ December 22, 2004: Message edited by: Azz Romaysa ]
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're passing SponsorMail as a parameter to setContent, but nowhere in the SponsorMail String do I see anything related to images! If it's HTML and there's supposed to be an image, then why isn't there an img tag that references an image file? It appears to me that you're not seeing any images because you didn't specify any!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic