Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contact_us form


Guest

Recommended Posts

First of all, I'm using Xwayz template, don't think that it matters, but just FYI. I have 1 issue I just cannot fix. I've contacted my hosting about this issue. They couldn't help I guess.

 

Here's what's happening. My hosting can only send emails via my own emails that are regestered on hosting. Lets say, I have an email on my hosting which is [email protected]. Email will arrive to me ONLY if in email field, whenever i'm using contact_us.php, I'll input [email protected]. There's no other way to do so. What I want to do is: make every email coming from [email protected], but make it invisible and make email input field the way, so a user can just input email there and it'll come to me like a plain text along with the inquiry. So whenever I receive the email, it'll be like this:

 

From: Name [[email protected]]

Subject: Inquiry from Mywebsite

 

---------------------------------------------------

[email protected] (User's email he had input)

Hi my name is "Name", and I like you very much!

-----------------------------------------------------

That way I can receive that email, since it's been sent from [email protected] and I can reply to that person, because i know his email - [email protected]

 

 

I'll even pay to whoever can help, it's just really frustrating, and I need my contact_us form working immediately! Without that form my website doesn't have a right to exist :(

I'll tip well whoever will help me! (PayPal)

Link to comment
Share on other sites

I think this is what you want:

 

Click Me

 

You might have to change the one line of code this instead:

 

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

That makes the mail "from you" and "to you" but has the persons name and email addy who is trying to contact you embedded in the email body.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

And just for the record, I'm a non-profit forum worker.

 

"Tips" aren't necessary nor accepted, but it is a very nice gesture on your part.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

That's 1 of the things, but I still cannot receive emails, unless in "Your e-mail" field I input my email address. So what I need to do is make the form secretly send email from my own email. Thanks for your help so far!

Link to comment
Share on other sites

	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, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

If that don't work - I'm stumped...

:huh:

 

How can mail "from you", "to you" not work?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

That's 1 of the things, but I still cannot receive emails, unless in "Your e-mail" field I input my email address. So what I need to do is make the form secretly send email from my own email. Thanks for your help so far!

Do you mean that it fails the email vaildation test if you do not put an email address in?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...