I just installed ssmtp to send email with LAMP on Ubuntu.
And a simple script like this:
<?php
$additional_headers = 'From: someone@testing.com' . "\r\n";
$res = mail('myemail@gmail.com','test','test body', $additional_headers);
var_dump($res);
?>
I received the email but the sender name will put as "nobody" , so it is using the user name "nobody"? How can I change it? I'm new in Ubuntu...
Thanks.