Email not sending in laravel 7 - laravel

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 email is not receiving on the other hand so please anyone help me here in this issue that where i am doing the error
Controller code is
Mail::send('email.username_email',['data'=>$data],function ($message){
$message->from("xxxxx", "HCML Lab");
$message->subject('UserName Change');
$message->to("xxxxxx");
});

Related

Swift_TransportException Connection to ssl://mail.mydomain_name.com:465

I am working with laravell 8.77.1 . When I am trying to send from my application, gettig this error
Swift_TransportException Connection to ssl://mail.mydomain_name.com:465
Swift_Transport_AbstractSmtpTransport::getFullResponse
vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:475.
I am new to Laraval.
Any help would be apperciated.
You should enter a valid mail server and all other properties in your .env file.
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

im getiing fwrite() when i try to send email through laravel

I was sending normal until I start getting this error
fwrite(): send of 18 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
this is my .env
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=4fe075e8cb5300
MAIL_PASSWORD=5800191ac8e718
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=hello#example.com
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
FILESYSTEM_DRIVER=public
and this is my config file
what is the problem here

Connection could not be established with host smtp.gmail.com [Connection refused #111]

MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=sample#gmail.com MAIL_PASSWORD=passowrd MAIL_ENCRYPTION=tls
Its working fine on local but on the server its not working and gives me this error:
Connection could not be established with host smtp.gmail.com [Connection refused #111]

Proxy for ethereum wallet

Env: Ubuntu 16.04
I am working behind a proxy. Wanted to know how to pass the proxy info to the Ethereum wallet.
My http_proxy and https_proxy are set still it is not taking
when i start the ethereum wallet i see that following error
[2017-07-25 11:12:15.030] [ERROR] updateChecker - Error checking for update { RequestError: Connection timed out on request to api.github.com
at ClientRequest.req.once.err (/home/nokia/go-ether/mist/linux-unpacked/resources/app.asar/node_modules/got/index.js:73:21)
at ClientRequest.g (events.js:286:16)
at emitOne (events.js:101:20)
at ClientRequest.emit (events.js:188:7)
at Timeout.timeoutHandler (/home/nokia/go-ether/mist/linux-unpacked/resources/app.asar/node_modules/timed-out/index.js:16:8)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)
code: 'ETIMEDOUT',
message: 'Connection timed out on request to api.github.com'
which i think is coming because it is not able to access proxy settings.
So how can i pass the proxy info to the wallet
Thanks

Magento Nginx 502 Gateway Error

After updating Magento with Patch 6788 and update the Intenso Theme I am getting the following error on some of the product URLs:
2015/11/14 16:55:12 [notice] 1594#0: signal process started
2015/11/14 16:56:10 [error] 1602#0: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 69.204.XXX.XXX, server: localhost, request: "GET /houseware/karu-non-stick-bowl-w-g-16cm.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:7161", host: "107.170.XXX.XXX", referrer: "http://107.170.XXX.XXX/houseware.html"
Basically I am getting a 502 on some of the product pages.
does anyone knows how to resolve this.
I have NGINX server + PHP_FPM + MYSQL setup.

Resources