Jump to content


Photo

Sending Formmail.php from free host?


  • Please log in to reply
5 replies to this topic

#1 mamaluke

mamaluke
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 16 May 2006 - 08:31 AM

Is this possible to do?

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....

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 16 May 2006 - 12:34 PM

Do you know if the free hosts support the mail function? They may have it disabled. Put a script on that free host with nothing but the phpinfo function in it (with PHP tags of course) and look through it.

Info: PHP Manual


#3 mamaluke

mamaluke
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 16 May 2006 - 01:35 PM

[!--quoteo(post=374253:date=May 16 2006, 08:34 AM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ May 16 2006, 08:34 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Do you know if the free hosts support the mail function? They may have it disabled. Put a script on that free host with nothing but the phpinfo function in it (with PHP tags of course) and look through it.
[/quote]


Ober, Do you think that you could supply me with a working FORMMAIL tutorial or something. I have gone through so many tutorials on how to make these the last couple days IM going crazy. So many people are telling me different ways on how to do this. Isnt there just a way which works the best? What im doing is gonna have it on a flash site, which I know how to go from flash to the formmail script and I just want it to send the mail to my gmail account. Even if I dont use it on flash can you please show me a simple way to just send a two textinput boxes. Also if im using ripway.com my sites url is [a href=\"http://h1.ripway.com/jimread/formmail.php\" target=\"_blank\"]http://h1.ripway.com/jimread/formmail.php[/a] does this mean in the spot where I have to put my website i have to put [a href=\"http://h1.ripway.com/?\" target=\"_blank\"]http://h1.ripway.com/?[/a]? Im so confused please help me

#4 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 16 May 2006 - 01:43 PM

I'm not going to give you a full example, but it's really quite simple. If you want an example of how to setup a HTML form, you can use my personal site as an example: [a href=\"http://www.whproductions.com/index.php?req=contact\" target=\"_blank\"]http://www.whproductions.com/index.php?req=contact[/a]

Just view the source of the page. As far as the processing page, it's nothing more than following the mail() function example from the PHP manual. You'll find a link to the manual in my sig.

Info: PHP Manual


#5 mamaluke

mamaluke
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 16 May 2006 - 01:54 PM

I know how to work all the html part of it and setup the form im having problems with the .PHP part there are so many different PHP scripts for this and I dont know what one works

#6 mamaluke

mamaluke
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 16 May 2006 - 09:07 PM

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


// for ultimate security, use this instead of using the form
$recipient = "example@example.com"; // example@example.com

// bcc emails (separate multiples with commas (,))
$bcc = "";

// referers.. domains/ips that you will allow forms to
// reside on.
$referers = array ('example.com','www.example.com','xxx.xxx.xxx.xxx');

Ok and in my HTML I have this code


<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.thankyoup...kyoupage.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>

Everything works fine it redirects me but I never get an email with the results? Any suggestions on what to change

(edited by kenrbnsn to remove real email addresses and domains)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users