I want to sent emails to clients from my Laravel project. Following are my mail configuration:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.easyname.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=ssl
I could not sent emails with these settings and used to get the following error:
stream_set_blocking() expects parameter 1 to be resource, null given
I then contacted my web hosting provided. They suggested me to use the mailbox username for the email id [email protected]. The mailbox username is 112627mail2. I then wrote the username 112627mail2 instead of the email address. This time I got the following error:
Swift_RfcComplianceException in MailboxHeader.php line 345:
Address in mailbox given [112627mail2] does not comply with RFC 2822, 3.6.2.
I tried but could not find an answer on how to use a username instead of the email address in mail configuration. Please help.