New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
SMTP and APIUpdated 4 Nov 2026

Perfex CRM SMTP Email Setup and Troubleshooting

Configure Perfex CRM to send invoices, estimates and notifications through authenticated SMTP, set up cron and the email queue, and fix the common reasons Perfex CRM emails do not send or land in spam.

CB
Written by Chloe Bennett
Customer Success Manager, Migrations
Reviewed by Jonas Lindqvist
  • Published15 Mar 2023
  • Read time7 min
  • Length1,352 words
Share this guide

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.

Settings pathSetup, Settings, Email
ProtocolSMTP, not PHP mail or sendmail
Encryption and portTLS with 587 or SSL with 465
RequiredA running cron job and an authenticated From address

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

  1. Go to Setup, Settings and open the Email tab.
  2. Mail engine: choose the available engine. If you have a choice, either works with SMTP; keep the one your version recommends.
  3. Email protocol: select SMTP.
  4. Email encryption: select TLS for port 587 or SSL for port 465.
  5. SMTP host and port: for example smtp.migosmtp.com and 587.
  6. Email: the sending address. It should be on a domain your SMTP account is allowed to send for.
  7. SMTP username and password: the credentials issued by your provider. For many providers the username is not the email address.
  8. Email charset: leave as UTF-8 unless a specific need requires another.
  9. Save, then enter a recipient in the test email field and send.
SettingTypical valueCommon mistake
ProtocolSMTPLeaving PHP mail or sendmail selected
EncryptionTLS (587) or SSL (465)TLS selected with port 465, or SSL with 587
Hostsmtp.migosmtp.comTypo, or using the website name
Email[email protected]Sender not authorised for the account
UsernameGiven by providerUsing the account login instead of the SMTP user
PasswordProvider SMTP passwordTrailing 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>&1

Confirm 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

SymptomLikely causeFix
Test email fails with authentication errorWrong username or passwordUse the SMTP credentials; recheck for spaces
Connection timed outOutbound port blockedAsk the host to allow 587 or 465
SSL routines errorEncryption and port do not matchTLS with 587, SSL with 465
Test works, invoices do not sendQueue enabled and cron not runningFix cron and check the last run time
Recurring invoices not generated or sentCron not runningFix cron before anything else
Sender rejectedFrom address not allowed by relayUse an authorised, authenticated address
Goes to spamNo SPF, DKIM or DMARCAuthenticate the domain
Customer reports missing attachmentSize limitReduce size or send a link; see attachment size limits
Works for staff, not for clientsClient addresses typed wrongly or blockedValidate 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.

Explore the SMTP relay

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.

Topics#perfex crm#smtp#cron#email queue#billing
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales