problem sending confirmation mail to user and admin: the user gets both mails problem sending confirmation mail to user and admin: the user gets both mails
 

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

problem sending confirmation mail to user and admin: the user gets both mails

Started by Catman, February 02, 2007, 08:57:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Catman

Hello Stramm,

In topic http://forum.coppermine-gallery.net/index.php?topic=40728.0 it seemed that my problem with the photo_shop was solved, but when a user orders a picture he/she will get the admin mail too. Instead of the user gets his mail and the admin gets his own  mail. Did I mis something?

Kind regards

Frank

Stramm

I have no testbed avail atm but from looking at the code again smth seems to be missing

try
photoshop_email_the_user($lang_photoshop_email_admin, $lang_photoshop['email_subject_order_admin'], 'admin');

instead of the similar code I posted in the other thread... that one does exactly what you experience. Sending emails to the user

Catman

 :) Thank you, I really appreciate your help.

But it did not solve the problem; The person who orders the picture still does still get the user email and also the mail which is intended for the admin.

Catman

Hello Stramm;

Please do not consider this as pushing; But because I did not get any reaction anymore, I was worried whether the smiley in my former reply, made you think the problem was solved. That's why I am sending this reminder.

Kind regards

Frank

Stramm

Check out the original thread and apply the hack again. Should work now ;)

Catman

I have applied the hack; the admin gets his part of the email now; but the user still gets the admin email too.

Stramm

start with a fresh, unmodded version of checkout.php. Make sure you do exactly as described in the other post. If the user gets both mails, then there's a line to much in the code that doesn't belong there.

Catman

I did, I use the version1.3.3. But it generates 3 emails. 1 admin mail for the admin and 2 mails for the user. The user mail and the admin mail. I will attach the modified checkout.php. I left the original code as comment.

Regards

Frank


Stramm

I've attached my entire 1.3.3 incl. the mod. Working for me smooth as butter


Catman

Thanks again;

I only used your photo_shop_checkout.php and everything works fine. I must have made some mistake somewhere.

Regards

Frank

Stramm