Jump to content



- - - - -

Contact us is not working


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1   kamaljeet

kamaljeet
  • Members
  • 5 posts

Posted 13 February 2012 - 01:45 AM

I'm using oscommerce-2.3.1 and recently opened account with hosting company but to my amazement its contact us form is not working means I'm not receiving emails in my in-box

Please help
Thanks

#2   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,083 posts

Posted 13 February 2012 - 03:34 AM

@kamaljeet,

Ensure you have your email entered properly in the admin area under MY STORE >> send extra emails to:



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#3   kamaljeet

kamaljeet
  • Members
  • 5 posts

Posted 13 February 2012 - 05:36 PM

View PostDunWeb, on 13 February 2012 - 03:34 AM, said:

@kamaljeet,

Ensure you have your email entered properly in the admin area under MY STORE >> send extra emails to:



Chris




Hi Chris:
Thanks for your reply. In fact I stumbled upon an Enhanced_contact_Us_ V1.2.  Well,  I tested it on webmail it is now seems to be working fine
I downloaded this version from oscommerce site If you need it I will send it as an attachment

Thanks you

#4   asj1

asj1
  • Members
  • 1 posts

Posted 03 October 2012 - 11:06 AM

For anyone with similar symptoms - i.e. site emails working except contact_us Had to look for general mail help - found http://php.about.com/od/advancedphp/ss/mail_4.htm Second item is are you sending to a legal address for security and antispam reasons some hosts don't allow your website to send emails to the same domain name as the site i.e. if your website is "http://www./myshop.com" and you try to send your contact email to [email=""]enquiries@myshoplive.com[/email] The other emails e.g. order confirmation etc work as they are outward bound. Best fix is to ask hosting company to allow you to email to your site email address, or change email used to address not on your site domain. Simple test/temporary fix - in contact_us.php where you have tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); change STORE_OWNER_EMAIL_ADDRESS to [email=""]'anything@notmysite.com'[/email] Or change the STORE_OWNER_EMAIL_ADDRESS to an address that isnt on the store domain.

Edited by asj1, 03 October 2012 - 11:18 AM.


#5   AAWISDOM

AAWISDOM
  • Members
  • 5 posts

Posted 11 October 2012 - 07:31 AM

My server is at yahoo webhosting. I found that this ridiculous tep_mail function the oscommerce created has a big flaw.

In the files:

tell_a_friend.php

tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address);

The last argument $from_email_address must be my own domain's email or it won't work.



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

The last argument $email_address must be my own domain's email or it won't work.

To fix that just insert a line like

$email_address = 'youremail@yourdomain.com';

Right before those tep_mail( ) functions.

You will lose information about where the email is coming from. To fix that, change the

$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

to

$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry'])."\n".' reply to email: '.tep_db_prepare_input($HTTP_POST_VARS['email']);

This way you will see in your message in body from the customer and where to reply this email to.

If anyone is confused about what I am saying and want me to fix it for you, please contact mcgrath_ch@aawisdom.com or go to www.aawisdom.com. o:)

#6   marc53

marc53
  • Members
  • 5 posts

Posted 11 February 2013 - 03:38 PM

Hy People
My problem is, i can not receive e-mails sending by Contact us using gmail adress. If I us a other then gmail it works. I installed a new shop to try and there it is working. Also I made the check with the test.php and there it is also working. I have a ocommerce 2.3.1 shop. Any help?