Page 1 of 1

Email Problem

Posted: 08 Sep 2007, 11:51
by raeon
Hello,

I am getting the following error when trying to send an email with the email module (not mailto: function).

An error ocurred:
undefined

Can some one please comment. Thanks.

Posted: 10 Sep 2007, 07:22
by Nick
PM me a link to your gallery please. And ftp l/p might come in handy too.

Posted: 12 Sep 2007, 08:39
by lowagie
same problem over here

url: http://www.lowagie.be

Posted: 12 Sep 2007, 09:04
by Nick
Looking at this link:

http://www.lowagie.be/blog/sendpic.php? ... 2516-1.jpg

I can conclude that you accidently mis-edited sendpic.php, please check that is looks like:
Code
//Please uncomment the line below and add path to your log file to save emails
//NOTE: FILE MUST BE PHP-WRITABLE! USE DIRECTORY OUTSIDE OF WWW ROOT
//$log = '../../sendpic.log';
$log = 'sendpic.txt';
actually if you dont need log file of picture being sent by email you can comment out last $log line:
Code
 //$log = 'sendpic.txt';
Maybe it is better to comment everything out by default? What do you think?

Posted: 12 Sep 2007, 09:24
by Nick
pain,

pain (pain@xxxxxxxx.com) zou u graag even een foto op lowagie.be tonen. Via onderstaande link kan je de foto onmiddellijk bekijken!

http://www.lowagie.be/blog/?directimage ... 091103.jpg

pain liet ook nog een bericht voor jou:
test


_______________________________________________
www.lowagie.be


hehe =) right on!

Posted: 12 Sep 2007, 09:28
by lowagie
The problem was indeed in my sendpic.php file, but i had nothing to do with that log file.

in the original sendpic.php the code starts like this;
Code
<?php/*

SENDPIC Imagevue Mod

v0.4
	[+] config: sendemail_subj (if not set - default used)
	[?] html email fix?
I just changed that to:
Code
<?php
/*

SENDPIC Imagevue Mod

v0.4
	[+] config: sendemail_subj (if not set - default used)
	[?] html email fix?
So just let the comment start at a new line and everything works fine. Perhaps some strange settings on the server (i'm with Site5.com)? Otherwise i found a bug :lol:

To answer your question about that logging-line to comment out; Right now, i use the log, and i know how to create a new file etc;...

But if i was a "stupid" user and i didn't want to log everything (what most users won't do) i think its better to disable this option by default. The few people who may want to use the logging option, will find how to uncomment this line!

Posted: 12 Sep 2007, 09:34
by Nick
Thanks, Fixed, Fixed and Uploaded.

That creeped in while we've been changing short open tags <? to <?php.

Posted: 17 Sep 2007, 20:29
by raeon
All fixed. Moved /* down and it worked. Thanks a million.