If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / No One Receiving Mail

No One Receiving Mail

Locked

Started by ann0314 on 2 Sep 2006, 8:45 AM · Views: 12,120

Results 1 to 20 of 59
This thread is locked. New replies are disabled.
2 Sep 2006, 8:45 AM
#1
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

No One Receiving Mail

For the past month I have had this odd problem where no matter whether its a gift certificate, newsletter, or anything else sent from the admin panel...it shows that it was sent (in the case of the newsletter I get all the checkmarks etc) but the recipient never receives it. The only e-mail from my website that customers DO receive is if I send it via the actual store (as a customer). These features had been working and I haven't modified or changed anything right before it started...and today i finally did all the updates to 1.3.0.2 from 1.3.0.1 in the hopes maybe it would fix it and it hasn't. Does anyone know what could possibly be causing this issue as I used the mailing feature and am really bummed it stopped working and am clueless as to why it works if I log into a regular account in the store and send a gift cert from there as if I was a customer but wont let me in the admin :'(

Thanks for any help!

ann :O)

3 Sep 2006, 2:27 AM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: No One Receiving Mail

  • What are your email configuration settings from your admin - > configuration - > email options ? (Without username & password account).

  • Have you tried sending a message from your zc_install/techsupp.php file as well ? Does it return the same results as you describe ?

  • Have you checked your SPAM filter in case one of your administrative email might of been added unintentionally into the list ?

3 Sep 2006, 2:55 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

ann0314:

For the past month I have had this odd problem ...

...These features had been working and I haven't modified or changed anything right before it started
What is your host telling you about this? What did they change a month ago?

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

7 Sep 2006, 8:08 PM
#4
ctjared avatar

ctjared

New Zenner

Join Date:
Sep 2006
Posts:
6
Plugin Contributions:
0

Re: No One Receiving Mail

I too am having the same kind of problem. No changes to the site/configs have been made in 2 years and I've just recently noticed it is no longer sending out order confirmations (or any emails for that matter). No changes have been made at the host (I am the host). I've tried the Send Email and Newsletter functions in the Admin as well as the Tell A Friend -- none send any emails.
In an attempt to fix, I upgraded my 2 year old version of ZenCart to todays latest 1.3.5 and that didn't make a difference - even after changing the email options to SMTP Auth (was previously just SMTP).
I've verified that I can send PHP email from the server using my own PHP script as well as successfully getting an email using the techsupp.php file.
So, I know that it is something wrong in the email functionality of Zencart but just need some direction on where to look...
Any help is greatly appreciated...

Windows 2003/IIS6
Zen Cart v1.3.5/v1.3.0.2

Thanks!

7 Sep 2006, 8:16 PM
#5
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Re: No One Receiving Mail

I too am still having the issue and I can't find anything at all different ...and my setting have not changed at all.

As for the techsupp thing..I haven't tried that cuz I am not sure what you mean LOL All I know its one day it worked and then poof now it doesn't.

HUGS!

ann :)

7 Sep 2006, 8:38 PM
#6
ctjared avatar

ctjared

New Zenner

Join Date:
Sep 2006
Posts:
6
Plugin Contributions:
0

Re: No One Receiving Mail

Hey Ann. :cool:
The techsupp thing is a troubleshooting page you can run on your Zencart site. It shows server info and let's you test sending an email. It is located in your Zencart files under /zc_install/techsupp.php. Be sure to edit the file first by adding your email address near the top on the '$myemail' line.
Then just run the page in a browser like: http://yoursite.com/zencart/zc_install/techsupp.php

Hope that helps...
:cheers:

7 Sep 2006, 8:42 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

CTJared:

No changes to the site/configs have been made in 2 years and I've just recently noticed it is no longer sending out order confirmations (or any emails for that matter). No changes have been made at the host (I am the host). I've tried the Send Email and Newsletter functions in the Admin as well as the Tell A Friend -- none send any emails.
So, you're saying that:

  • no changes to server or code in 2 years
  • ie: Zen Cart code hasn't changed AT ALL prior to this upgrade
  • and BEFORE upgrading it wasn't working

... if things WERE working, and NO changes were made to any Zen Cart files ... then ... I'm not sure where to start poking in Zen Cart files for answers about why it's broken ...

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

7 Sep 2006, 9:05 PM
#8
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Re: No One Receiving Mail

Well in my case it WAS working but glitchy and then it just quit all together. I did the upgrade to 1.3.2 and thought that might fix it but its acting the same :( and no server changes were made at all....only zen file updates have been done. Although I cant speak for CT only my experience...but all the sudden I just can't send any e-mails out through admin...only through the site itself when I go one and log in as a customer. My question is how does the site send as opposed to how the admin panel sends them? Cuz one wont work for me but the other will so I assume that its how one is set up as opposed to the other?

HUGS!

ann :O)

