I want to email for client in my project when i try to mail the client it shows the following error (Connection could not be established with host smtp.gmail.com [Unable to find the socket transport "tlsl" - did you forget to enable it when you configured PHP? #178257984]) i google it but not found any solution any body help thank in advance.
this is my .env file
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=test#gmail.com
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=tls
Problem must be related cahced config, Can you try again send email after clear config,
php artisan config:cache
I hope this will help
Pay attention when you use gmail as smtp server. It has 2 ports: 465 and 587. If you choose 587, you need to use ssl like encryption, and if you choose 465, use tls. After that, you need to configure your gmail account to allow less secure apps: https://support.google.com/accounts/answer/6010255.
Don't forget restart your laravel server each time your update your .env config file.
Related
I am having username and password for a email account, but not smtp host name and port number,
I am using nodemailer.
Is it possible to send mail using only the username and password for the email account.
Edit: don't tell me to close, I have this doubt, If you know the answer tell me, this is not the silly thing, In my office they told me use only username and password. I searched online for it but did not got any idea.
You would always need smtp server details all the time along with username and password. And completely depends on smtp server how it handles the smtp details.
Few examples of smtp servers -
smtp.gmail.com
smtp.sendgrid.com
smtp.zoho.com
smtp.dreamhost.com
NodeMailer provides support for transports other than SMTP. You can check the link https://nodemailer.com/transports/. Looking in the documentation, it doesn't need SMTP server for these transports, you can give it a try.
In built support is there for below tansport.
sendmail – for piping messages to the sendmail command
SES – is a Nodemailer wrapper around aws-sdk to send mail using AWS SES
stream – is just for returning messages, most probably for testing
I am testing Monit on a Nectar Cloud Instance, and am having trouble sending alerts when specific conditions are met. I am attempting to use gmail:
set mailserver smtp.gmail.com port 587 USERNAME "username" PASSWORD "password" using tlsv1
But when conditions are met, and emails are meant to sent, the log file shows:
Mail: 530 5.7.0 Must issue a STARTTLS command first. #randomstring - gsmtp
I have looked around other threads, and followed simple fixes like making sure less secure apps are allowed, but cannot find any Monit specific fixes. Any ideas?
Thanks in advance.
I am using a linux based device where we use nullmailer to send email using smtp.
nullmailer version: 1.0.5
User-Agent: Mutt/1.5.19 (2009-01-05)
In the existing mechanism, our smtp server does not have any authentication.It is just a plain text.
Now we need a secure authentication for smtp.
By googling I found some work around for this,the suggestions are to change the values in
/etc/nullmailer/remotes. I have changed as per the suggestions and tried to run nullmailer-send but no luck.
Here is the list of changes I have made in /etc/nullmailer/remotes :
using theses http://blog.janjonas.net/2011-04-22/configure-nullmailer-smtp-authentication http://metz.gehn.net/2012/11/nullmailer-with-starttls/ references
1. smtp.gmail.com smtp --user=[GMAIL_USERNAME#gmail.com] --pass=[GMAIL_PASSWORD]
2. smtp.gmail.com smtp --auth-login --user=[GMAIL_USERNAME#gmail.com] --pass=[GMAIL_PASSWORD]
3. smtp.gmail.com smtp --port=25 --user=[GMAIL_USERNAME#gmail.com] --pass=[GMAIL_PASSWORD]
4. smtp.gmail.com smtp --port=587 --starttls --user=[GMAIL_USERNAME#gmail.com] --pass=[GMAIL_PASSWORD]
5. smtp.gmail.com smtp --port=465 --auth-login --user=[GMAIL_USERNAME#gmail.com] --pass=[GMAIL_PASSWORD] --ssl
None of them are working.
Again I found that the version of nullmailer(1.0.5) may not support any secure authentication (ssl/tls/starttls). I validated this concept by --help
See this reference : http://www.troubleshooters.com/linux/nullmailer/
-p, --port=INT Set the port number on the remote host to connect to
--user=VALUE Set the user name for authentication
--pass=VALUE Set the password for authentication
--auth-login Use AUTH LOGIN instead of AUTH PLAIN in SMTP
[You can see there is no options for ssl/tls/starttls]
So, I updated the version of nullmailer from 1.0.5 to 1.11 But when I execute nullmailer-send to send the queued messages in /var/nullmailer/queue but met with below error
Could not load the config
Making the story short, here is the list of my concern :
1. Can I secure the smtp channel using the existing version of nullmailer.
2. Is nullmailer 1.0.5 does not supprt any secured authentication. (ssl/tls/starttls)
3. If it does how can I set the security what should be the /etc/nullmailer/remotes value.
4. If I update the version from 1.0.5 to 1.11 what are the dependencies.
I went through almost all the links provided by google, but still in a big puzzle.
Help would be highly appreciate.
I may missed something important.
Please ask anything if this issue is not clear to anyone.
Nullmailer 1.0.5 does not support tls/ssl. Update your nullmailer to latest (1.11)
I can't seem to get imaps for gmail working through the JMeter Mail Reader Sampler. It times out all the time (Error 500). I'm using the following settings:
Protocol: imaps
Server Host: imap.gmail.com
Server Port: 993
Username: xxx#gmail.com
Password: ******
Folder: INBOX
Security Settings: Use SSL
I've also tried using "Use StartTLS" without any luck.
Ensure you are using right port.
See into %JMETER_HOME%/bin/jmeter.log for possible error messages if still fails.
You can possibly try any other solution - via this java code from BeanShell Sampler, e.g..
I had many issues and finaly I managed to get e-mails from Gmail account, but only for IMAPS protocol. For POP protocol I did not manage to do it. First off all, you must allow IMAP in your Google account.
You can see how I resolve it here: How to check Emails from Jmeter
I am new to James Mail Server. I configured as the steps mentioned by James.
I can send send mails to internal network, but I am not able to send mails to external network like gmail.
Somebody please help me to resolve the issue
Thanks in advance
Rohith
Sorry for the late but it may help some people in the future.
If you want configure JAMES to send mails to external network you must edit the file conf.xml in the ${JAMES_DIR}/apps/james/SAR-INF.
Uncommented these line to define an SMTP relay server if necessary through the gateway:
<processor name="transport">
<mailet match="All" class="RemoteDelivery">
...
<gateway> smtp.gmail.com </gateway>
<gatewayPort>25</gatewayPort>
</mailet>
</processor>
Example to use the gmail relay server:
POP Server: pop.gmail.com (on activation of the POP option of GMail)
SMTP Server: smtp.gmail.com
IMAP Server: imap.gmail.com
EDIT: gmail requires an authentication so you must set the gatewayusername and the gatewayPassword markups:
<gatewayusername>login</gatewayusername>
<gatewayPassword>pass</gatewayPassword>
See http://mail.google.com/support/bin/answer.py?answer=10350