Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Email from my contact form works but not from the admin send email page

Email from my contact form works but not from the admin send email page

Locked
This thread is locked. New replies are disabled.
14 Aug 2009, 5:47 PM
#1
jpauthement avatar

jpauthement

New Zenner

Join Date:
Oct 2007
Posts:
12
Plugin Contributions:
0

Post #1 by jpauthement

I'm running into a weird problem. Right now I have zencart running a website. This company has their own exchange server hosted at their office. I have my zen cart configured to use smtpauth. I have all the correct account settings (mail server, username, password and port) Email sends correctly from the contact us form and when someone places an order. But when I try to send out the newsletter or send email using the "Send Mail" form in the admin section. I get an error saying the recipient doesnt exist.

Now for testing purposes I tried the "PHP" email option. This works perfect from the admin section to an email address that isn't on the same domain, but when I try to send an email from the contact form with these settings I get an error.

Is there a difference between how the contact form sends mail vs the admin section?

14 Aug 2009, 7:18 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

jpauthement:

Is there a difference between how the contact form sends mail vs the admin section?
They both use the same engine for sending the emails.

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

14 Aug 2009, 9:11 PM
#3
jpauthement avatar

jpauthement

New Zenner

Join Date:
Oct 2007
Posts:
12
Plugin Contributions:
0

Post #3 by jpauthement

Well that doesn't help me with anything. but thanks for the response :)

15 Aug 2009, 2:38 AM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

It's most likely a problem with the configuration of the mailserver. Maybe it doesn't like the sender name coming from your store, or you've not enabled the "Send as known sender" option.

I would hope you've already reviewed the Email Troubleshooting tips that I've posted links to all over the forum: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems

If you really want to find out exactly what the server is saying when it rejects the email, edit your /includes/functions/functions_email.php file. Near the top of the file is a define for EMAIL_SYSTEM_DEBUG. Set to 5 instead of 0. Then try sending an email. Then work on figuring out the problem based on the responses received.

WARNING: With the debug option set to other than 0, it'll halt execution when the email is sent, so DON'T DO IT when customers could be using your site.

I always cringe when I have to tell someone to edit that file ... because 90% of the time they butcher the file and then it just turns into a nightmare of telling them how to find the original file and upload it back to their server again ... and then they're still stuck because they never did get the debug option turned on ... etc. So, while it often does no good, I'll just add a reminder to make a backup of the file before editing.

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