7 Sep 2006, 9:27 PM
#9
ctjared avatar

ctjared

New Zenner

Join Date:
Sep 2006
Posts:
6
Plugin Contributions:
0

Re: No One Receiving Mail

DrByte:

So, you're saying that:

  • no changes to server or code in 2 years
  • ie: Zen Cart code hasn't changed AT ALL prior to this upgrade
  • and BEFORE upgrading it wasn't working

... if things WERE working, and NO changes were made to any Zen Cart files ... then ... I think the problem isn't in Zen Cart files ...

DrByte,

Yes, I AM saying that no changes have been made to the site code since I first set it up 2 years ago.
And yes, it wasn't working before I upgraded today -- I stated that I upgraded in an attempt to fix this problem and it still exists.
Also, as I previously stated, I can send PHP-based emails from the webserver both with my own scripts as well as through the techsupp.php file.

Simple fact is, currently no email functions work in Zencart. Ann is saying the same thing. Instead of getting defensive/condescending and trying to just brush me off by saying it's not Zencart, I would appreciate some insight into what files/configurations I can look at to try and solve this. I'm a web server administrator and web developer so I have already done MANY different things to try and narrow this down.

Jared
Crystaltech Web Hosting, Inc.

7 Sep 2006, 10:27 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

Sorry ... a rough day, and I've evidently let my frustration show... argh.

Here's how it works:

  1. Admin and Store both use the same infrastructure.
  2. As of v1.3, Zen Cart uses phpMailer for sending mail. Prior to that it was inherited stuff from OsCommerce that met with mediocre success and need a huge facelift. So we switched to the popular phpMailer option.
  3. Wherever an email is sent, it is initiated via zen_mail() which is in the /includes/functions/functions_email.php
    This builds the email object according to all your settings in Admin->Config->Email options
  • transport method smtp, sendmail, sendmail-f, smtpauth, etc
  • CR/LF settings
  • charset
  • mime type
  • sent to, sendfrom
    ... everything from that section, really.
    Then it hands the email off to phpMailer to send it.
  1. If the transport is a sendmail function, then the server's PHP configuration takes over entirely, using whatever PHP has been configured to use.
  2. If the transport is SMTP/SMPTAUTH, then direct communication with the specified mailserver is initiated.
  3. If email archiving is enabled, the email is stored to the archive table.
    Done.
    That's it.

If you enable archiving and the emails get saved, then Zen Cart has not failed in handing off the emails to the mailserver.
If the email doesn't get to its destination, then usually the problem is a misconfiguration of the MTA or the host is blacklisted somewhere, or ports are blocked or ... well ... the probable causes are for a system administrator to understand.

