forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 email => Topic started by: Cath22 on April 12, 2011, 03:14:18 pm

Title: Contact us form problem sending mail only to webmaster
Post by: Cath22 on April 12, 2011, 03:14:18 pm
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





Title: Re: Contact us form problem sending mail only to webmaster
Post by: Α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'?

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?
Title: Re: Contact us form problem sending mail only to webmaster
Post by: Cath22 on April 12, 2011, 04:02:08 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.
Title: Re: Contact us form problem sending mail only to webmaster
Post by: Αndré on April 12, 2011, 04:23:47 pm
Open contact.php, find
Code: [Select]
if (!cpg_mail($CONFIG['gallery_admin_email'], $subject, $html_message, 'text/html', $sender_name, $sender_email, $message)) {and replace with
Code: [Select]
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.
Title: Re: Contact us form problem sending mail only to webmaster
Post by: Cath22 on April 12, 2011, 04:36:26 pm
Open contact.php, find
Code: [Select]
if (!cpg_mail($CONFIG['gallery_admin_email'], $subject, $html_message, 'text/html', $sender_name, $sender_email, $message)) {and replace with
Code: [Select]
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?
Title: Re: Contact us form problem sending mail only to webmaster
Post by: Α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.
Title: Re: Contact us form problem sending mail only to webmaster
Post by: Cath22 on April 12, 2011, 05:14: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?
Title: Re: Contact us form problem sending mail only to webmaster
Post by: Αndré on April 12, 2011, 06:00:17 pm
Both is possible.