Author Topic: Where is the reply-to address configured at for emails?  (Read 192 times)

maestroc

  • Beginner
  • *
  • Posts: 16
Where is the reply-to address configured at for emails?
« on: October 10, 2020, 03:07:39 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3048
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Where is the reply-to address configured at for emails?
« Reply #1 on: October 10, 2020, 10:44:34 am »
Quote
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. 

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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9815
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Where is the reply-to address configured at for emails?
« Reply #2 on: October 10, 2020, 11:36:58 am »
In the VM Shop Vendor?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Rsn

  • Jr. Member
  • **
  • Posts: 53
  • Advanced user
    • Blog InformResource
Re: Where is the reply-to address configured at for emails?
« Reply #3 on: October 11, 2020, 20:04:06 pm »
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.

Code: [Select]
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 {
    ...