{"id":898,"date":"2025-10-11T01:07:23","date_gmt":"2025-10-11T01:07:23","guid":{"rendered":"https:\/\/smppcenter.com\/kb\/?p=898"},"modified":"2025-10-11T01:07:25","modified_gmt":"2025-10-11T01:07:25","slug":"troubleshooting-why-are-my-automation-emails-not-being-sent","status":"publish","type":"post","link":"https:\/\/smppcenter.com\/kb\/troubleshooting-why-are-my-automation-emails-not-being-sent\/","title":{"rendered":"Troubleshooting: Why Are My Automation Emails Not Being Sent?"},"content":{"rendered":"\n<p>If your automation isn&#8217;t sending emails as expected, follow this troubleshooting guide:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 1: Verify Automation is Enabled<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Admin Panel &gt; User Automations<\/strong><\/li>\n\n\n\n<li>Check the <strong>Status<\/strong> column<\/li>\n\n\n\n<li>If showing <strong>&#8220;Disabled&#8221;<\/strong>, click <strong>&#8220;Edit&#8221;<\/strong> and enable it<\/li>\n\n\n\n<li>Save changes<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 2: Check Cron Job Setup<\/strong><\/h4>\n\n\n\n<p><strong>Verify Cron is Running:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check server cron logs: <code>\/var\/log\/cron<\/code><\/li>\n\n\n\n<li>Look for your automation cron entries<\/li>\n\n\n\n<li>Ensure cron service is active: <code>service cron status<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>Test Cron Manually:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the cron URL in your browser:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>  https:&#47;&#47;yourdomain.com\/publicuser\/crons\/automationInactiveUser\/?cronsecret=YOUR_TOKEN<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You should see success message<\/li>\n\n\n\n<li>Check automation logs for new entries<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 3: Verify Email Templates Are Configured<\/strong><\/h4>\n\n\n\n<p><strong>Check Email Steps:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the automation<\/li>\n\n\n\n<li>Scroll to email steps section<\/li>\n\n\n\n<li>Ensure at least one email step is configured<\/li>\n\n\n\n<li>Verify Subject and Content are not empty<\/li>\n\n\n\n<li>Check that period\/day numbers are set correctly<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 4: Check User Eligibility Criteria<\/strong><\/h4>\n\n\n\n<p><strong>For Inactive User Automation:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Users must be inactive for specified period<\/li>\n\n\n\n<li>Users must have sent at least one message previously<\/li>\n\n\n\n<li>User account must not be expired<\/li>\n\n\n\n<li>User balance must meet minimum requirement<\/li>\n\n\n\n<li>Email address must be valid and not empty<\/li>\n<\/ul>\n\n\n\n<p><strong>For New User Automation:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Users must be registered for specified days<\/li>\n\n\n\n<li>Users must not have purchased above threshold (if enabled)<\/li>\n\n\n\n<li>Users must not have sent messages above threshold (if enabled)<\/li>\n\n\n\n<li>Maximum days limit must not be exceeded<\/li>\n\n\n\n<li>User account must not be expired<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 5: Review Automation Logs<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to automation <strong>&#8220;Logs&#8221;<\/strong> page<\/li>\n\n\n\n<li>Look for recent log entries<\/li>\n\n\n\n<li>Check <strong>&#8220;Execution Status&#8221;<\/strong> column:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SUCCESS:<\/strong> Emails sent successfully<\/li>\n\n\n\n<li><strong>FAILED:<\/strong> Check <strong>&#8220;Error Message&#8221;<\/strong> column for details<\/li>\n\n\n\n<li><strong>SKIPPED:<\/strong> User didn&#8217;t meet criteria (normal)<\/li>\n<\/ul>\n\n\n\n<p><strong>Common Error Messages:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Error Message<\/th><th>Solution<\/th><\/tr><\/thead><tbody><tr><td>&#8220;Failed to send email&#8221;<\/td><td>Check SMTP configuration in system settings<\/td><\/tr><tr><td>&#8220;Invalid email address&#8221;<\/td><td>Update user&#8217;s email in their profile<\/td><\/tr><tr><td>&#8220;User expired&#8221;<\/td><td>Renew user account or adjust criteria<\/td><\/tr><tr><td>&#8220;Balance below minimum&#8221;<\/td><td>User needs more credits or adjust threshold<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 6: Verify SMTP Settings<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Reseller Panel &gt; White Label &gt; SMTP Configuration<\/strong><\/li>\n\n\n\n<li>Verify SMTP settings are correct:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SMTP Host<\/li>\n\n\n\n<li>SMTP Port<\/li>\n\n\n\n<li>SMTP Username<\/li>\n\n\n\n<li>SMTP Password<\/li>\n\n\n\n<li>Encryption (SSL\/TLS)<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Send a test email to verify SMTP works<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 7: Check Server Logs<\/strong><\/h4>\n\n\n\n<p><strong>Public Log File:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tail -f error_log<\/code><\/pre>\n\n\n\n<p>Look for entries like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Inactive User Automation: Processing automation 'NAME' (ID: X)\nInactive User Automation: Found N inactive users for automation ID: X\nInactive User Automation: Completed processing 'NAME' - Sent: N, Failed: N, Skipped: N<\/code><\/pre>\n\n\n\n<p><strong>Common Log Messages:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Log Message<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td>&#8220;No active automation found&#8221;<\/td><td>Automation is disabled or deleted<\/td><\/tr><tr><td>&#8220;No email templates configured&#8221;<\/td><td>Email steps are missing or empty<\/td><\/tr><tr><td>&#8220;Found 0 inactive users&#8221;<\/td><td>No users meet the criteria<\/td><\/tr><tr><td>&#8220;Invalid cron secret token&#8221;<\/td><td>Wrong token in cron URL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 8: Verify Product Configuration<\/strong><\/h4>\n\n\n\n<p><strong>Check Products Purchased Config:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automation checks SMS\/WhatsApp\/Voice based on <code>Products Purchased<\/code> plans<\/li>\n\n\n\n<li>If products aren&#8217;t configured, inactivity can&#8217;t be calculated<\/li>\n\n\n\n<li>Verify in System Settings which products are enabled<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 9: Review Execution Rules<\/strong><\/h4>\n\n\n\n<p><strong>Minimum Balance:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If set too high, many users will be skipped<\/li>\n\n\n\n<li>Check typical user balances and adjust accordingly<\/li>\n<\/ul>\n\n\n\n<p><strong>Purchase\/Message Thresholds:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For New User Automation, thresholds might be too low<\/li>\n\n\n\n<li>Review and adjust if too many users are being skipped<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Step 10: Database Query Performance<\/strong><\/h4>\n\n\n\n<p>For large user databases (10,000+ users):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cron execution might timeout<\/li>\n\n\n\n<li>Consider increasing PHP <code>max_execution_time<\/code><\/li>\n\n\n\n<li>Monitor server resources during cron runs<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Still Not Working?<\/strong><\/h4>\n\n\n\n<p><strong>Contact Support:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Provide automation ID<\/li>\n\n\n\n<li>Share recent log entries<\/li>\n\n\n\n<li>Include cron command and schedule<\/li>\n\n\n\n<li>Describe expected vs. actual behavior<\/li>\n\n\n\n<li>Mention any recent changes made<\/li>\n<\/ul>\n\n\n\n<p><strong>Temporary Manual Execution:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>While troubleshooting, you can manually trigger cron via browser<\/li>\n\n\n\n<li>This helps identify if issue is with cron schedule or automation logic<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If your automation isn&#8217;t sending emails as expected, follow this troubleshooting guide: Step 1: Verify Automation is Enabled Step 2: Check Cron Job Setup Verify Cron is Running: Test Cron Manually: Step 3: Verify Email Templates Are Configured Check Email Steps: Step 4: Check User Eligibility Criteria For Inactive User Automation: For New User Automation: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[301],"tags":[],"class_list":["post-898","post","type-post","status-publish","format-standard","hentry","category-automation"],"_links":{"self":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/posts\/898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":0,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"wp:attachment":[{"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smppcenter.com\/kb\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}