Title: Kinsta PHP mailer problem
Last modified: July 13, 2025

---

# Kinsta PHP mailer problem

 *  Resolved [ashf](https://wordpress.org/support/users/ashf/)
 * (@ashf)
 * [10 months, 4 weeks ago](https://wordpress.org/support/topic/kinsta-php-mailer-problem/)
 * Message isn’t sent when return-path option is on at Kinsta.
   If return-path is
   off, no problem.My own code below didn’t work either.`add_action('phpmailer_init','
   set_custom_return_path');function set_custom_return_path($phpmailer) {$phpmailer-
   >Sender = $phpmailer->From;}Do you know anything about this problem?It’s particular
   problem at Kinsta and I never seen it somewhere else before.
    -  This topic was modified 10 months, 4 weeks ago by [ashf](https://wordpress.org/support/users/ashf/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Ibrahim Sharif](https://wordpress.org/support/users/ibrahimsharif/)
 * (@ibrahimsharif)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/kinsta-php-mailer-problem/#post-18573938)
 * Hello [@ashf](https://wordpress.org/support/users/ashf/),
 * Thanks for reaching out and reporting this issue!
 * We understand you’re experiencing problems with sending emails when the `return-
   path` option is enabled on Kinsta hosting, and that your custom code to set the`
   return-path` isn’t working as expected. It’s definitely odd that the issue is
   specific to Kinsta.
 * Since this seems to be a unique environment-specific problem, we’d like to investigate
   further and gather more details about your setup. To help us understand the issue
   completely, please create a support ticket through the [WPManageNinja Support Portal](https://wpmanageninja.com/support).
 * Providing us with the following information in your ticket will be very helpful:
    - **FluentSMTP Configuration:** Details of how you have configured FluentSMTP,
      including the SMTP provider you are using (e.g., Amazon SES, SendGrid, Mailgun,
      etc.) and the settings you’ve entered.
    - **WordPress & Plugin Versions:** Your WordPress version, FluentSMTP version,
      and versions of any other relevant plugins (like your mail logging plugin 
      if you’re using one).
    - **Kinsta Environment Details:** Any information about your Kinsta setup that
      might be relevant, such as PHP version, Kinsta CDN settings, or any specific
      configurations you’ve made within your Kinsta account related to email.
    - **Error Logs:** Any error logs from FluentSMTP, WordPress, or your SMTP provider
      that might shed light on the problem. You can usually find these logs within
      your WordPress dashboard (if logging is enabled), your hosting account, or
      your SMTP provider’s interface.
    - **Steps to Reproduce:** A clear set of steps that we can follow to reproduce
      the issue on our end, if possible.
    - **Test Email Results:** The results you’re seeing when sending test emails
      with and without the `return-path` option enabled in the Email Header.
 * Our experts will be happy to assist you further with your specific use case once
   you open a ticket and provide this information. We’ll work with you to diagnose
   the root cause of the problem and find a solution.

Viewing 1 replies (of 1 total)

The topic ‘Kinsta PHP mailer problem’ is closed to new replies.

 * ![](https://ps.w.org/fluent-smtp/assets/icon.svg?rev=2458343)
 * [FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider](https://wordpress.org/plugins/fluent-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluent-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluent-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/fluent-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluent-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluent-smtp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ibrahim Sharif](https://wordpress.org/support/users/ibrahimsharif/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/kinsta-php-mailer-problem/#post-18573938)
 * Status: resolved