I have a php script which should email me when a visitor submits a suggestion via an html form.
It works on other hosting but I can't get it working with goscomb/directadmin.
Any help would be appreciated.
It works on other hosting but I can't get it working with goscomb/directadmin.
Any help would be appreciated.
PHP:
$ewho="######@######.co.uk";
$datesent=date("l dS of F Y h:i A");
$ip=$_SERVER['REMOTE_ADDR'];
$subject="DIY Loft Idea";
$suggestion=$_POST['suggestion'];
$mailbody ="This email was sent via the website form" . "\n\n";
$mailbody .="An idea has been submitted:" . "$suggestion" . "\n";
$mailbody .="DATE: " . "$datesent" . "\n";
$mailbody .="IP: " . "$ip" . "\n";
$body .=stripslashes($mailbody);
mail($ewho,$subject,$body);