coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: mistertynes on April 14, 2005, 03:50:16 AM

Title: E-card sent but generates error msg anyway
Post by: mistertynes on April 14, 2005, 03:50:16 AM
Hello. I find this software fantastic and I'm just exploring. Right now after getting all installed and verifying that I can upload both via the web and through the pub functino of WinXP, I tried out the e-card.

The e-card does in fact send and quite quickly but it generates an error whether I'm logged in as a user or just an anon visitor to the site. I've enabled e-cards to be sent for everyone.

It tells me: "Sorry but the server can't send your e-card... " Now the e-card arrives in beautiful HTML with all the graphics and formatting and all is well. But the message pops up in Coppermine everytimes. So I'm glad it goes out but I want to eliminate the message. I'm afraid it's disconcerting to visitors to the site. I want it seamless, no errors.  :P

What can I do to eliminate this error. Surely someone has encountered it before.

Thanks!
~Jeff
Title: Re: E-card sent but generates error msg anyway
Post by: Nibbler on April 14, 2005, 03:55:38 AM
I don't know why that would happen, but ecard.php you can find :

$result = cpg_mail($recipient_email, $subject, $message, 'text/html', $sender_name, $sender_email);

and add on the next line :

$result = true;

to allways give a positive result.

Maybe switching to SMTP to send your emails would help - enter the details in mailer.inc.php.
Title: Re: E-card sent but generates error msg anyway
Post by: mistertynes on April 14, 2005, 01:01:07 PM
Hey Nibbler that worked like a charm! Thanks.