0

I am using Laravel Framework on Shared Server for running ecommerce system, I am getting following error during mail sending.

(1/1) ErrorException

proc_open() has been disabled for security reasons
in StreamBuffer.php (line 295)
at HandleExceptions->handleError(2, 'proc_open() has been disabled for security reasons', '/home/--hidden--/public_html/shop/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php', 295, array('command' => '/usr/sbin/sendmail -bs', 'descriptorSpec' => array(array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w')), 'pipes' => array()))

Is there any other way to send mail?

2

1 Answer 1

0

In a shared server many times the functions that manipulate the system not working by security questions.

Laravel allows that you use many drivers like SMTP, Mailgun, Sparkpost, SES and others.

You can use Mailgun, it's a good tool for send transactional emails.

But the easier way to send email is using a SMTP account like Gmail, just configure your .env file:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=yourpassword
MAIL_ENCRYPTION=tls

I hope help you.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.