{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/593","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/593/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/593/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/593","id":123687975,"number":593,"title":"Could not execute: /usr/sbin/sendmail -t -i","user":{"login":"TJProgrammer","id":7900361,"avatar_url":"https://avatars.githubusercontent.com/u/7900361?v=3","gravatar_id":"","url":"https://api.github.com/users/TJProgrammer","html_url":"https://github.com/TJProgrammer","followers_url":"https://api.github.com/users/TJProgrammer/followers","following_url":"https://api.github.com/users/TJProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/TJProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/TJProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TJProgrammer/subscriptions","organizations_url":"https://api.github.com/users/TJProgrammer/orgs","repos_url":"https://api.github.com/users/TJProgrammer/repos","events_url":"https://api.github.com/users/TJProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/TJProgrammer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T16:36:10Z","updated_at":"2015-12-23T18:43:32Z","closed_at":null,"body":"Hello. I tried send an email from our server but I got this error: `Could not execute: /usr/sbin/sendmail -t -i`\r\n\r\nThis is my email file. I call twice the function send.\r\n```php\r\n<?php\r\n/*\r\n * Email Class\r\n * Send emails.\r\n*/\r\nclass Email {\r\n    private $mail;\r\n\r\n    public function __construct(){\r\n        require \"vendor/phpmailer/phpmailer/PHPMailerAutoload.php\";\r\n        $this->mail = new PHPMailer;\r\n        $this->mail->isSendmail();\r\n    }\r\n\r\n    public function send($to_email, $to_name, $subject, $message){\r\n        $this->mail->clearAddresses();\r\n        $this->mail->setFrom(\"gestao@xxxx.pt\", \"Name\");\r\n        $this->mail->addAddress($to_email, $to_name);\r\n        $this->mail->addReplyTo(\"xxxx@xxxxx.pt\", \"Name\");\r\n        $this->mail->Subject = $subject;\r\n        $this->mail->Body = $message;\r\n        return $this->mail->send();\r\n    }\r\n\r\n    public function getError(){\r\n        return $this->mail->ErrorInfo;\r\n    }\r\n}\r\n```\r\nP.S.: I'm sorry for my English.\r\n"},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/166967993","html_url":"https://github.com/PHPMailer/PHPMailer/issues/593#issuecomment-166967993","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/593","id":166967993,"user":{"login":"Synchro","id":81561,"avatar_url":"https://avatars.githubusercontent.com/u/81561?v=3","gravatar_id":"","url":"https://api.github.com/users/Synchro","html_url":"https://github.com/Synchro","followers_url":"https://api.github.com/users/Synchro/followers","following_url":"https://api.github.com/users/Synchro/following{/other_user}","gists_url":"https://api.github.com/users/Synchro/gists{/gist_id}","starred_url":"https://api.github.com/users/Synchro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Synchro/subscriptions","organizations_url":"https://api.github.com/users/Synchro/orgs","repos_url":"https://api.github.com/users/Synchro/repos","events_url":"https://api.github.com/users/Synchro/events{/privacy}","received_events_url":"https://api.github.com/users/Synchro/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T18:43:32Z","updated_at":"2015-12-23T18:43:32Z","body":"Does `/usr/sbin/sendmail` exist, and can you execute it normally, outside PHP?"}}