VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jedzon on January 11, 2014, 23:58:44 PM

Title: E-mail notification - after user changes
Post by: jedzon on January 11, 2014, 23:58:44 PM
Hi,
Is there a way to send to administrator e-mail with nothification that user make some changes on his account (with new data or what was changed - name/address, etc.).

Thank you
Title: Re: E-mail notification - after user changes
Post by: vaistik on January 17, 2014, 13:17:46 PM
I could really use that myself. Been looking through VM files to maybe implement it on my own but no luck yet. Any pointers would be appreciated!
Title: Re: E-mail notification - after user changes
Post by: vaistik on January 21, 2014, 12:08:20 PM
I did found something that looks like it could work. I have only tried it localy so I don't know if the mail actually gets sent but I do get a mail instance failed message so assume it works.

Have a look at components/com_virtuemart/controllers/user.php in the saveData function.

I added a JFactory::getMailer()->sendMail() function just before the return $msg line.

I hope this helps someone, good luck!