Page 1 of 1

Email module does not work correct with php Version 5.2.3

Posted: 27 Aug 2007, 09:17
by holger
Hello Karl, hello imagevue Team, hello forum,

in my gallery everything works fine with PHP Version 5.2.3 except the sendEmail Module. When i use it, i receive an Email, but the html-template (sendpic.html) is not well integrated.

I tried some different mailclients and mailservers as recipient. Its only my web.de account which parse the html-template correctly. In the other mails i receive by using the sendpic.php script, i receive the html-sourcecode of the sendpic.html template.


if you try it you will see whats happening.

do you have any suggestions to solve the problem?

Thanks for your help
Holger

Posted: 13 Sep 2007, 12:13
by mjau-mjau
I came by this post a little late - The link is currently down. Did you have any progress with this issue? Perhaps you have a new link?

Posted: 13 Sep 2007, 12:51
by holger
hello karl,

i solved the problem.

the problem was the header of the email which is generated by the sendpic.php
in mails i recieved with the original sendpic.php file the part: 'Content-type: text/html' was not integrated. On other Servers and with php 4 I did not have this problem.

i changed the following parts from:

$headers = 'From: ' . $maildata['from_email'] . "\r\n" .
'Reply-To: ' . $maildata['from_email']. "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html' ;

to
$headers .= 'From:' . $maildata['from_email'] . "\n";
$headers .= 'Reply-To:' . $maildata['from_email'] . "\n";
$headers .= 'X-Sender-IP: ' . $REMOTE_ADDR . "\n";
$headers .= "Content-type: text/html\n";

Now it works.

you can reach the site here: http://tinyurl.com/2dgee3
go to menue/galerie

kind regards
holger

Posted: 22 Sep 2007, 12:26
by mjau-mjau
Very nice!

You should post your gallery at www.photogallerylinks.com (which also shows your gallery here https://www.photo.gallery/imagevue/user/ )