Author Topic: When order is placed can multiple emails be sent?  (Read 10199 times)

manuel2283

  • Beginner
  • *
  • Posts: 2
When order is placed can multiple emails be sent?
« on: July 26, 2008, 21:05:38 pm »
I have a quick question, is there any way to CC or just email multiple people when an order is placed from VirtueMart.

I know if you go to the edit store you can enter one email address that corresponds to when any orders are sent.

Thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28314
  • Always on vacation
    • Jenkin Hill Internet
Re: When order is placed can multiple emails be sent?
« Reply #1 on: July 27, 2008, 10:56:43 am »
Easiest way to do this is on your mail server. Have the main shop address as an alias and copy to as many other addresses as you wish. Depends how much server control you have, though.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

aussieute

  • Jr. Member
  • **
  • Posts: 75
Re: When order is placed can multiple emails be sent?
« Reply #2 on: September 13, 2008, 10:49:43 am »
Agree Kelvyn but I've got a situation where all email goes direct to the client's in house email server.

That box is prone to crashing and loosing orders and I'd like to get some backups sent elsewhere.

Got any other suggestions I could try?  ;)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28314
  • Always on vacation
    • Jenkin Hill Internet
Re: When order is placed can multiple emails be sent?
« Reply #3 on: September 15, 2008, 10:35:58 am »
I guess you could hardcode additional email addresses into VM - there was a hack for doing this with VM1.0.x - not seen one described for VM 1.1.x
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

briannyc

  • Beginner
  • *
  • Posts: 26
Re: When order is placed can multiple emails be sent?
« Reply #4 on: March 09, 2009, 16:48:53 pm »
Does anyone have a solution for 1.1.x?  I would like it to be in the Virtuemart side as I have multiple fulfillment centers.
Joomla:  1.5.7
VM:      1.1.2
PHP:     5.2.6
MySQL:   5.0.51

DisgruntledGoat

  • Beginner
  • *
  • Posts: 21
Re: When order is placed can multiple emails be sent?
« Reply #5 on: March 12, 2009, 15:53:05 pm »
I am trying to do this too (posted here: http://forum.virtuemart.net/index.php?topic=52772.0). Though I need to do different emails for different people.

Where in the code is the email sent?

mediastreet

  • Beginner
  • *
  • Posts: 13
    • Media Street- Website Design, Hosting and Development
Re: When order is placed can multiple emails be sent?
« Reply #6 on: January 28, 2010, 12:52:42 pm »
Anyone find a solution to this??
Media Street Ltd, Exeter, Devon.
Exeter Web Design > Follow me on Twitter

stunami

  • Beginner
  • *
  • Posts: 12
Re: When order is placed can multiple emails be sent?
« Reply #7 on: March 11, 2010, 09:31:59 am »
This works in VM 1.1.4 on J 1.5.15

Backup ps_checkout.php then find the following around Line 2101:
// Mail receipt to the vendor
vmMail($from_email, $mosConfig_fromname, $vendor_email, $vendor_subject,$msg, "" );

ADD THIS JUST BELOW
//Begin Additional Text Email
$additional_email = '<insert the email address you wish to use here>';
vmMail($from_email, $mosConfig_fromname, $additional_email, $vendor_subject,$msg, "" );
// End Additional Text Email

then the following around Line 2212
$vendor_mail = vmMail( $from_email, $mosConfig_fromname, $vendor_email, $vendor_subject, $vendor_mail_Body, $vendor_mail_AltBody, true, null, null, $EmbeddedImages, null, $shopper_email);

ADD THIS JUST BELOW
//Begin Additional HTML Email
$additional_email = '<insert the email address you wish to use here>';
$vendor_mail = vmMail( $from_email, $mosConfig_fromname, $additional_email, $vendor_subject, $vendor_mail_Body, $vendor_mail_AltBody, true, null, null, $EmbeddedImages, null, $shopper_email);
//End Additional HTML Email

building252

  • Beginner
  • *
  • Posts: 15
Re: When order is placed can multiple emails be sent?
« Reply #8 on: June 04, 2010, 15:48:36 pm »
@stunami

Brilliant! Thank you for this hack...works perfectly!


ewd

  • Beginner
  • *
  • Posts: 1
Re: When order is placed can multiple emails be sent?
« Reply #10 on: October 09, 2012, 17:02:17 pm »
I know this is a pretty old topic, but does anyone have a silimar solution to sending multiple order confirmation emails out in VM2?  I need 1 copy as the site manager, and 1 copy sent to the supplier who will fulfil the order.

Many thanks in advance of your help.