To send email from Perfex CRM reliably, open Setup, then Settings, then the Email tab, choose SMTP as the email protocol, enter your SMTP host, port, encryption (TLS for 587 or SSL for 465), email address, username and password, and send a test email from the same page. Then make sure the Perfex cron job runs, because queued emails, reminders and recurring invoices are processed by cron. Most reports of Perfex CRM not sending are caused by a wrong encryption and port pair, a sender address the SMTP account may not use, or cron that never runs.
Labels differ slightly between Perfex versions, so check what your installation shows. This guide explains each setting, how to authenticate your domain so invoices do not go to spam, and how to diagnose failures quickly.
How Perfex CRM sends email
Perfex is a PHP application built on CodeIgniter. When a staff member sends an invoice, estimate, proposal, ticket reply or reminder, the application builds a message from an email template and sends it with the engine chosen in the settings. Many system emails, such as overdue reminders, recurring invoices and some notifications, are not triggered by a click but by the cron job, which is why a perfectly configured SMTP can still appear broken when cron is not running. For protocol background see sending email from PHP with SMTP.
Configure SMTP in the settings
- Go to Setup, Settings and open the Email tab.
- Mail engine: choose the available engine. If you have a choice, either works with SMTP; keep the one your version recommends.
- Email protocol: select SMTP.
- Email encryption: select TLS for port 587 or SSL for port 465.
- SMTP host and port: for example
smtp.migosmtp.comand587. - Email: the sending address. It should be on a domain your SMTP account is allowed to send for.
- SMTP username and password: the credentials issued by your provider. For many providers the username is not the email address.
- Email charset: leave as UTF-8 unless a specific need requires another.
- Save, then enter a recipient in the test email field and send.
| Setting | Typical value | Common mistake |
|---|---|---|
| Protocol | SMTP | Leaving PHP mail or sendmail selected |
| Encryption | TLS (587) or SSL (465) | TLS selected with port 465, or SSL with 587 |
| Host | smtp.migosmtp.com | Typo, or using the website name |
| [email protected] | Sender not authorised for the account | |
| Username | Given by provider | Using the account login instead of the SMTP user |
| Password | Provider SMTP password | Trailing space, or a webmail password |
Why the pairing matters is explained in SMTP settings, ports and TLS. A mismatch typically yields a timeout or an SSL protocol error.
Set up cron
Perfex relies on a cron job to run background tasks every few minutes. The Settings area and the installation guide for your version show the exact cron command or URL to use, so copy it from there. A typical Linux crontab entry calling a URL looks like this, with your own domain and the path your version specifies.
*/5 * * * * wget -q -O - https://crm.example.com/cron/index > /dev/null 2>&1
# or, calling PHP directly on the server
*/5 * * * * /usr/bin/php -q /var/www/crm/index.php cron index > /dev/null 2>&1Confirm which form your version supports before choosing. The admin area typically shows when cron last ran; if that timestamp is old, nothing queued is being processed. Running cron through a URL needs the site to be reachable from the server and not blocked by a firewall, basic authentication or a security plugin.
The email queue and sending limits
Perfex can place outgoing messages into an email queue to avoid slowing down a page request and to respect provider limits. Enabling the queue means messages are delivered at the next cron run, not instantly. Use it if you send many invoices at once, but remember that a stopped cron stops delivery. Check the settings for the queue and for the batch size, and keep the per-run volume below your provider's per-minute or per-hour limits. Bursts that exceed limits produce temporary errors; see email rate limits, retries and backoff.
Authenticate the domain so invoices reach inboxes
Invoices and payment links are exactly the type of message that is blocked when authentication is missing. Make sure the domain in the From address has SPF that includes your relay, a DKIM signature from your provider, and a DMARC record. The step-by-step is in authenticating your sending domain. Check the result with the SPF, DKIM and DMARC checker. Send from one stable address, avoid free webmail addresses as the sender, and use the reply-to field when staff replies should reach a person. For overdue invoice wording that avoids spam triggers, see payment reminder email examples.
Diagnose from the server
First separate application problems from network problems. From the server running Perfex, test the SMTP login directly.
# STARTTLS on 587
openssl s_client -starttls smtp -connect smtp.migosmtp.com:587 -crlf
# Implicit TLS on 465
openssl s_client -connect smtp.migosmtp.com:465 -crlf
# Check the application log directory for errors (path depends on installation)
ls -la application/logs/If the handshake works but Perfex fails, the likely cause is the settings. If the connection never opens, the hosting provider is blocking outbound SMTP and you should ask them to allow 587 or 465. The test email in Perfex may show the SMTP debug output; read the line that mentions the server reply code. If a code appears, our SMTP response codes list explains it.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Test email fails with authentication error | Wrong username or password | Use the SMTP credentials; recheck for spaces |
| Connection timed out | Outbound port blocked | Ask the host to allow 587 or 465 |
| SSL routines error | Encryption and port do not match | TLS with 587, SSL with 465 |
| Test works, invoices do not send | Queue enabled and cron not running | Fix cron and check the last run time |
| Recurring invoices not generated or sent | Cron not running | Fix cron before anything else |
| Sender rejected | From address not allowed by relay | Use an authorised, authenticated address |
| Goes to spam | No SPF, DKIM or DMARC | Authenticate the domain |
| Customer reports missing attachment | Size limit | Reduce size or send a link; see attachment size limits |
| Works for staff, not for clients | Client addresses typed wrongly or blocked | Validate addresses and check bounces |
Test after every change
After upgrading Perfex, moving servers or changing the SMTP password, run a test email, send one real invoice to an external mailbox, and confirm the cron timestamp is fresh. Add a monitor that alerts you if cron stops. When something fails, record the exact SMTP error text; it shortens support conversations a lot.
Next steps
Settle on one authenticated sender, a working cron job and a queue size that matches your provider limits. Then add visibility: if your provider offers webhooks for delivery, bounce and complaint events, use them to find invalid client addresses before they cause repeated failures.
Operational habits for Perfex CRM mail
Email problems in a CRM are expensive because they delay invoices and proposals. Keep a short checklist after every upgrade or server move: confirm the SMTP settings, send a test email, confirm the cron timestamp updates, send one real invoice to an external address, and review the application logs for errors. If you customised email templates, make sure merge fields still resolve after an update, since an empty field can produce a message that looks broken and gets ignored.
Where several staff members send from the same installation, use a single authenticated sender address and set reply-to as appropriate, rather than trying to send as each user. This keeps SPF and DKIM aligned and avoids rejection by the relay. Finally, keep backups of your settings and a record of who holds the SMTP credentials, so a rotation or an account closure does not leave the CRM silently unable to send.
Review client records now and then for addresses that bounce. A contact whose mailbox no longer exists will produce a failure on each reminder cycle, and repeated sends to dead addresses hurt your sender reputation over time. Correct the address or remove the contact from automatic reminders.
Reliable SMTP for Perfex CRM Send invoices and reminders through MigoSMTP authenticated SMTP on port 587 or 465.
References and further reading
Frequently asked questions
Where are the email settings in Perfex CRM?
Open Setup, then Settings, then the Email tab. Labels may differ slightly between versions.
Which encryption and port should I use?
Use TLS with port 587 or SSL with port 465. A mismatch causes timeouts or SSL protocol errors.
Why is the test email working but invoices are not sent?
If the email queue is enabled, messages are delivered when cron runs. Check that the Perfex cron job is running.
Do recurring invoices need cron?
Yes. Recurring invoices, reminders and other scheduled tasks are triggered by the Perfex cron job.
Why do Perfex emails go to spam?
Usually the sender domain is not authenticated or a free webmail address is used as sender. Publish SPF, DKIM and DMARC for your domain.