Contact us form problem sending mail only to webmaster Contact us form problem sending mail only to webmaster
 

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

Contact us form problem sending mail only to webmaster

Started by Cath22, April 12, 2011, 03:14:18 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Cath22

I am using 1.5.12 but I have problem the contact form only sends notification mails to the webmaster. But there is another person also listed in the webmaster group, but he does not get notification ??
Nothing in debug or logs.
Any idea why?

I would like to see he does get the notification in any way, perhaps to change the settings in contact.php  like $sender_email = $CONFIG['gallery_admin_email']; to his email adress?

I would not get it then, but at least that saves me from continous forwarding





qui custodiet ipsos custodes

Αndré

What is the 'webmaster group'? Do you mean the default admin group called 'Administrators' with the group id '1'?

Quote from: Cath22 on April 12, 2011, 03:14:18 PM
the contact form only sends notification mails to the webmaster
Do you mean the gallery admin email address that has been setup in the config?

Cath22

Quote from: Αndré on April 12, 2011, 03:57:30 PM
What is the 'webmaster group'? Do you mean the default admin group called 'Administrators' with the group id '1'?
Do you mean the gallery admin email address that has been setup in the config?

Sorry for the confusion, but yes I mean Administrators, I have two persons in there, but only the first gets mail

and for the second No, I would like to still receive mails to my account, but just reroute the contact us related email through another email.
qui custodiet ipsos custodes

Αndré

Open contact.php, find
if (!cpg_mail($CONFIG['gallery_admin_email'], $subject, $html_message, 'text/html', $sender_name, $sender_email, $message)) {
and replace with
if (!cpg_mail('admin', $subject, $html_message, 'text/html', $sender_name, $sender_email, $message)) {
if you want to send the mail to all users in the admin group.

Cath22

Quote from: Αndré on April 12, 2011, 04:23:47 PM
Open contact.php, find
if (!cpg_mail($CONFIG['gallery_admin_email'], $subject, $html_message, 'text/html', $sender_name, $sender_email, $message)) {
and replace with
if (!cpg_mail('admin', $subject, $html_message, 'text/html', $sender_name, $sender_email, $message)) {
if you want to send the mail to all users in the admin group.

Thanks, that worked,
but just to be sure, is it possible to change in that codesnippet 'admin' also into a another email adress, meaning it gets send to whatever email adress I like to be set?
qui custodiet ipsos custodes

Αndré

As you can see in the original code it's send to the email address you set in the config. But you can of course manually add another email address.

Cath22

Quote from: Αndré on April 12, 2011, 04:40:02 PM
As you can see in the original code it's send to the email address you set in the config. But you can of course manually add another email address.

You mean in the code or in the config?
qui custodiet ipsos custodes

Αndré