Skip to content

Instantly share code, notes, and snippets.

@Ravenna
Created February 25, 2014 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ravenna/9216639 to your computer and use it in GitHub Desktop.
Save Ravenna/9216639 to your computer and use it in GitHub Desktop.
<?php
// Please specify your Mail Server - Example: mail.yourdomain.com.
ini_set("SMTP","mail.tridentseafoods.com");
// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");
// Please specify the return address to use
ini_set('sendmail_from', 'dnicholls@tridentseafoods.com');
// Set parameters of the email
$to = "tj@ravennainteractive.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "dnicholls@tridentseafoods.com";
$headers = "From: $from";
// Mail function that sends the email.
mail($to,$subject,$message,$headers);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment