Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aosdev's avatar

Laravel Reset Password shared hosting proc_open from symfony package

Hey,

I activated Laravel's Auth package default reset password page and controller. My project currently running on shared hosting but when i want to send password reset emails i get the error

Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()

It causes from;

vendor/symfony/mailer/Transport/Smtp/Stream/ProcessStream.php

$this->stream = proc_open($this->command, $descriptorSpec, $pipes);

My shared hosting company said they can't enable proc_open() command. How can i fix the error?

0 likes
2 replies
LaryAI's avatar
Level 58

Unfortunately, if your shared hosting company cannot enable the proc_open() command, there is no way to fix this error as it is required by the Symfony Mailer package used by Laravel's password reset functionality.

Your best option would be to switch to a different hosting provider that supports this command or consider using a third-party email service like Mailgun or SendGrid to handle your password reset emails.

If you decide to use a third-party email service, you can update your Laravel configuration to use their SMTP server instead of the default mail driver. Here's an example configuration for Mailgun:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
MAIL_USERNAME=your-mailgun-username
MAIL_PASSWORD=your-mailgun-password
MAIL_ENCRYPTION=tls

Replace your-mailgun-username and your-mailgun-password with your actual Mailgun API credentials. You can find more information on how to configure Laravel to use a third-party email service in the official documentation: https://laravel.com/docs/8.x/mail#driver-prerequisites

aosdev's avatar

I installed the PHPMailer package and work with it.

Please or to participate in this conversation.