Skip to main content

Configure PHP application to use custom SMTP server

Comments

1 comment

  • Chris Yates

    There isn’t a way to override the Platform.sh provided (Sendgrid-powered) SMTP service and variable at the PHP level that would affect the mail() function. We’d recommend you do that within your application instead, which is pretty straightforward with Drupal, Magento, WordPress, etc., or a bit more code replacement work with PHPMailer.

    You could use environment variables to differentiate between production and non-production domains if you wanted to disable mailing or use a different SMTP host.

    We also have some documentation on using SwiftMailer with Symfony as well.

    0

Please sign in to leave a comment.