So ... troubleshooting:
a. change transport methods (ask your host what's best ... they should know how they've configured your server)
b. change send-from email addresses
c. change send-to email addresses ... DO NOT TEST USING FREE MAIL SERVICES ... your mail is often dropped to a junkmail spot.
d. check your junkmail settings
e. research whether your mailserver or hosting company is blacklisted
f. check whether the email archives are showing the sent messages (there's an archive reader in the Downloads area under Admin Tools)
g. try testing with MIME HTML emails OFF, since many spam filters block HTML-formatted messages before they even get out the gate.
h. check the mailserver logs ... is it complaining about something, either inbound or outbound?
i. for kicks, get the webserver/mailserver rebooted and dump all the logs ... just maybe something's runamuck in there ...

(Hope that's less condescending-sounding ... )

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

7 Sep 2006, 11:12 PM
#11
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Re: No One Receiving Mail

We all have bad days...no worries :O)

I will try the stuff there you suggested and thanks for taking the time to type all that out. I dont have as much understanding as the other gentleman seems to so I need all the help i can get LOL

HUGE THANKS to you both..hopefully I can get it fixed cuz it was a feature I used alot :(

HUGS!

ann :O)

7 Sep 2006, 11:14 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

ann0314:

My question is how does the site send as opposed to how the admin panel sends them? Cuz one wont work for me but the other will so I assume that its how one is set up as opposed to the other?
Ann,
They both use the same infrastructure for sending.
However, experience shows that playing with the "Email Transport Method" settings usually brings relief to this situation, or at least points out something that the host has changed with respect to your currently-used transport method.
If you test out SMTP options, be sure to fill in the SMTP info at the bottom of the Email Options screen. You may have to ask your host to give you the right info for those fields.

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

8 Sep 2006, 3:28 AM
#13
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Re: No One Receiving Mail

If they are both using the same infastructure how come one works fine and one doesn't? Thats what is so perplexing to me ATM LOL If I log into my store and send a gift certificate as a customer to someone it works perfectly but if i log into the admin and do it...no ones recieves anything...it really is boggling my mind completely LOL ...sorry just wanted to be sure I was making sense as sometimes I dont explain things very well and truely thank you fortrying to help because it was a huge swayer for me chosing Zen over OS...the ability to do the certificates etc and the newsletter and I am so bummed I can't. I'll try checking with my hosting co. but I swear half the time they dont know what they are talking about so it usually isnt much help LOL

HUGS!!!

8 Sep 2006, 6:45 PM
#14
ctjared avatar

ctjared

New Zenner

Join Date:
Sep 2006
Posts:
6
Plugin Contributions:
0

Re: No One Receiving Mail

DrByte,

Hey, no problem man. I know how those days in support can get! Thanks for all the great info you provided.
Unfortunately, this thing is still kicking my butt today. Uggh..

So, I have tried all of the following to try and get this thing working...

  • Changed the transport method back and forth between SMTP and SMTP Auth (we don't have Sendmail unfortunately).
  • Used different mail servers and users under the SMTP Auth settings (all mail servers used have the web server whitelisted)
  • Tried sending to different addresses on different servers at different hosts.
  • Replaced the functions_email.php file with a re-downloaded copy.
  • Tried text-only and html.
  • Checked the email_archive table in the database (the emails are, in fact, getting stored there).
  • Checked the mail logs -- found no entries of any email communication between the servers. Shouldn't be any network/port/blacklist/etc issues between the servers as my separate emailing scripts still work... hmmm

Is there any other file I could try replacing besides 'functions_email.php' that might make a difference? (Doubting it cause my upgrade replaced most files already).
If the email part of the function has a problem (depends on the type of course), will it throw an error or just continue processing? I set the 'E-Mail Friendly-Errors' to false but no PHP errors displayed. I thought I saw a debugging option but can't find it now...
Is there a stand-alone email test page I could try that uses the same functionalities?
I'll keep playing with it but I'm starting to bang my head on the desk....
If you think of anything else, I'd really appreciate it.. Thanks again for your help!

Good luck on yours too Ann!
:cheers:

8 Sep 2006, 6:55 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

In 1.3.5 a few things were tweaked to make better use of functions that had been accidentally orphaned in 1.3.0 when replacing the mailing system infrastructure.

One of them was done incorrectly. If you're using 1.3.0.x you won't even have this line, but you might grab the 1.3.5 version, fix the line, and use it on your 1.3.0.x site as another test.

http://www.zen-cart.com/forum/showthread.php?p=258675#post258675

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

8 Sep 2006, 7:36 PM
#16
ctjared avatar

ctjared

New Zenner

Join Date:
Sep 2006
Posts:
6
Plugin Contributions:
0

Re: No One Receiving Mail

DrByte:

In 1.3.5 a few things were tweaked to make better use of functions that had been accidentally orphaned in 1.3.0 when replacing the mailing system infrastructure.

One of them was done incorrectly. If you're using 1.3.0.x you won't even have this line, but you might grab the 1.3.5 version, fix the line, and use it on your 1.3.0.x site as another test.

http://www.zen-cart.com/forum/showthread.php?p=258675#post258675

THAT WAS IT! The above fix worked! Sorry for not finding that post earlier. Thanks for your help DrByte! If you were here, I'd buy ya a beer!

Cheers!

8 Sep 2006, 7:42 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

Glad it's resolved.

Still don't understand the sudden break in email activity on your older version ... but hopefully that's not a major issue now...

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

8 Sep 2006, 7:50 PM
#18
ann0314 avatar

ann0314

New Zenner

Join Date:
May 2006
Location:
Ohio
Posts:
51
Plugin Contributions:
0

Re: No One Receiving Mail

I'm not using smtp so that isnt my issue...but I havent gotten the chance yet to look into the other stuff..is it ok once I do have time to trouble shoot better to post in this thread if I am still having the issue?? Hopefully one of the things you suggested will solve the issue but I am inbetween 1000 projects so I have to wait a few days to try :O)

HUGS!

ann :O)

8 Sep 2006, 7:53 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No One Receiving Mail

sure - post back here when you have a chance to investigate !

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

8 Sep 2006, 8:21 PM
#20
leaddogspock avatar

leaddogspock

New Zenner

Join Date:
Jul 2006
Posts:
48
Plugin Contributions:
0

Re: No One Receiving Mail

DrByte:

f. check whether the email archives are showing the sent messages (there's an archive reader in the Downloads area under Admin Tools)
Can you explain a bit clearer where the archive reader is? I think Im looking in the right place but not finding anything. Want to make sure its the same location before I post another question...