Sending formmail.php from a free web host?
Moderator: General Moderators
Sending formmail.php from a free web host?
Is it possible to send a formmail script form RIPWAY.net or 110MB.com because I know they support free php, but every time I try to use this it wont work.
I know everything is coded right because when I used this formmail script on the website I got it off of (they have it so you can use it to test it) It works fine....
I know everything is coded right because when I used this formmail script on the website I got it off of (they have it so you can use it to test it) It works fine....
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
ok
Ok dw11 I appreciate the help but I tryed looking through those scripts and tryed to use it to work with me but I got lost. Basically im a NOOB lol, I have very little clue on what I am doing All I know is in the last 4 days I have gone through every single tutorial on how to make a formmail. I think I have the part on how to put it thourgh Flash and PHP the only problem Im having now is that im not getting the mails? Did anyone ever use a free php host to use a formmail and if so can you please write me a quick tutorial on how to do this. Because I am honestly going crazy!
I have seen thousands of different types of formmail scripts. I have seen thousands of free php host. But for some reason I just cant get the emails
and yes im using the (mail) code or whatever in PHP. Do you think you could just give me a quick explaination on how to use it though? Thanks alot.
I have seen thousands of different types of formmail scripts. I have seen thousands of free php host. But for some reason I just cant get the emails
Ok, All I need to see is a simple code of how to send a two inputbox form to my GMAIL inbox.
Oh yeah, and isnt there a spot where you need to put your domain as the refferal url or something? So if I was using ripway.com my url usually comes out to something like
http://h1.ripway.com/jimread/formmail.php
since that h1. gets put in there instead of putting http://www.ripway.com would i put http://h1.ripway.com? I am so lost
Oh yeah, and isnt there a spot where you need to put your domain as the refferal url or something? So if I was using ripway.com my url usually comes out to something like
http://h1.ripway.com/jimread/formmail.php
since that h1. gets put in there instead of putting http://www.ripway.com would i put http://h1.ripway.com? I am so lost
Ok
Ok here is the code I am using.
I am using the Jack's Formmail Script since that is apperently the script which is most popular.
Heres the only code i changed in the PHP script
Ok and in my HTML I have this code
Everything works fine it redirects me but I never get an email with the results? Any suggestions on what to change
I am using the Jack's Formmail Script since that is apperently the script which is most popular.
Heres the only code i changed in the PHP script
Code: Select all
// for ultimate security, use this instead of using the form
$recipient = "jimsemail@gmail.com"; // jimsemail@gmail.com
// bcc emails (separate multiples with commas (,))
$bcc = "";
// referers.. domains/ips that you will allow forms to
// reside on.
$referers = array ('ripway.com','www.ripway.com','192.168.0.5');Ok and in my HTML I have this code
Code: Select all
<html> <head> <title>Form Mail</title> </head>
<body bgcolor="#FFFFFF" text="#000000"> <form name="form1" method="post" action="formmail.php">
<input type=hidden name="subject" value="Form Mail Results">
<input type=hidden name="required" value="fullname,email">
<input type=hidden name="redirect" value="http://www.thankyoupage.com"">
Name<br><input type=text name="fullname"><br>
Email<br> <input type=text name="email"><br>
<br> <input type="submit" name="Submit" value="Submit">
</form>
</body> </html>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Nothing in the code you posted would suggest that an email would be sent. Have you looked at the PHP manual for mail()? If the mail function is disabled for your server then mail() won't work. Of course, I would suggest you look at d11's swiftmailer and try using that, seeing as it doesn't rely on mail() to do what you want. 
I took my redirection script out to see if there were any errors and im getting this
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for jimsemail@gmail.com in \\192.168.1.16\webfiles\files\2005-12\566918\formmail.php on line 237
Thank you for your submission
This form is powered by Jack's Formmail.php 5.0!
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for jimsemail@gmail.com in \\192.168.1.16\webfiles\files\2005-12\566918\formmail.php on line 237
Thank you for your submission
This form is powered by Jack's Formmail.php 5.0!
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
It looks like you're on a windows server and using SMTP for mail() in php.ini. Either that SMTP server needs a username and password to send mail outside of it's own domain or it doesn't allow hosts outside of it's domain to send mail out at all. If it's authentication you need then Swift should manage that... (no plug intended).mamaluke wrote:I took my redirection script out to see if there were any errors and im getting this
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for jimsemail@gmail.com in \\192.168.1.16\webfiles\files\2005-12\566918\formmail.php on line 237
Thank you for your submission
This form is powered by Jack's Formmail.php 5.0!