VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: icetrikes on September 27, 2018, 18:07:41 PM

Title: Adding a second recipient for admin emails
Post by: icetrikes on September 27, 2018, 18:07:41 PM
I'd like to add a second recipient for some or all of the email going to the shop admin.

As an example, when the new shopper registration email is sent to our office, I'd also like a copy sent to a completely different address.  I am setting up software that will read that email and extract the user's details, and then add the customer to our accounting system database.  I don't want to send the only copy to the software.

I'd like to do this with the new user registration email and with the invoice (so I can add invoices directly to our accounts system).  If it is a global change that affects every admin email, I can just ignore the ones I'm not interested in.

Can I add a 2nd recipient in the backend somewhere, or am I going to have to modify code?

Cheers

John

Joomla 3.8.10
Virtuemart 3.4.0
PHP 5.6.38
Title: Re: Adding a second recipient for admin emails
Post by: jenkinhill on September 27, 2018, 18:31:05 PM
VM Configuration/Emails - Additional vendor email addresses
Title: Re: Adding a second recipient for admin emails
Post by: icetrikes on September 27, 2018, 19:31:31 PM
Hi Kelvyn

Thanks for the quick reply.

I've put the email address in the 'Additional vendor email addresses', but I'm not getting a copy of the registration email to the second address.  This is in Configuration, under the Orders tab, in the Email Settings section.  Does this second email address only apply to orders, or should it work for the registration email as well?  I also tried setting 'Debug mail' to 'Displays the email and sends it', but it didn't display anything.

The email is HTML mail, and 'Use the vendor email address' is unchecked (although I've yet to find where the vendor email is set)

Cheers

John
Title: Re: Adding a second recipient for admin emails
Post by: GJC Web Design on September 27, 2018, 19:56:36 PM
Quote(although I've yet to find where the vendor email is set

the email shown when you open the vm admin ->shop->shopper information
Title: Re: Adding a second recipient for admin emails
Post by: jenkinhill on September 28, 2018, 12:59:12 PM
Quote from: icetrikes on September 27, 2018, 19:31:31 PM
I've put the email address in the 'Additional vendor email addresses', but I'm not getting a copy of the registration email to the second address. 

I rarely use registration on VM sites so have not checked this (I don't like having anything that can slow up the process of getting a shopper to buy). I guess that I'd go back to the old standard way of using the mailserver to send copy mails to a third party. I still use this on several non-VM sites.