Jump to content

Archived

This topic is now archived and is closed to further replies.

sob1977

can I create a personalized image greeting in html using php?

Recommended Posts

I received an html email today with a stock photo of a cab door. On the cab door was a personalized greeting with my bosses name. This email was clearly sent using listserv of some sort. Can I write a PHP function that will achieve this?

I look forward to hearing from all!

Sara

Share this post


Link to post
Share on other sites
Well, you can modify an image using PHP's GD functions
[a href=\"http://www.php.net/gd\" target=\"_blank\"]http://www.php.net/gd[/a]

Share this post


Link to post
Share on other sites
[!--quoteo(post=379409:date=Jun 2 2006, 01:32 PM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 2 2006, 01:32 PM) [snapback]379409[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Well, you can modify an image using PHP's GD functions
[a href=\"http://www.php.net/gd\" target=\"_blank\"]http://www.php.net/gd[/a]
[/quote]

OK, so I should be able to send one dynamic e-mail to let's say 300 recipiants and the php code will be able to read the resipiants first name, and then display an image that reads "hello mike," or "hello pat,", etc.?

Share this post


Link to post
Share on other sites
Well, for that you can embed a variable into the link, like:
[a href=\"http://www.example.com/card.php?recipient=mike\" target=\"_blank\"]http://www.example.com/card.php?recipient=mike[/a]

Then use something like:
$text = 'Hello, ' . $_GET['recipient'];

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.