{"action":"created","issue":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/2028","repository_url":"https://api.github.com/repos/snipe/snipe-it","labels_url":"https://api.github.com/repos/snipe/snipe-it/issues/2028/labels{/name}","comments_url":"https://api.github.com/repos/snipe/snipe-it/issues/2028/comments","events_url":"https://api.github.com/repos/snipe/snipe-it/issues/2028/events","html_url":"https://github.com/snipe/snipe-it/issues/2028","id":153980532,"number":2028,"title":"[Swift_TransportException]","user":{"login":"nirmalpathak","id":17794210,"avatar_url":"https://avatars.githubusercontent.com/u/17794210?v=3","gravatar_id":"","url":"https://api.github.com/users/nirmalpathak","html_url":"https://github.com/nirmalpathak","followers_url":"https://api.github.com/users/nirmalpathak/followers","following_url":"https://api.github.com/users/nirmalpathak/following{/other_user}","gists_url":"https://api.github.com/users/nirmalpathak/gists{/gist_id}","starred_url":"https://api.github.com/users/nirmalpathak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirmalpathak/subscriptions","organizations_url":"https://api.github.com/users/nirmalpathak/orgs","repos_url":"https://api.github.com/users/nirmalpathak/repos","events_url":"https://api.github.com/users/nirmalpathak/events{/privacy}","received_events_url":"https://api.github.com/users/nirmalpathak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T11:09:08Z","updated_at":"2016-05-10T12:09:27Z","closed_at":"2016-05-10T12:09:27Z","body":"#### Expected Behavior (or desired behavior if a feature request)\r\n\r\nAn e-mail should be sent to 'Alert Email' configured. (My gmail e-mail in my case.)\r\n\r\n-----\r\n\r\n#### Actual Behavior\r\n$ php /opt/snipe-it/artisan alerts:expiring\r\n0 expiring assets\r\n3 expiring licenses\r\n\r\n**  [Swift_TransportException]\r\n  Connection could not be established with host [] [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]**\r\n\r\nalerts:expiring\r\n\r\n-----\r\n\r\n#### Please confirm you have done the following before posting your bug report:\r\n\r\n- [ ] I have enabled debug mode - Yes\r\n- [x] I have read [checked the Common Issues page](http://docs.snipeitapp.com/common-issues.html)\r\n\r\n-----\r\n#### Please provide answers to these questions before posting your bug report:\r\n\r\n- Version of Snipe-IT you're running - v2.1.0\r\n- What OS and web server you're running Snipe-IT on - Ubuntu 14.04 running Apache\r\n- What method you used to install Snipe-IT - snipeit-ansible\r\n\r\n-----\r\n\r\n- I can ping & telnet to SMTP port of gmail mail server, smtp.gmail.com\r\n\r\n$ ping smtp.gmail.com\r\nPING gmail-smtp-msa.l.google.com (74.125.200.109) 56(84) bytes of data.\r\n64 bytes from sa-in-f109.1e100.net (74.125.200.109): icmp_seq=1 ttl=47 time=132 ms\r\n\r\n$ telnet smtp.gmail.com 25\r\nTrying 74.125.200.108...\r\nConnected to gmail-smtp-msa.l.google.com.\r\nEscape character is '^]'.\r\n220 smtp.gmail.com ESMTP z6sm3617720pfz.11 - gsmtp\r\n\r\n$  php -r 'var_dump(gethostbyname(\"smtp.gmail.com\"));'\r\nstring(14) \"74.125.200.108\""},"comment":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/comments/218138614","html_url":"https://github.com/snipe/snipe-it/issues/2028#issuecomment-218138614","issue_url":"https://api.github.com/repos/snipe/snipe-it/issues/2028","id":218138614,"user":{"login":"nirmalpathak","id":17794210,"avatar_url":"https://avatars.githubusercontent.com/u/17794210?v=3","gravatar_id":"","url":"https://api.github.com/users/nirmalpathak","html_url":"https://github.com/nirmalpathak","followers_url":"https://api.github.com/users/nirmalpathak/followers","following_url":"https://api.github.com/users/nirmalpathak/following{/other_user}","gists_url":"https://api.github.com/users/nirmalpathak/gists{/gist_id}","starred_url":"https://api.github.com/users/nirmalpathak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirmalpathak/subscriptions","organizations_url":"https://api.github.com/users/nirmalpathak/orgs","repos_url":"https://api.github.com/users/nirmalpathak/repos","events_url":"https://api.github.com/users/nirmalpathak/events{/privacy}","received_events_url":"https://api.github.com/users/nirmalpathak/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T12:09:27Z","updated_at":"2016-05-10T12:09:27Z","body":"I has an empty host list in \"/opt/snipe-it/app/config/production/mail.php\".\r\n\r\n'host' => '[]', \r\n\r\nThe issue is fixed now."}}