Swift_TransportException when when user register

239 Views Asked by At

I'm building my website using PyroCMS and it gives me an error when user submit his/her register form.

Swift_TransportException
Process could not be started [The system cannot find the path specified. ]

By searching about this error I found this answer. But it didn't worked for me.

Follow is my .env file fields. Is this problem with these configurations or else?

APP_ENV=local
INSTALLED=true
APP_KEY=app_key
APP_DEBUG=true
DEBUG_BAR=false
DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=pyrocms
DB_USERNAME=root
DB_PASSWORD="123"
APPLICATION_NAME="Default"
APPLICATION_DOMAIN=127.0.0.1:8001
APPLICATION_REFERENCE=default
DEFAULT_LOCALE=en
APP_TIMEZONE=Asia/Colombo
APP_URL=http://127.0.0.1:8001
ADMIN_USERNAME=admin
[email protected]
ADMIN_PASSWORD=password
1

There are 1 best solutions below

0
dilusha_dasanayaka On

Reason for this error was I forgot to configure email setting as @Ryan said. Error was fixed when I configured my mail settings. In my case I had a gmail account. So add followings to my .env file.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=yourEmail
MAIL_PASSWORD=yourPassword
MAIL_ENCRYPTION=tls

You can read a comprehensive blog about laravel mail settings from here.