0

I have two HTML templates. And I buffer them into php email using ob_start() and ob_get_clean(). However, one can be sent without any problem while another has no images in the email body. Can anyone find what the problems are? Here are the two templates:

I have tried to use absolute path for images, and tried to use img tag instead of div with background image, but they don't work.

doubleDown
  • 8,048
  • 1
  • 32
  • 48
Andrew Liu
  • 2,478
  • 5
  • 22
  • 29
  • Actually, I found the problem. The template needs to be one single file, with all styles. Because the email can not go back to remote server to achieve css and other once it's send. – Andrew Liu Jul 09 '13 at 06:56

3 Answers3

0

You can try uploading images to cloud and use them from there....I am not sure...but may be this helps..!!! Also, remember putting ob_flush() in such cases.

0

You are using CSS in bad.txt file which path you have mentioned is given below.

link href="quote.css" rel="stylesheet" type="text/css"

so please mentioned your path with http://www.emoceanstudios.com.au/CSS/quote.css it is just a example but please provide full path to get Template as you want.

link href="http://www.emoceanstudios.com.au/CSS/quote.css" rel="stylesheet" type="text/css"

0

How about inline image? you can convert the img into data first. http://www.websiteoptimization.com/speed/tweak/inline-images/

Zhenguo Yang
  • 3,800
  • 5
  • 18
  • 22