Email PHP Issue

jshollis

New Member
Messages
3
Reaction score
0
Points
0
Hello,

My ISP apparently does not support PHP so I had a guy create the following files (config.php, contact.css, sendform.php, and contactusnow.htm)

He loaded these files on my ISP personal site and within the contactusnow.htm file had the following:

<formmethod="post" name=form onsubmit="return validateSend()" action="http://www.mp3dots.com/sendform.php" enctype="multipart/form-data">

I tried to change it by altering only the "action=" to "http://xxxxxxx.x10hosting.com/sendform.php

However, when I changed it I am no longer getting email messages.

I must not have made a change somwhere else.

Can anyone assist?
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Sure, but the ISP has nothing to do with the support of PHP. It is the provider of your internet (comcast, bellsouth, ect) and stands for Internet Service Provider. I think you meant your host.

1) You need a space between form and method.
2) That enctype is only used for sending uploaded files. Remove it and that script should work.

Code:
<form method="post" name=form onsubmit="return validateSend()" action="http://xxxxxxx.x10hosting.com/sendform.php">

Also, this is a programming help issue. Technically, yes it is a third party script, but this thread is mostly reserved for wordpress and SMF type scripts :)
 
Last edited:

jshollis

New Member
Messages
3
Reaction score
0
Points
0
The code had a space in the place indicated did it not? I removed the part you mentioned but the mail is not arriving.

On the other hand, at no time am I recieving error messages either when the send but is clicked. Also at X10 no entries are shown in the error logs.

Any ideas?
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
You have to post a link, and the PHP code so I can see whats wrong. I just fixed what you posted.

btw, name=form should be in double quotes name="form".

First thing is to verify that the form is going to the right location. That will tell you is your HTML and JavaScript is correct. Then, we can get to the PHP.
 

jshollis

New Member
Messages
3
Reaction score
0
Points
0
I sent the code via PM. What you should know is that this form worked flawlessly before I made one change. In the file contacyjerry.html all I did was change mp3dots.com to the X10 hosting.com address.

Apart from that nothing was changed so I am not sure what broke the chain.
 

adamfek

New Member
Messages
8
Reaction score
0
Points
0
i found that using gmail as the sender in the mail function doesn't deliver anymore as soon as i switched it to another one it worked.
 

jaygreenly

New Member
Messages
21
Reaction score
0
Points
0
Here's a simple mail script.. http://jaygreenly.com/phpmymaileasy.rar

Step 1:
In your html page contaning your form, go to the beginning of the form code paste the code below... Edit the redirect and subject values to your own.

<form id="Contact Form" name="Contact Form" method="post" action="phpmyformmail.php">
<input type=hidden name="redirect" value="http://www.yourdomain.com/thanks.html">
<input name="Subject" type="hidden" value="New Email From yourdomain.com"/>



Step 2:
open the script and edit line 37: Edit the recipient and redirect values to your own.

if ((!$recipient = "you@yourdomain.com") && (!$redirect = "http://www.yourdomain.com/thanks.html") && (!$subject == "") && (!$recipient_domain == "$allowed_domain")



Step 3:
upload the file to the root directory of your domain. Give it Permissions 755



Step 4:
Create a thanks.html page if you wish the script to redirect the user after submitting a form.


This script currently works on free x10 hosting accounts..
 
Last edited:
Top