email FROM? email FROM?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

email FROM?

Started by Cel, December 23, 2006, 07:37:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cel

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.

Cel

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  ;)

Hein Traag

Tip: search for captcha plugin