Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
<form method="POST" action="enter the URL to your PHP page here"> <p>Name: <input type="text" name="Name" size="20"></p> <p>Email: <input type="text" name="Email" size="20"></p> <p><input type="submit" value="Submit" name="Submit"></p> </form>
<?php ## CONFIG ## # LIST EMAIL ADDRESS $recipient = "firstname.lastname@example.org"; # SUBJECT (Subscribe/Remove) $subject = "Subscribe"; # RESULT PAGE $location = "enter the URL of the result page here"; ## FORM VALUES ## # SENDER - WE ALSO USE THE RECIPIENT AS SENDER # DON'T INCLUDE UNFILTERED USER INPUT IN THE MAIL HEADER! # SEE ALSO: How to protect a php Email Form using php mail or mb_send_mail against Mail Header Injection $sender = $recipient; # MAIL BODY $body .= "Name: ".$_REQUEST['Name']." \n"; $body .= "Email: ".$_REQUEST['Email']." \n"; # add more fields here if required ## SEND MESSGAE ## mail( $recipient, $subject, $body, "From: $sender" ) or die ("Mail could not be sent."); ## SHOW RESULT PAGE ## header( "Location: $location" ); ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.