mircemail

By humming_hi on Oct 30, 2007

PHP sendmail script made for my mIRC snippet ( http://www.hawkee.com/snippet/3458/ )

To use: save as 'mircemail.php', upload to web host (need sendmail enabled to work) make sure the url is at something like 'myweb.com/mircemail.php'
Change 'YOURKEYHERE' to the key you want the PHP script to lock with, so others cant use it.

get this mIRC snippet: http://www.hawkee.com/snippet/3458/

<?php
if($_GET["key"] == 'YOURKEYHERE') {
  $to = filter_input(INPUT_GET, 'to');
  $subject = filter_input(INPUT_GET, 'subject');
  $body = filter_input(INPUT_GET, 'body');
  $email = filter_input(INPUT_GET, 'email');
  $fromname = filter_input(INPUT_GET, 'name');
  $eol="rn";
  $headers .= "From: ".$fromname."<".$email.">".$eol;
  $headers .= "Reply-To: ".$fromname."<".$email.">".$eol;
  $headers .= "Return-Path: ".$fromname."<".$email.">".$eol;
  $headers .= "Message-ID: <".time()."-".$email.">".$eol;
  $headers .= "X-Mailer: mIRC Mailer By: Syrus".$eol;
  if (mail($to, $subject, $body, $headers)) {
    echo("<p>Message successfully sent!</p>");
    } else {
    echo("<p>Message delivery failed...</p>");
  }
} else {
echo("<p>Message delivery failed...</p>");
}
?>

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.