How do I troubleshoot SMTP Email Sending?

If you're sending emails through an SMTP server, verify that your server is correctly configured and can send emails. You can test this by emailing directly through the SMTP server outside the application. 

Test whether our application can send emails using SMTP using Mailtrap-

  1. Sign up for a Mailtrap account: Visit https://mailtrap.io/ and sign up for an account. Mailtrap offers free plans for basic usage, which should be more than enough for testing.
  2. Create a new inbox: Once logged into your Mailtrap account, create a new inbox. This is where your test emails will be delivered.
  3. Get your SMTP credentials: After creating a new inbox, go to its settings. You will find your SMTP settings, such as hostname, port, username, and password.
  4. Configure your PHP application: Now, you need to configure the PHP application to use these SMTP settings for sending emails. 

If you get the emails in Mailtrap, the SMTP integration is working.

Can’t find the answers you’re looking for?

We’re here to help. Chat with us.