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
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 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.
I am having trouble with sending emails to my Gmail account.
I am getting a timeout error. And it puzzles me, because I basically copied the settings from a working project I did before.
But then I tried the working project, and it gives me the same error.
As far as I know Nodemailer's default port for Gmail is 465 which uses SSL, so this is turned on.
I have tried three different Gmail accounts, two have 2FA, one of them has setup XOAuth, the third I turned on less secure apps. Everything failed with the same error.
Here is the code snippet, where I think the trouble is:
smtpConfig =
service: "Gmail"
connectionTimeout : "7000" #waiting for 60s is annoying
greetingTimeout : "7000"
# auth:
# XOAuth2:
# user: receiverEmail
## pass: appSpecificPassword
# clientId: myClientId
# clientSecret: itIsMySecret
# refreshToken: myRefreshToken
auth:
user: receiverEmail
pass: appSpecificPassword
secure: true # use SSL
debug: true
I later put it into a function. In between I had to put the envelope together.
smtpTrans = nodemailer.createTransport(smtpTransport(smtpConfig), ->
#Setup configs are on top, because we need to config before we use the POST method according to express
)
This one doesn't even fire, when you put a console.log in there.
On Nodemailers Github I found the following to try out in the terminal:
openssl s_client -crlf -connect smtp.gmail.com:465
which should give a nice 200 response, but it doesn't, it gives me a timeout. Every other available port responded with the same.
I asked a friend to try it out on his computer and it works fine for him. So I am back searching for the problem on my computer - maybe on my operating system, node version, do we setup the configs differently and I didn't notice?
I am running out of options, so I am seeking for help here.
My firewall is off, no fuzzes about setting up extra ports in this case.
After extensive checking with my system and my internet provider I found that my router didn't like my internal IP address. So I renewed my DHCL leasing.
If you ever encounter the same problem, here are some tips for debugging.
Check for viruses: Along my deep research on the internet, I found the tip that viruses can block ports. So if you don't have a scanner, download one.
Check your firewall: Most common trouble. I checked my firewall and noticed it was offline.
Use network utilities: Do a port scan and try to ping the IP addresses
Check your email address with your local email client, try to send an email. Check incoming server and outgoing server configurations.
Check your network: Ask your provider if it is blocking email providers. Renew your network configurations.
Check your Google account if it is blocking your IP address. Happens often, if you send out a bunch of emails marked as spam, or if your account was hacked and used by somebody to send out spam.
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 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