VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: strom2 on September 29, 2012, 18:04:16 PM

Title: How to send copy of email to manufacturer?
Post by: strom2 on September 29, 2012, 18:04:16 PM
Hi, I´ve been searching for this option almost everywhere.
I need to set in Virtuemart everytime the payment is made the manufacturer will (automatically) receive the bcc of this email? We have several manufacturers and some of them ask for this.

Thanks for help.
Title: Re: How to send copy of email to manufacturer?
Post by: John2400 on September 30, 2012, 13:27:45 PM
strom2,

hi the issue of (manufacturer) - that depends on some settings and some future developments in VM.

* the system has been working hard on Multiple Vendors - so that the buyer and the vendor will receive an email.
* Vm2 is working very hard on trying to get multiple vendors getting the email.
* From there you could set up the server that the buyer gets and email, the multi vendors get and email, but then is the Manufacturer is he one of the vendors or is he at a different level.?

* so that you have three levels of  emails - ? the system becomes very difficult if you are asking for a third level of emails? maybe ask your question again and specify if you are saying that the manufacturer is a vendor or is it - that you have buyers, vendors and maufactures getting emails.   At the moment you might find that level two is still being perfected in VM2.
Title: Re: How to send copy of email to manufacturer?
Post by: strom2 on October 01, 2012, 02:21:41 AM
Thanks for your answer.
I see it is complicated. What I need is set up system when the bcc of email, after the payment is completed, will go manufacturer who is interested in it. Not to every single one.
Anyway, I found easier way. I just set up new filter/rule in my email account settings based on the subject of email generated by virtuemart. This way it will always send the bcc to the manufacturer of specific product.

Title: Re: How to send copy of email to manufacturer?
Post by: John2400 on October 01, 2012, 04:19:27 AM
strom2,

That's neat - so not at the server level just at the outlooks - rules level on your home computer-?

Just point out a little how you did that - i might find a use for it myself -

* so the email comes into your system - you have set up a rule and from there it goes to a folder -?

* does it automatically go to the maunfacturer or do you have to manually send - Nice to see an idea.
Title: Re: How to send copy of email to manufacturer?
Post by: strom2 on October 01, 2012, 20:52:38 PM
No, you have to do it at your email provider webpage, search your administration page or something similar. I did not find a way to force outlook send automatically copy after you receive the email. You can do it when you send, but this is not what we want :-)

I set rule or filter to send automatically bcc when subject (or text of email) contains the name of product to manufacturers email, kept the original email in received emails. I have the email, manufacturer has the copy right away. We are both satisfied.

Title: Re: How to send copy of email to manufacturer?
Post by: bytelord on October 01, 2012, 21:18:32 PM
Hi,
I am thinking for doing that you need to create a vm extend plugin or to edit your payment plugin and extend it in such way so when the payment is successful except sending e-mail to the vendor and shopper also send's an e-mail to the manufacturer of the product. There will be some issues that sometimes may be in checkout you have 10 products so you will need to create a loop for all the products and send also a copy to the manufacturers mail address.

The function that uses for example paypal payment plugin is sendEmailToVendorAndAdmins and located under administrator\components\com_virtuemart\plugins\vmpslugin.

That function is responsible for sending the mails to admins and vendors. You could create a new sending mail to manufacturers of the products and use it inside your payment plugins like the other plugin does with sendEmailToVendorAndAdmins.

Hope it helps you out.

Regards