Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Location
    Manchester ~ UK
    Posts
    130
    Plugin Contributions
    0

    Default site email contact form not sending to certain email addresses

    Hello, a client is using CPanel and his zencart contact form will not send to his main domain email address, although when changing the email address in the "From" field to another email, his contact form works.

    We have tried numerous email transport methods and also about 7 different email addresses into the "From" email address field. 3 emails seem to work fine but the others (all from different servers) seem to send mail, but nothing comes through to those email addresses.

    We have no spam filters on these account and think this may be a CPanel or email hosting issue, can anyone else think of why emails from the zencart contact form would work under some addresses and not others (which we know are working email addresses)?

    Many thanks for any ideas,
    Al

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: site email contact form not sending to certain email addresses

    internal server mail routing can be complicated. Sometimes a misconfiguration will cause mail "from" the server going "to" the same server to be seen as undesired.
    Usually the best way around this is to use the 'sendmail -f' option.
    There's a bug in 1.3.0.x that prevents sendmail -f from actually running. See below.

    Another method for working around the internal routing problem is to enable the "Emails must send from known domain" option. This will cause the "sent from" email address to be set to match your "Email From" address set in Email Options.

    To work around the sendmail -f bug so that you can try to use that option, do this:
    /includes/functions/functions_email.php
    around line 157:
    Code:
          // if mailserver requires that all outgoing mail must go "from" an email address matching domain on server, set it to store address
          if (EMAIL_SEND_MUST_BE_STORE=='Yes') $mail->From = EMAIL_FROM;
    change to:
    Code:
          // if mailserver requires that all outgoing mail must go "from" an email address matching domain on server, set it to store address
          if (EMAIL_SEND_MUST_BE_STORE=='Yes') $mail->From = EMAIL_FROM;
    
          if (EMAIL_TRANSPORT=='sendmail-f' || EMAIL_SEND_MUST_BE_STORE=='Yes') {
            $mail->Sender = EMAIL_FROM;
          }
    This is fixed in the next release.
    .

    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.

 

 

Similar Threads

  1. Contact Us not sending Email
    By Mamasbows in forum General Questions
    Replies: 10
    Last Post: 3 Apr 2014, 05:03 PM
  2. Contact us not sending an email.
    By Myjewels in forum General Questions
    Replies: 3
    Last Post: 4 Aug 2007, 10:04 PM
  3. contact us/not sending email
    By east coast in forum General Questions
    Replies: 14
    Last Post: 17 Oct 2006, 05:15 PM
  4. Contact Us, not sending email
    By godspeed27 in forum General Questions
    Replies: 8
    Last Post: 15 Jul 2006, 10:15 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR