News:

Support the VirtueMart project and become a member

Main Menu

Where is the reply-to address configured at for emails?

Started by maestroc, October 10, 2020, 03:07:39 AM

Previous topic - Next topic

maestroc

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?

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Rsn

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 {
    ...