Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Error submit email form

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28923
    hotrun
    Member

    Hi to all!!

    I am trying to create a form for a HTML/CSS site … I have taken the codes from a free source, but when I push the ‘Submit’ button I see this code on a white page as result:

    Code:
    “; exit; } // prepare email body text $Body = “”; $Body .= “Name: “; $Body .= $Name; $Body .= “n”; $Body .= “Tel: “; $Body .= $Tel; $Body .= “n”; $Body .= “Email: “; $Body .= $Email; $Body .= “n”; $Body .= “Message: “; $Body .= $Message; $Body .= “n”; // send email $success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>“); // redirect to success page if ($success){ print “”; } else{ print “”; } ?>

    No email arrives to my email box… any solution please???

    Many thx to all!!!

    #75071
    Rob MacKay
    Participant

    Well the script starts like its ending something – so thats gonna cause some errors… lol

    Mail via PHP is simple… what I would do is have a look at some of the examples here:

    http://php.net/manual/en/function.mail.php

    #75110
    hotrun
    Member

    Thanks a lot Rob!! SOLVED!!

    #75107
    Rob MacKay
    Participant

    Glad you sorted it :) there are some great examples on that page :)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.