Resend welcome and order emails

Open to all! Ask other shopowners for help.
Post Reply
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Resend welcome and order emails

Post by 14Steve14 »

Only been using this software for about 12 years now and have no idea whether it is possible to resend the welcome and order emails.

Is it possible or is it something that cannot be done. I have had a customer add an incorrect email and would like a copy of both emails.


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Resend welcome and order emails

Post by ecartz »

It is not possible to do within the core application (i.e. by pushing buttons).

It would be possible for someone to code it.

Welcome email: https://github.com/CE-PhoenixCart/Phoen ... in.php#L38

Code: Select all

      Notifications::notify('create_account', $GLOBALS['customer']);
Order email: https://github.com/CE-PhoenixCart/Phoen ... t.php#L184

Code: Select all

      $GLOBALS['customer_notification'] = Notifications::notify('checkout', $GLOBALS['order']) ? 1 : 0;
Note that to do this from admin would probably require some hackery. In particular, those assume that $Linker exists and that $customer and $order exist.

It would probably be easier to add this functionality into the account and account history pages. Payment modules with IPN functionality already send the order email late.

If you have EXTRA_ORDER_EMAILS_TO configured, you may have a copy of the order email that you could forward. And the welcome email is static. So you could register for your site and then forward an edited version of that to the customer. I think that you would only need to edit the To: line and the customer greeting in what you forward.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Resend welcome and order emails

Post by 14Steve14 »

ecartz wrote: Fri Nov 04, 2022 4:26 pm If you have EXTRA_ORDER_EMAILS_TO configured, you may have a copy of the order email that you could forward. And the welcome email is static. So you could register for your site and then forward an edited version of that to the customer. I think that you would only need to edit the To: line and the customer greeting in what you forward.
That is what I did in the end as it seemed the quickest way to do it.

I was just wondering if some other store owner had found a way to do it. Its the first time in 12 years that I have been asked to do it, so its not a real high priority.

Thanks for the help anyway.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply