coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: SniperX on February 07, 2004, 09:31:43 PM

Title: ECards Not Sending but no Error.
Post by: SniperX on February 07, 2004, 09:31:43 PM
We've been experimenting with the e-cards system a bit. We fill in all the details and it all seems to go well. No errors are returned and it says that it was sent.

However, that's the last we ever see of it.

We're using php's built in mail, and I guess it must be working as I just got a new mail from my forums, also using php mail.

Any thoughts or suggestions on what could be wrong?
Title: ECards Not Sending but no Error.
Post by: Joachim Müller on February 08, 2004, 11:51:28 AM
without further info (like a link, or what you changed about it, or your server config) it's impossible to tell.

GauGau

P.S. PHP doesn't have mail support, but your webserver (usually apache) has got a built-in smtp server that is being used to send mail...
Title: ECards Not Sending but no Error.
Post by: SniperX on February 08, 2004, 12:38:51 PM
QuoteP.S. PHP doesn't have mail support, but your webserver (usually apache) has got a built-in smtp server that is being used to send mail...

Sorry, as you can tell, I'm a php idiot.  :D  

OK, hopefully I'll give enough info here as it's still a problem.

Bridged with Invision 1.3 Final.

Gallery Link http://www.guiskins.com/studiox/imgbank/

Forum Link: http://www.guiskins.com/studiox/forums/

phpInfo Link: http://www.guiskins.com/studiox/infotest.php

From mailer.php:

$CONFIG['smtp_host'] = '';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';
// Custom mail function

Apart from altering the two template files, no code changes have been made. However, after further experimenting, the following seems to be the case.

If a user (who is within the members group in our forums) posts an ecard to me (as an Admin within the forums) I will get the card.

If I send a card, as an Admin, to anyone else (Member) then they will not receive it. If I send one to myself (Admin --> Admin) I will not receive it.

I'm pretty certain that is the scenario.

Hope you can provide some help as it's driving me a bit potty. (Not that I was a wee bit before.)  :D

Thanks in advance for any suggestions, etc. I'm happy to grant you admin access to both the forums and the gallery if that will help?

Update: After investigating this one further, I've narrowed it down to something to do with Hotmail account users.

Example: Take the exact same image. If the card is sent to my main non-hotmail address I receive it. If sent to my hotmail address I never see it.

The image size being sent is lower than the Hotmail 1MB. We just tried a 833 bytes image to a hotmail account and it was never seen. Sent the same image to a regular mail account and all was fine.

Seems that Hotmail may not like something about the mail, ergo, not processing it. It's a bug I can reproduce everytime.
Title: ECards Not Sending but no Error.
Post by: Nibbler on February 08, 2004, 04:35:10 PM
Just tried it and get the same results as you from your gallery, although I can mail my hotmail account just fine from my own gallery. Indicates this is probably a host/server issue rather than a problem with coppermine itself, but I cant think of any solution other than asking your hosting company.
Title: ECards Not Sending but no Error.
Post by: SniperX on February 08, 2004, 06:12:07 PM
QuoteIndicates this is probably a host/server issue rather than a problem with coppermine itself, but I cant think of any solution other than asking your hosting company.

That's interesting and thank you for taking a look. That being the case, it looks like I'm going to have to try and convince a server admin that he's wrong. Failing that, I can try cooling off in hell. About the same chances I think.  :D

May have found other possible reason, here. http://vancouver.php.net/forum/viewtopic.php?t=408

Seems this is quite a common problem. Off to look into it more. I refuse to be beaten by a bit of code!
Title: ECards Not Sending but no Error.
Post by: moorey on February 09, 2004, 03:23:31 AM
Quote from: "SniperX"
Quote$CONFIG['smtp_host'] = '';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';

Try changing that to
Quote$CONFIG['smtp_host'] = 'localhost';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';
Title: ECards Not Sending but no Error.
Post by: SniperX on February 09, 2004, 01:48:29 PM
QuoteTry changing that to $CONFIG['smtp_host'] = 'localhost';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';

Tried that. Still the same. Fast running out of ideas here.  :)
Title: Re: ECards Not Sending but no Error.
Post by: lace1215 on September 05, 2004, 10:15:34 PM
Quote from: SniperX on February 09, 2004, 01:48:29 PM
QuoteTry changing that to $CONFIG['smtp_host'] = 'localhost';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';

Tried that. Still the same. Fast running out of ideas here.  :)

I just wanted to report that I had the same issue as above. Everything seemed to work but no card was actually sent. I found this thread by searching and after reading it I changed the file mailer.inc.php to reflect the changes above and it all works like a charm now.

Thank you GauGau for such a great place to find the answers we are looking for! And Thank you SniperX for your code snipet...

Laurie