Getting the content of a webform emailed to you?

Discussion in 'Web Design and Development' started by Macman1993, Jun 11, 2009.

  1. Macman1993 macrumors 6502

    Macman1993

    Joined:
    Nov 23, 2007
    #1
    Hey guys I am looking to have a webform on a website that will email you whatever a user inputs to it (text only). I have seen one thing called formmail but I couldn't make sense of it due to knowing nothing about perl. Does anyone know of a good way to do this? I would really appreciate any help from you guys.
     
  2. TodVader macrumors 6502a

    TodVader

    Joined:
    Sep 27, 2005
    Location:
    Quebec, Canada
    #2
    You could combine PHP's mail() function with the results from the form using $_POST variables.

    It could look something like this:

    $name=someValidatingFunction($_POST['name']);
    $to='youremailadress@domain.com';
    $subject='subject';
    $message='name :'.$name.'blabla etc....';
    mail($to,$subject,$message);
     
  3. xrp123 macrumors newbie

    Joined:
    Sep 22, 2008
    #3
    try this

    funny thing is ran into the same problem recently...

    Most of the sites I've made had the form mail feature as part of the hosting package... this made it easy to create one and insert into your site. So first thing I would check is if your web hosting provider includes it in your package or cpanel.

    If not, I found a pretty good workaround that, so far, seems work great and is reliable thus far - www.emailmeform.com (use the free service - up to 5 forms - need to include a link back)

    hope that helps!
     

Share This Page