Search…

X3 Photo Gallery Support Forums

Search…
 
raeon
Topic Author
Posts: 8
Joined: 08 Sep 2007, 10:54

Email Problem

08 Sep 2007, 11:51

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.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

10 Sep 2007, 07:22

PM me a link to your gallery please. And ftp l/p might come in handy too.
firedev.com
 
lowagie
Experienced
Posts: 46
Joined: 29 Sep 2006, 07:27

12 Sep 2007, 08:39

same problem over here

url: http://www.lowagie.be
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

12 Sep 2007, 09:04

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?
firedev.com
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

12 Sep 2007, 09:24

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!
firedev.com
 
lowagie
Experienced
Posts: 46
Joined: 29 Sep 2006, 07:27

12 Sep 2007, 09:28

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!
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

12 Sep 2007, 09:34

Thanks, Fixed, Fixed and Uploaded.

That creeped in while we've been changing short open tags <? to <?php.
firedev.com
 
raeon
Topic Author
Posts: 8
Joined: 08 Sep 2007, 10:54

17 Sep 2007, 20:29

All fixed. Moved /* down and it worked. Thanks a million.