email FROM? email FROM?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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