forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: Catman on February 02, 2007, 08:57:50 pm

Title: problem sending confirmation mail to user and admin: the user gets both mails
Post by: Catman on February 02, 2007, 08:57:50 pm
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
Title: Re: problem sending confirmation mail to user and admin: the user gets both mail
Post by: Stramm on February 04, 2007, 03:14:19 pm
I have no testbed avail atm but from looking at the code again smth seems to be missing

try
Code: [Select]
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
Title: Re: problem sending confirmation mail to user and admin: the user gets both mails
Post by: Catman on February 04, 2007, 04:24:14 pm
 :) 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.
Title: Re: problem sending confirmation mail to user and admin: the user gets both mails
Post by: Catman on February 06, 2007, 11:00:55 am
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
Title: Re: problem sending confirmation mail to user and admin: the user gets both mail
Post by: Stramm on February 14, 2007, 08:25:14 am
Check out the original thread and apply the hack again. Should work now ;)
Title: Re: problem sending confirmation mail to user and admin: the user gets both mails
Post by: Catman on February 15, 2007, 08:28:47 am
I have applied the hack; the admin gets his part of the email now; but the user still gets the admin email too.
Title: Re: problem sending confirmation mail to user and admin: the user gets both mail
Post by: Stramm on February 15, 2007, 11:26:37 am
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.
Title: Re: problem sending confirmation mail to user and admin: the user gets both mails
Post by: Catman on February 15, 2007, 08:21:55 pm
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

Title: Re: problem sending confirmation mail to user and admin: the user gets both mail
Post by: Stramm on February 15, 2007, 08:59:49 pm
I've attached my entire 1.3.3 incl. the mod. Working for me smooth as butter

Title: Re: problem sending confirmation mail to user and admin: the user gets both mails
Post by: Catman on February 19, 2007, 02:23:35 pm
Thanks again;

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

Regards

Frank
Title: Re: problem sending confirmation mail to user and admin: the user gets both mail
Post by: Stramm on February 19, 2007, 04:28:35 pm
cool, and thanks for coming back and solving this thread