Loading

Oscommerce Contact form issues




Concatenating the email address to the body before it gets sent.

If you want to give that a try, here’s what you need to change in your “contact_us.php” file:

Find:

        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)) {
          $enquiry = ‘From: ‘ . $name . “\n” . ‘Email Address: ‘ . $email_address . “\n” . $enquiry;
          tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

Dont forget to take backup okie :)

You might want to read these as well

Loading...







Oscommerce Contact form issues

Joshu is the Founder of the OrangeCopper Webmaster's Community, He had been designing & developing web applications as a freelancer in this field for the past 9 years. OC was born in 2002 December and since 2004 Joshu had been Blogging on the Web about what he learned the Hard way, So that you could learn it the Easy Way. Follow OrangeCopper on Twitter and you would be Auto-Followed.


blog comments powered by Disqus