forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: Cel on December 23, 2006, 07:37:25 pm

Title: email FROM?
Post by: Cel on December 23, 2006, 07:37:25 pm
I've recently installed Coppermine on one of my sites hosted by Fasthosts:

http://www.tickhillhistorysociety.org.uk/gallery1106

It's on Windows 2003, and everything is working fine except email.

Turned off the login option (with the plugin) as we don't require users to register, and only 'Comments' is available, but Admin is not receiving email notification of comments despite it being set to do so (not logged is as Admin when testing).

For security, Fasthosts require that email sent from a domain has a 'From' address related to that domain. The gallery admin people have name@tickhillhistorysociety.org.uk addresses.

This is the generic advice I found at Fasthosts:

***
Use the PHP mail function and set the mail from using the following line of code -

replacing email@mydomain with the correct domain name.

ini_set("sendmail_from", " email@mydomain ");

***

I guess if I really have to do this, it is somewhere in mailer.inc - though being a non-PHP person (more familiar with ASP) I'm slightly at a loss, but as this is the advice of the hosts, I thought it better to check this out before the SMTP option.

Thanks for reading - I hope that made sense.
Title: Re: email FROM?
Post by: Cel on February 27, 2007, 06:13:32 pm
Solved - changing all the admin emails did it, though being an admin, any comments I made to test were not emailed (dunno why) but when genuine comments came through we got the notification. Trouble is now spam  ;)
Title: Re: email FROM?
Post by: Hein Traag on March 06, 2007, 03:56:26 pm
Tip: search for captcha plugin