Category : email

Thanks for your help. In my projet laravel api(v8) if I send an email in function, api always return false, but I can receiver my email. Mail::to(‘customer_email’)->send(’email contract’); if I remove function email, I can get reponse json, api works very well. I think problem in function "laravel Mail", but I don’t understand why ? ..

Read more

I use Mailtrap in development mode. this send verification email to mailtrap . In real world, it need to send verify mail to user email address. How replace gmail service in laravel project . what are requirements for this gmail service. here is env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=exchange DB_USERNAME=root DB_PASSWORD= BROADCAST_DRIVER=log CACHE_DRIVER=file FILESYSTEM_DRIVER=local QUEUE_CONNECTION=sync SESSION_DRIVER=file ..

Read more

i know how to send email but i want to know how to receive email after submitting the form from many user? this is .env file MAIL_DRIVER=imap MAIL_HOST=imap.gmail.com MAIL_PORT=993 [email protected] MAIL_PASSWORD=mypassword MAIL_ENCRYPTION=tls [email protected] MAIL_FROM_NAME="${APP_NAME}" this is controller <?php namespace AppHttpControllers; use IlluminateHttpRequest; use IlluminateSupportFacadesMail; use AppMailSendMail; class SendEmailController extends Controller { public function index() { ..

Read more

I am working on a Laravel project and try to send emails using mailjet. Sending mails local works fine, but using the same settings on my centos 7 webserver gives me an error which I can’t resolve for days now. .env settings MAIL_MAILER=smtp MAIL_DRIVER=smtp MAIL_HOST=in-v3.mailjet.com MAIL_PORT=587 MAIL_USERNAME=*** MAIL_PASSWORD=*** MAIL_ENCRYPTION=tls [email protected]***.com MAIL_FROM_NAME="${APP_NAME}" Sending the email Mail::send(’emails.auth.verify-email’, ..

Read more

I apply foreach loop in the email configuration smtp settings dynamically from database.there are multiple smtp servers in smtp server table. i am selecting the smtp information dynamically from table according to smtp_server_id from ptocessing table and store it in in email configuration before sending email on the fly. But on first iteration the smtp ..

Read more

I tried to send an Email with Gmail account : MAIL_DRIVER=smtp MAIL_HOST=smtp.googlemail.com MAIL_PORT=465 [email protected] MAIL_PASSWORD=password MAIL_ENCRYPTION=ssl It’s worked fine. But if I want to send with my Domain Mail it’s working just for another Domain Mail, but if I want to send mail to Gmail Account it’s not working : MAIL_DRIVER=smtp MAIL_HOST=mail.mydomain.com MAIL_PORT=465 [email protected] MAIL_PASSWORD=password ..

Read more

when i am using MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=xxxx MAIL_PASSWORD=xxxxx MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=xxxxxx MAIL_FROM_NAME="${APP_NAME}" so it is giving this error Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to tcp://smtp.gmail.com:587 (Network is unreachable) while when i am using MAIL_MAILER=sendmail MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=xxxx MAIL_PASSWORD=xxxxx MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=xxxxxx MAIL_FROM_NAME="${APP_NAME}" so then error is not showing but ..

Read more

I am using Zoho SMTP Configuration DEFAULT_MAIL="gmail" MAIL_MAILER=smtp MAIL_HOST=smtp.zoho.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=mina MAIL_ENCRYPTION=ssl MAIL_FROM_NAME=Test Sales when I give space in MAIL_FROM_NAME as "Test Sales" without quotes website goes down but mail is send successfully I tried with quotes also DEFAULT_MAIL="gmail" MAIL_MAILER=smtp MAIL_HOST=smtp.zoho.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=mina MAIL_ENCRYPTION=ssl MAIL_FROM_NAME="Test Sales" I get below error message Connection could ..

Read more