Click to See Complete Forum and Search --> : linux: images do not show up in certain clients...


K-man2
10-05-2004, 07:31 AM
hi everyone,

i'm sending out an html-formatted e-mail
with php on a linux server. i use the img tag to display the images
in the mail. the images are located on the same server. unfortuneatly in "apple mail" on mac the images will not show up. i just get the "broken image" icon instead.

the strange thing is that if i try another image url on a completely different server the images show up!

could this have to do with file attributes or folder attributes?
i've tried to change them a little but with no result...

i'm really having a hard time with this issue and i would
be greatful for any ideas.

stay cool jump in the pool!

dalecosp
10-05-2004, 12:10 PM
I assume you've checked the "Apple Mail" client to make sure it wasn't set to block images, etc... ?

K-man2
10-05-2004, 01:48 PM
yes that's right, apple mail is set not to block images and to show html mails...

i've set both the directory where the file is stored and the file to chmod 755. maybe i should do the same with the root directory?
something like this:
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10285584

guess i'll have to contact the administrator cause i can't change it via ftp. (not authorized)

is there a way to get chmod info on a folder in php?

dalecosp
10-05-2004, 02:09 PM
Originally posted by K-man2
is there a way to get chmod info on a folder in php?

fileperms() ...

yes that's right, apple mail is set not to block images and to show html mails...
I'd still suspect something with the client. Have you gotten a look at the source code that Apple Mail is using to display the message? Anything unusual there?

K-man2
10-05-2004, 03:29 PM
thanks for the tip on fileperms!

the only code that differs in the working vs non working mails
is the image url:

working:
<img src="http://www.notmysite.com/pic.jpg" width="35" height="50">

not working:
<img src="http://www.mysite.com/pic.jpg" width="35" height="50">

all fileperms are 0755