We bought a template package that had VM preconfigured and thus had a lot of junk vendors, etc. in it. We have been working toward getting things ready with all of our real information but for some reason the emails that the VM system sends out are sending them out with the wrong reply-to address and I can't figure out where to change this. For example, if a VM email actually arrives in my inbox after completing a sandbox order I see this in the headers:
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@ournewsite.com header.s=default header.b=XPXyLljT;
spf=fail (google.com: domain of info@example.com does not designate 96.xx.xx.xx as permitted sender) smtp.mailfrom=info@example.com
and in the email itself:
Reply-To: Our New Site <info@example.com>
Subject: [H958013], Confirmed order at Our New site, total $99.99
I am guessing that this is the reason why our emails are not being seen in the inbox of the recipient and that that mismatch is sending stuff to spam or deleting it outright. For example, the system sends a confirmation email out to the buyer (which I did receive) but the emails sent to the parent company for fulfillment never arrive. Is this info@example.com thing the likely culprit? If so where might this hidden info@example.com be at? I know it is not in our Joomla global config. I've checked, plus all of our test emails from the joomla configuration page go through just fine.
I am sure this is a simple fix but I can't find it... Any ideas?
QuoteIf so where might this hidden info@example.com be at? I know it is not in our Joomla global config. I've checked, plus all of our test emails from the joomla configuration page go through just fine.
If it isn´t You have to talk with your template supplier.
You could unpack the software locally and search for the string.
Jörgen @ Kreativ Fotografi
In the VM Shop Vendor?
Quote from: maestroc on October 10, 2020, 03:07:39 AM
I am sure this is a simple fix but I can't find it... Any ideas?
:)
components/com_virtuemart/helpers/shopfunctionsf.php
I added a dependency on the delivery method. But You can do it your own way.
if(!$noVendorMail) {
/*
$replyTo[0] = $view->vendorEmail;
$replyToName[0] = $view->vendor->vendor_name;
*/
// edited
if (isset($view->orderDetails['details']) && isset($view->orderDetails['details']['BT']) && $view->orderDetails['details']['BT']->virtuemart_shipmentmethod_id > 0) {
switch((int) $view->orderDetails['details']['BT']->virtuemart_shipmentmethod_id) {
case 1:
$replyTo[0] = '_@mkelektro.ru';
$replyToName[0] = 'МК Электро Бр. Кашириных';
break;
case 2:
case 3:
case 10:
$replyTo[0] = '__@mkelektro.ru';
$replyToName[0] = 'МК Электро Полярная';
break;
case 4:
$replyTo[0] = '___@mkelektro.ru';
$replyToName[0] = 'МК Электро Перекресток 24';
break;
case 5:
$replyTo[0] = '____@mkelektro.ru';
$replyToName[0] = 'МК Электро СДМ 3/1';
break;
case 6:
case 7:
case 8:
// ...
case 9:
// ...
}
}
else {
$replyTo[0] = $view->vendorEmail;
$replyToName[0] = $view->vendor->vendor_name;
}
} else {
...