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.
Resend welcome and order emails
-
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
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#L38Order email: https://github.com/CE-PhoenixCart/Phoen ... t.php#L184 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.
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']);Code: Select all
$GLOBALS['customer_notification'] = Notifications::notify('checkout', $GLOBALS['order']) ? 1 : 0;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
That is what I did in the end as it seemed the quickest way to do it.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.
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.