Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

contact_us.php does not send email


doon1947

Recommended Posts

Posted

Hi,

 

2.2 ms2

FreeBSD 7.3-RELEASE-p2

PHP Version 5.2.17

 

Contact_us form fails to deliver email.

Tried changing the "to address" to several outside email addresses, no change

Tried changing the "from address" to outside email addresses, and address linked to store domain no change

 

Have "STORE_OWNER_EMAIL_ADDRESS set to "John Smith <john@@smith.com>"

 

Emailed my hosting company, pair.com asking for help. They checked the email log files and tell me the program is attempting to send email to "john@@smith.com>" NOTE THE EXTRA "greater than sign ">" at the end of the email address. As a result email delivery fails.

 

As a test I go to Admin configuration and set "STORE_OWNER_EMAIL_ADDRESS to "John Smith <john@@smith.com" NOTE I HAVE REMOVED THE "greater than sign ">" at the end of the email address.

 

When I now test the contact form it delivers the email to john@@smith.com.

 

Where is OSC picking up this extra ">" or failing to strip it out. I don't understand the emailing process well enough to know.

 

Help please.

Al.

Posted

Have not been able to discover why "STORE_OWNER_EMAIL_ADDRESS to" is picked up as "john@smith.com>" with the sign ">" at the end of the email address. However I have managed to get around the problem by hard coding the email address.

 

In contact_us.php

line 23

 

if (tep_validate_email($email_address)) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

 

change to

 

if (tep_validate_email($email_address)) {

tep_mail(STORE_OWNER, 'john@@smith.com', EMAIL_SUBJECT, $enquiry, $name, $email_address);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...