{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/6156","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/6156/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/6156/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/6156/events","html_url":"https://github.com/mautic/mautic/issues/6156","id":328787946,"node_id":"MDU6SXNzdWUzMjg3ODc5NDY=","number":6156,"title":"Can not send emails for the campaigns in 2.13.1","user":{"login":"AnastasiiaSu","id":39866898,"node_id":"MDQ6VXNlcjM5ODY2ODk4","avatar_url":"https://avatars2.githubusercontent.com/u/39866898?v=4","gravatar_id":"","url":"https://api.github.com/users/AnastasiiaSu","html_url":"https://github.com/AnastasiiaSu","followers_url":"https://api.github.com/users/AnastasiiaSu/followers","following_url":"https://api.github.com/users/AnastasiiaSu/following{/other_user}","gists_url":"https://api.github.com/users/AnastasiiaSu/gists{/gist_id}","starred_url":"https://api.github.com/users/AnastasiiaSu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnastasiiaSu/subscriptions","organizations_url":"https://api.github.com/users/AnastasiiaSu/orgs","repos_url":"https://api.github.com/users/AnastasiiaSu/repos","events_url":"https://api.github.com/users/AnastasiiaSu/events{/privacy}","received_events_url":"https://api.github.com/users/AnastasiiaSu/received_events","type":"User","site_admin":false},"labels":[{"id":154414515,"node_id":"MDU6TGFiZWwxNTQ0MTQ1MTU=","url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mautic/mautic/milestones/48","html_url":"https://github.com/mautic/mautic/milestone/48","labels_url":"https://api.github.com/repos/mautic/mautic/milestones/48/labels","id":3624611,"node_id":"MDk6TWlsZXN0b25lMzYyNDYxMQ==","number":48,"title":"2.14.2","description":"","creator":{"login":"npracht","id":14075239,"node_id":"MDQ6VXNlcjE0MDc1MjM5","avatar_url":"https://avatars2.githubusercontent.com/u/14075239?v=4","gravatar_id":"","url":"https://api.github.com/users/npracht","html_url":"https://github.com/npracht","followers_url":"https://api.github.com/users/npracht/followers","following_url":"https://api.github.com/users/npracht/following{/other_user}","gists_url":"https://api.github.com/users/npracht/gists{/gist_id}","starred_url":"https://api.github.com/users/npracht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npracht/subscriptions","organizations_url":"https://api.github.com/users/npracht/orgs","repos_url":"https://api.github.com/users/npracht/repos","events_url":"https://api.github.com/users/npracht/events{/privacy}","received_events_url":"https://api.github.com/users/npracht/received_events","type":"User","site_admin":false},"open_issues":88,"closed_issues":15,"state":"open","created_at":"2018-09-05T13:39:45Z","updated_at":"2018-09-24T20:08:31Z","due_on":"2018-09-28T07:00:00Z","closed_at":null},"comments":46,"created_at":"2018-06-03T00:23:07Z","updated_at":"2018-09-25T13:07:30Z","closed_at":null,"author_association":"NONE","body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | Y\r\n| Feature request? | \r\n| Enhancement? | \r\n\r\n## Description:\r\nHello!\r\nI like Mautic SO MUCH because of its incredible and free open source system opportunities and thank everyone who worked on its development and who works on its improvement now. \r\n\r\nUnfortunately, I have got stuck into the problem when trying to **send emails** using **Campaigns**. \r\n\r\nI create any campaign, set there some settings with Launch Campaign Builder for **immediate/not immediate** (in some minutes/hours, for example) email sending (it does not have a metter, the problem exists in both variants), choose \"**Marketing**\" email type to send, choose the needed **Contacts Segment**, publish the campaign and wait. \r\nThe contacts are not adding momentally, I need to wait for 5-10 minutes (think that's because of cron jobs set for certain time). After the contacts are added I still wait but nothing happens - no emails are sent to contacts.\r\n\r\n**The most strange for me is that in some hours I look through the campaign statistics and see that 0 tasks are pending and all (in this case - 2) tasks ARE COMPLETED!** But there aren't still any emails on my test email contact adresses....\r\n![bug1](https://user-images.githubusercontent.com/39866898/40881781-d04300d6-66d8-11e8-9e01-724005c21831.jpg)\r\nIt looks like everyting might have been sent, but there are no emails in my contact email adresses.\r\n\r\n**The test emails** from \"Emails\" menu are sent properly.\r\n\r\nI've checked the \"**Spam**\" folders in my test email accounts for this campaign - nothing too.\r\n\r\nI have created **lots of campaigns**, I also **cloned campaigns** - still the same.\r\n\r\nI have even changed the PHP version from 7.1 to 7.0 - it also didn't help.\r\n\r\nI entered the \"**Queue**\" in \"**How should email be handled?**\".\r\nAnd \r\n**Path to the email queue directory**  \r\n%kernel.root_dir%/spool\r\n\r\n**Message limit for queue processing**  \r\n nothing here\r\n\r\n**Time limit for queue processing**\r\n nothing here\r\n \r\n**Recovery timeout for resending failed messages**  \r\n30\r\n\r\n**Clear timeout for deleted failed messages.**  \r\n1800\r\n\r\nMy service to send mail through \r\n**PHP Mail** and I'd like it to work for Mautic.\r\n\r\n\r\nAll of my Mautic cron jobs are:\r\n\r\n```\r\n\"0,30 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:email:fetch > /home/*/*/app/console.log 2>&1 \r\n \r\n0,30 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:social:monitoring > /home/*/*/app/console.log 2>&1 | \r\n \r\n0,30 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:webhooks:process > /home/*/*/app/console.log 2>&1 | \r\n \r\n0 | 0 | 1 | * | * | /usr/local/bin/php /home/*/*/app/console mautic:iplookup:download > /home/*/*/app/console.log 2>&1 | \r\n \r\n0,15,30,45 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:segments:update > /home/*/*/app/console.log 2>&1 | \r\n \r\n5,20,35,50 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:campaigns:rebuild > /home/*/*/app/console.log 2>&1 | \r\n \r\n10,25,40,55 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:campaigns:trigger > /home/*/*/app/console.log 2>&1 |\r\n \r\n0,30 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:emails:send > /home/*/*/app/console.log 2>&1 | \r\n \r\n0,30 | * | * | * | * | /usr/local/bin/php /home/*/*/app/console mautic:messages:send > /home/*/*/app/console.log 2>&1\"\r\n```\r\n\r\n\r\n\r\n## If a bug:\r\n\r\n| Q   | A\r\n| --- | ---\r\n| Mautic version | 2.13.1\r\n| PHP version | 7.0,7.1 (used both, the same problem)\r\n\r\n### Steps to reproduce:\r\n1. Create new Campaign\r\n2. Set up any Marketing Email for any time (immediate or in some minutes/hours/etc. - it does not metter)\r\n3. Publish Campaign.\r\n \r\n### Log errors: \r\n\r\n[2018-06-02 21:05:27] mautic.WARNING: IP LOOKUP: The file \"/home/*/*/app/cache/prod/../ip_data/GeoLite2-City.mmdb\" does not exist or is not readable. [] []\r\n[2018-06-03 01:22:54] mautic.NOTICE: PHP Notice - Undefined index: company - in file /home/*/*/app/bundles/LeadBundle/Views/Lead/grid_card.html.php - at line 44 [] []\r\n\r\nI also created file console.log where gather the cron reports. The information renews there everytime, now I see there this kind of information:\r\n\"Triggering events for campaign 5\r\nTriggering first level events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering scheduled events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering 'non-action' events\r\n0 event(s) executed\r\n\r\nTriggering events for campaign 6\r\nTriggering first level events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering scheduled events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering 'non-action' events\r\n0 event(s) executed\r\n\r\nTriggering events for campaign 7\r\nTriggering first level events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering scheduled events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering 'non-action' events\r\n0 event(s) executed\r\n\r\nTriggering events for campaign 8\r\nTriggering first level events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering scheduled events\r\n0 total events(s) to be processed in batches of 100\r\n0 event(s) executed\r\n\r\nTriggering 'non-action' events\r\n0 event(s) executed\"\r\n\r\n\r\n**I've suffered all the day long, trying to find the decision, but still have the problem.\r\nCan you help me to fix it? Thank you so much.**\r\n"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/424335609","html_url":"https://github.com/mautic/mautic/issues/6156#issuecomment-424335609","issue_url":"https://api.github.com/repos/mautic/mautic/issues/6156","id":424335609,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDMzNTYwOQ==","user":{"login":"sibben","id":4610714,"node_id":"MDQ6VXNlcjQ2MTA3MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4610714?v=4","gravatar_id":"","url":"https://api.github.com/users/sibben","html_url":"https://github.com/sibben","followers_url":"https://api.github.com/users/sibben/followers","following_url":"https://api.github.com/users/sibben/following{/other_user}","gists_url":"https://api.github.com/users/sibben/gists{/gist_id}","starred_url":"https://api.github.com/users/sibben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibben/subscriptions","organizations_url":"https://api.github.com/users/sibben/orgs","repos_url":"https://api.github.com/users/sibben/repos","events_url":"https://api.github.com/users/sibben/events{/privacy}","received_events_url":"https://api.github.com/users/sibben/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T13:07:30Z","updated_at":"2018-09-25T13:07:30Z","author_association":"NONE","body":"Upgraded to 2.14.1,  but no difference. \r\nI have a very simple campaign, \r\n![image](https://user-images.githubusercontent.com/4610714/46016244-93cbb200-c0d4-11e8-9a21-ea9f5ec30961.png)\r\nThe segment has 1 user. \r\nSuccess seems to depend upon which mail I choose to be send.  Some get send, others don't\r\n"}}
{"actor":{"display_login":"sibben"}}