help with inline images/mail with cron - php?

Posted by David Verhulst on Stack Overflow See other posts from Stack Overflow or by David Verhulst
Published on 2010-04-28T07:57:59Z Indexed on 2010/04/28 14:33 UTC
Read the original article Hit count: 367

Filed under:
|
|

I've got mailings that need to be sended using cron. When I load the script manualy all works fine. With cron i get broken images.

to change the src of my img i used:

$body    = eregi_replace("managersrc_logo","images/managers/acertainlogo.jpg",$body);

Because i thaught that it is importent to use absolute paths i also tried:

$body    = eregi_replace("managersrc_logo","http://www.site.com/images/managers/acertainlogo.jpg",$body);

In that case i even do not see the images when i run the cronscript manualy. Nor the automated cron will display me the images.

When i check the source of the mail that is received i always see "cid:encryptedstuff" even if i use absolute paths? Why is that? I just want my absolute paths being printed in the src attribute of the img tag. Who changes my absolute path to cid: ? is it php, phpmailer or outlook itself?

Any help someone?....

David

© Stack Overflow or respective owner

Related posts about php

Related posts about cron