Email form

Status
Not open for further replies.

majorkmu

New Member
Messages
6
Reaction score
0
Points
1
So I created a contact us page for my site (www.majorkmusic.x10host.com) using html script on the contact page and using a php page to submit the form.. I tested the form by entering in some test information (first name, last name, alternate email, phone, and "test" in the comments section) and hit submit. The form works.. but the email was never received by my Gmail account I used in my script. Any thoughts??
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
You've probably run into the spam filter - it doesn't let anything that's only got "test" in the body (or "testing", or no body) through. You'll need to test with something that looks like real, non-spam content. (The failures are silently discarded; that keeps self-training scripts from figuring out a way around the filter.)
 

majorkmu

New Member
Messages
6
Reaction score
0
Points
1
Ah. That sounds about right. Should have known that. I'll give it a real test run and have a friend post.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

It looks like our mail server is seeing your emails, but they are being dropped automatically. If you are setting a "From" header in your script, please ensure the email address you are specifying exists on your hosting account. The "From" header cannot be set to an email address the user provides to your script. Instead, please use the Reply-To header (or specify the user's email in the message somewhere).

This is to prevent abusive users sending phishing emails through our mail server. ;)

Thread moved to Free Hosting.

Thank you,
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

You could fix this by completely removing the "From" header. To do this, please replace this code:
PHP:
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
with this code:
PHP:
$headers = 'Reply-To: '.$email_from."\r\n" .


Thank you,
 
Status
Not open for further replies.
Top