Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Blank Message ID: in sent emails

    If you prefer not to touch the class.phpmailer.php file, you could edit /includes/functions/functions_email.php , around line 336 (circa ZC v1.5.4),
    inserting something like the highlighted code below:

    Code:
          $ErrorInfo = '';
          $mail->Hostname = preg_replace('~(^https?://|\/.*$)~', '', defined('HTTP_CATALOG_SERVER') ? HTTP_CATALOG_SERVER : HTTP_SERVER);
          $zco_notifier->notify('NOTIFY_EMAIL_READY_TO_SEND', array($mail), $mail);
    Last edited by DrByte; 19 Jan 2015 at 04:06 AM. Reason: changed regex
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Nov 2014
    Location
    PA
    Posts
    36
    Plugin Contributions
    0

    Default Re: Blank Message ID: in sent emails

    If I read this correctly you wouldn't have the option to use the alias should anyone wish to use it ???
    Then if a domain was already set domain.com (no alias) wouldn't you wind up with just com as the domain?
    Or am I misreading the call: https?://|', (ignores things in the first section of the domain)
    My PTR is mail.mydomain.com
    I was actually looking at doing something similar to this,(if statements) but was afraid of breaking it completely. And then just editing one line in class.phpmailer.php made it seems so much easier.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Blank Message ID: in sent emails

    No, the "s?" means "if there's an "s" include it in the pattern".

    The whole line means: "using either HTTP_CATALOG SERVER (only available admin-side) or HTTP_SERVER, strip off the http:// or https:// from the front and anything after any other remaining '/' characters, leaving just the store's domain name", and pass that to phpMailer as the Hostname parameter.

    You can test regexes at http://regexpal.com/
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Nov 2014
    Location
    PA
    Posts
    36
    Plugin Contributions
    0

    Default Re: Blank Message ID: in sent emails

    Thanks for explaining that- it now makes sense to me.
    I've been working with perl/cgi scripts for years and am finding it very difficult to grasp the php at times. It'd be alot easier if they weren't similar yet so different.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 21
    Last Post: 21 Feb 2015, 05:45 AM
  2. Replies: 0
    Last Post: 22 Aug 2014, 01:47 AM
  3. v151 Bulk emails sent through the admin section creating error message
    By webmiss in forum General Questions
    Replies: 2
    Last Post: 12 Dec 2013, 06:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg