Guest Posted July 27, 2008 Posted July 27, 2008 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)
germ Posted July 27, 2008 Posted July 27, 2008 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 >
germ Posted July 27, 2008 Posted July 27, 2008 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 >
Guest Posted July 27, 2008 Posted July 27, 2008 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!
germ Posted July 27, 2008 Posted July 27, 2008 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 >
Guest Posted July 28, 2008 Posted July 28, 2008 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?
Guest Posted July 28, 2008 Posted July 28, 2008 Never mind guys, It's working now. Apperently new file failed to uplaod on my ftp <_< Thanks alot!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.