Zen Cart Logo
Forums / General Questions / Email Stopped Working! Please Help!

Email Stopped Working! Please Help!

Views: 2,719

Results 21 to 30 of 30
1 Mar 2011, 7:39 PM
#21
drbyte avatar

drbyte

Sensei

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

Email Stopped Working! Please Help!

Try this temporary debug measure:

Create a new file: /includes/extra_configures/email_debugging.php
Contents of the file is just this line: ```

<?php define('EMAIL_SYSTEM_DEBUG','5'); ``` Then try sending a contact-us message. It should display a barrage of debug info on-screen when it tries to send. I'll need to see that info.

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

1 Mar 2011, 10:24 PM
#22
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Email Stopped Working! Please Help!

DrByte:

Interesting. It just worked fine for me.

Yeah, seems like it works, and gives a successful message, but the mail is never received!

DrByte:

Try this temporary debug measure:

Create a new file: /includes/extra_configures/email_debugging.php
Contents of the file is just this line: ```

<?php define('EMAIL_SYSTEM_DEBUG','5'); ``` > > Then try sending a contact-us message. > It should display a barrage of debug info on-screen when it tries to send. I'll need to see that info. Thanks DrByte, I'll give that a try now, and get you the info right after! ******************************** I did actually get it to work, but not the way I wanted. I created an email through my domain, and used that for the ZC setup. This works fine. With the Contact-us, the customer will never know which email is used, so only left mail sent through the admin. ZC says that the "from" email can be over-ridden from the mail module, but that doesn't work. Still arrives with the new email address. To avoid having to send a new email to all customers, I decided to just "relay" to gmail as well! ***************************************** Now with that said, I will try your debug idea, DrByte, and report the results! Would be nice to fix the original problem! Thanks for your continued help!
1 Mar 2011, 10:54 PM
#23
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Email Stopped Working! Please Help!

Well, DrByte, that totally didn't work! In FireFox, I just get a blank page after sending. In IE, it gives me a blank page with a 500 error!

If I uploaded the file before going to the contact page, the site wouldn't even load! Tried navigating to the contact page and uploading the file just before send, but result was a blank page anyway! :(

2 Mar 2011, 4:47 AM
#24
drbyte avatar

drbyte

Sensei

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

Re: Email Stopped Working! Please Help!

I don't understand why that would give a blank screen, unless you copy-and-pasted and it somehow copied some extra characters, visible or not.

.
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 Mar 2011, 5:18 AM
#25
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Email Stopped Working! Please Help!

DrByte:

I don't understand why that would give a blank screen, unless you copy-and-pasted and it somehow copied some extra characters, visible or not.

Ok, not sure what's wrong, but first copied your code directly into a new file and put open & close php tags around it. That's probably what gave me the blank screen!

Now, I tried pasting your code and just added a closing php tag! Nothing happens! Looks like mail is sent, and get success screen, but no mail delivered!

Then tried your code exactly with nothing else, and same as above! Nothing happens!

Confused....:unsure:

2 Mar 2011, 5:30 AM
#26
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Email Stopped Working! Please Help!

UPDATE:
Now really strange... I replaced the ZC setup data with the new email and setup details and figured I would test to make sure it still works. However, I forgot to remove the debugging script, and... Got the data like you said!

Only issue is that it is working with the new email!

Not sure I should post it here, so going to send you a PM, DrByte!

2 Mar 2011, 9:09 AM
#27
drbyte avatar

drbyte

Sensei

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

Re: Email Stopped Working! Please Help!

The details you posted show the email correspondence with your GD server.
It should do the same thing with your GA server if you change the settings to that.

.
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 Mar 2011, 9:19 AM
#28
drbyte avatar

drbyte

Sensei

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

Re: Email Stopped Working! Please Help!

Also note that when you set your port to 465 or set your mailserver name to smtp.gmail.com, Zen Cart will attempt to connect to gmail over SSL. If your hosting company has busted their server such that it can't connect using SSL (perhaps a broken or expired or incorrectly configured certificate at the server level?) then the SSL connection to the gmail server farm will fail.

.
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 Mar 2011, 12:41 PM
#29
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Email Stopped Working! Please Help!

DrByte:

Also note that when you set your port to 465 or set your mailserver name to smtp.gmail.com, Zen Cart will attempt to connect to gmail over SSL. If your hosting company has busted their server such that it can't connect using SSL (perhaps a broken or expired or incorrectly configured certificate at the server level?) then the SSL connection to the gmail server farm will fail.

Thanks DrByte, that makes sense. will give it another try today This time I'll try leaving the port and other settings as they are, and just changing to the gmail address. As far as I know, gmail has never been able to connect without the ssl port, but I'll play around to see if I can get the data!

I appreciate your continued help, DrByte! :bigups:

2 Mar 2011, 7:09 PM
#30
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Email Stopped Working! Please Help!

Well DrByte, all attempts to run the debug fail when using the gmail address. either I get error, failed to connect, or it appears to send and nothing happens.

Tried every combination setting I could think of, and the only way the debug runs is when I have the domain mail settings in there!

Interesting thing I heard... Talking to my neighbor, and she said that she heard on the news that Google was having some "mail" problems! Because of the fact that it was working just fine, and all of a sudden stopped, guess it is very possible that gmail itself is the cause!

Maybe it's good that I setup the domain mail, this way the copies sent to gmail are just "a backup"!