0

I want to add some text on a picture, and then send it as the content ( not as an attachment ) via email using JavaMail API ( Sending Email in Android using JavaMail API without using the default/built-in app ).

I don't know how to add it in the body of the email, and i'm thinking that, because i'm practically generating a new image, it must be in a specific format in order to be added to the email.

Community
  • 1
  • 1
Cumatru
  • 695
  • 2
  • 12
  • 34

2 Answers2

1

You really have two questions here.

Question 1) how do I generate new images with some text. (in a format like jpg or png)

Question 2) how do I email an image as a message (but not just an attachment). You basically send an html email with an image attachment but use a cid source for an img tag. Plenty of examples like: http://javaeenotes.blogspot.com/2010/04/sending-html-email-with-images-with.html

Chase
  • 3,123
  • 1
  • 30
  • 35
  • Exactly. How do I generate new images with some text. (in a format like jpg or png) ? I have the image, and i have the text. – Cumatru Jul 08 '12 at 09:26
0

Yes, use the image APIs to generate a new image that combines the old image and the text you want to add, then send that new image in email in the normal way.

Bill Shannon
  • 29,579
  • 6
  • 38
  • 40