Image in the Email with dynamic content issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
suyogs
Forum Newbie
Posts: 1
Joined: Mon Mar 12, 2012 12:44 am

Image in the Email with dynamic content issue

Post by suyogs »

I am working on an application (PHP, Oracle) where an email is to be sent with an image (.jpg) embedded in its body. But before the image is embedded in the email body, some text is to be added on it at a specific position. The following seems to be the order in which actions are to be performed:


a.) An image is fetched from a specific location on server.
b.) Some text is written onto the email at some specific location.
c.) The edited image is now embedded in the email body.

Kindly help me out in this.
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: Image in the Email with dynamic content issue

Post by mecha_godzilla »

Hi,

You'll need to use a graphics library if you want your script to edit the image so that text is overlaying it. Run phpinfo() to see what modules you have installed - GD is normally available but ImageMagick might be there as well.

Alternatively, you could set the image as a background element to a table cell or layer and then just insert the text in that element.

M_G
Post Reply