Advanced search  

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

Pages: [1]   Go Down

Author Topic: Contact us form problem sending mail only to webmaster  (Read 12661 times)

0 Members and 1 Guest are viewing this topic.

Cath22

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 77
    • Fotofantastic
Contact us form problem sending mail only to webmaster
« 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





Logged
qui custodiet ipsos custodes

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Contact us form problem sending mail only to webmaster
« Reply #1 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?
Logged

Cath22

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 77
    • Fotofantastic
Re: Contact us form problem sending mail only to webmaster
« Reply #2 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.
Logged
qui custodiet ipsos custodes

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Contact us form problem sending mail only to webmaster
« Reply #3 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.
Logged

Cath22

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 77
    • Fotofantastic
Re: Contact us form problem sending mail only to webmaster
« Reply #4 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?
Logged
qui custodiet ipsos custodes

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Contact us form problem sending mail only to webmaster
« Reply #5 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.
Logged

Cath22

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 77
    • Fotofantastic
Re: Contact us form problem sending mail only to webmaster
« Reply #6 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?
Logged
qui custodiet ipsos custodes

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Contact us form problem sending mail only to webmaster
« Reply #7 on: April 12, 2011, 06:00:17 pm »

Both is possible.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.