Skip to main content

Forums

This topic contains 3 replies, has 0 voices, and was last updated by  stray 6 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24219

    stray
    Member

    k well i’ve just finished my portfolio site, and i have been doing tutorials so i can learn php and i followed it to the letter but for some reason it doens’t send the e-mail to my inbox. the site link is http://www.stray-designs.com/contact.html

    on the contact page i have a regular contact form

    Code:



    and then in my php page form_response.php

    Code:
    < ?php $name = $_REQUEST['name']; $email = $_REQUEST['email']; $comment = $_REQUEST['comment']; $email_message = "Name: {$name} and your email is {$email} and your comment is {$comment}."; mail( "[email protected]",'Form Response ', "$email"); header( "Location: http://www.stray-designs.com/thanks.html" ); ?>

    its a simple bit of code but i haven’t a clue why its not working. can anyone help out a pure noob at this?

    #55772

    mdgrech
    Member

    Alright gangsta give this a whirl, and if that doesnt work make sure your server is properly configured to send mail.

    Code:






    Code:
    < ?php $name = $_POST['name']; $email = $_POST['email']; $comment = $_POST['comment']; mail( "[email protected]", $comment, $email); echo "Mail Sent."; ?>
    #55779

    stray
    Member

    it seems that the server is the problem gonna check it now to see if it supports it

    #109142

    __
    Participant

    This reply has been reported for inappropriate content.

    are all those backslashes in your actual code? if so, why?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star