April 2, 2012

Background Images in HTML Email

Question by user1307242

I just want to add background image and want to write text over it. I have tried everything. Please give me full proof method for this.
Thank You

Answer by Starx

While giving an image on the email, the link should always be relative path.

Here is example email content to show what i mean

$content = '<div style="background:url('http://yourdomain.com/images/yourimage.jpg');">';
                                      //  ^ See the direct path to the image given here
$content .= "your text";
$content .= "</div>";

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!