Skip to content

Instantly share code, notes, and snippets.

@CallumVass
Created February 1, 2014 21:13
Show Gist options
  • Save CallumVass/8758987 to your computer and use it in GitHub Desktop.
Save CallumVass/8758987 to your computer and use it in GitHub Desktop.
PHP:
<?
session_start();
if(isset($_POST['submitted'])) {
$name = trim($_POST['name']);
$phone = trim($_POST['phone']);
$email = trim($_POST['email']);
$comment = trim($_POST['comment']);
DO SOME MAIL SHIT YO!
}
?>
ASP:
[HttpPost]
public ActionResult SendMail(MailModel model) {
_mailService.SendMail(model);
return RedirectToAction(x=>x.MailSentAction());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment