Problem with sendpic-feature (email)
Posted: 22 Apr 2007, 05:32
Hi guys,
I just stumbled over the email-feature where a visitor can send a picture by email and changed the slideshowimagevueconfig.ini and slideshowconfig.ini accordingly.
(maincontrols = select,previous,next,toggleplay,sfx,window,popup,download,sendemail)
and
(rightclick = next,previous,toggleplay,window,popup,download,sendemail)
So far, so good, the email feature is now displayed and right-click functionality enabled. But when I test the form and send it, an error appears after some seconds: "An error ocurred: can not open template"
I searched for this message and found it in sendpic.php
But I don't know what to do (I also tried setting an absolute path for sendpic.html there, but nothing..- everything else works perfectly (I'm using the carbon-template)). Maybe someone had this problem as well?
Would be awesome to get the email-feature working..
I just stumbled over the email-feature where a visitor can send a picture by email and changed the slideshowimagevueconfig.ini and slideshowconfig.ini accordingly.
(maincontrols = select,previous,next,toggleplay,sfx,window,popup,download,sendemail)
and
(rightclick = next,previous,toggleplay,window,popup,download,sendemail)
So far, so good, the email feature is now displayed and right-click functionality enabled. But when I test the form and send it, an error appears after some seconds: "An error ocurred: can not open template"
I searched for this message and found it in sendpic.php
Code
//read template
$maildata['gal_url']='http://'.getenv('HTTP_HOST').getDirname(getenv('REQUEST_URI'));
$tpl=@unMagic(implode(file('include/sendpic.html')),1) or die ('error=can not open template');Would be awesome to get the email-feature working..