My code is this:
Code: Select all
$mailed = mail('my-email@my-host.com', 'test', 'test body');
echo ($mailed) ? 'Mailed successfully' : 'Failure';
Moderator: General Moderators
Code: Select all
$mailed = mail('my-email@my-host.com', 'test', 'test body');
echo ($mailed) ? 'Mailed successfully' : 'Failure';
Code: Select all
ini_set ("sendmail_from", "from@yourdomain.co.uk");
$fromemail = "from@yourdomain.co.uk";
$mime = "MIME-Version:1.0\r\nContent-type:text/html;Charset=iso-8859-1\r\nFrom: ".$fromemail;
@mail("to@whoever.co.uk","Subject",'Content',$mime,"-f$fromemail");