Difference between revisions of "Email Issues"

From TMM Wiki
Jump to navigationJump to search
Line 9: Line 9:
  
 
1. (NATS4 only) Ensure that the NATS mail cron is configured.
 
1. (NATS4 only) Ensure that the NATS mail cron is configured.
   */3 * * * * cd {full NATS path}/processes; {full PHP path} run_mail_queue.php;
+
   <pre>*/3 * * * * cd {full NATS path}/processes; {full PHP path} run_mail_queue.php;</pre>
  
 
2. Ensure that PHP can send mail
 
2. Ensure that PHP can send mail
 
   If using PHP mail, you can test PHP mail with the following script:
 
   If using PHP mail, you can test PHP mail with the following script:
 +
 +
  <pre>
 
   <?php
 
   <?php
 
   $to = "ben.warren@toomuchmedia.com";
 
   $to = "ben.warren@toomuchmedia.com";
Line 23: Line 25:
 
     }
 
     }
 
   ?>
 
   ?>
 +
  </pre>
  
 
3. Ensure that the email that you expect has a subject configured.
 
3. Ensure that the email that you expect has a subject configured.
 
   NATS will not send email without a subject configured.
 
   NATS will not send email without a subject configured.

Revision as of 11:30, 21 February 2012

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Troubleshooting
Common Errors
Email_Issues
Fix Graphs
Expired License
Zend License
Zip Files in Internet Explorer
NATS 3
Troubleshooting
Common Errors
Email_Issues
Auto Login
Emptying Forms
AutoLogin Cookie
CAPTCHA
Changing Licenses
Expired License
Zend License

Common NATS Email Issues:

1. (NATS4 only) Ensure that the NATS mail cron is configured.

*/3 * * * * cd {full NATS path}/processes; {full PHP path} run_mail_queue.php;

2. Ensure that PHP can send mail

  If using PHP mail, you can test PHP mail with the following script:
   <?php
   $to = "ben.warren@toomuchmedia.com";
   $subject = "Hi!";
   $body = "Hi,\n\nHow are you?";
   if (mail($to, $subject, $body)) {
     echo("<p>Message successfully sent!</p>");
    } else {
     echo("<p>Message delivery failed...</p>");
    }
   ?>
   

3. Ensure that the email that you expect has a subject configured.

  NATS will not send email without a subject configured.