Socket error: EOF when using ImapLibrary2 with Robot Framework - testing

I'm trying to use ImapLibrary2 for RobotFramework to connect to imap.gmail.com, find a confirmation email and then open the link to validate the account.
Open Mailbox host=imap.gmail.com username=username#gmail.com password=password port=993 is_secure=true
${LATEST} Wait For Email sender=noreply#domain.com timeout=300
${HTML} Open Link From Email ${LATEST}
Close Mailbox
At the first step, when try to connect to the imap server of gmail I get the following error: abort: socket error: EOF.
The Gmail account have the IMAP access turned on. I'm not able to figure out what the problem could be.
Thanks everyone for the help

Related

A call to SSPI failed, see inner exception. DB Mail can't send email

My db mail suddenly stopped working, the error is:
The mail could not be sent to the recipients because of the mail
server failure. (Sending Mail using Account 2 (2018-08-14T16:00:23).
Exception Message: Cannot send mails to mail server. (A call to SSPI
failed, see inner exception.).
I can't find any more info on the error, it just suddenly stopped working.
My SQL Server is 2012.
All my smtp settings are correct and nothing changed.
If it worked at one point and you haven't changed anything with your firewall, then check your email password. Also if you are using gmail - you need to check if 'lesssecure' is turned on.
Open your Google Admin console (admin.google.com).
Click Security > Basic settings .
Under Less secure apps, select Go to settings for less secure apps .
In the subwindow, select the Enforce access to less secure apps for all users radio button. ...
Click the Save button.

Jenkins: Not able to send email

I am using Jenkins 2.89.3 and setup Jenkins Editable Email Notification with triggers as Always.
Build run successfully but getting error in email sending. Console output is as:
Email was triggered for: Always
Sending email for trigger: Always
Sending email to: himanshu.jn48#gmail.com
Connection error sending email, retrying once more in 10 seconds...
Connection error sending email, retrying once more in 10 seconds...
Failed after second try sending email
Finished: SUCCESS
I have received the email when I test the configuration by sending test e-mail.
I am attaching screenshot of SMTP Configuration.link for image
Based on your plugin setup, there may be more than one configuration for SMTP available in Jenkins. Make sure, they both have these email configuration properly set
Manage Jenkins" -> "Configure System" -> "E-mail Notification
Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification"
Based on the plugin you are using, make sure appropriate SMTP section is properly configured
Was facing the same issue with Jenkins not able to send email to the recepients. Tired the above solution...It works, Thanks for the solution.
Basically, we have to configure email settings under both the sections
Manage Jenkins" -> "Configure System" -> "E-mail Notification
Manage Jenkins" -> "Configure System" -> "Extended E-mail Notification"

how to upload Files to Alfresco via Email?

I wanted to upload files via email in Alfresco.
I am using alfresco community 5.2
I have added inbound email properties in alfresco-global.properties file
and i have followed all the steps and
I sent an email as explained in below links
But I am not able to receive any files in my alfresco
I have referred the links
https://www.youtube.com/watch?v=p17GkHsLdmc
http://keytocontent.blogspot.in/2010/05/upload-files-to-alfresco-via-email.html
Steps I have followed
1. set the properties in global properties
email.inbound.enabled=true
email.server.enabled=true
email.server.port=25
email.server.domain=vikash-laptop.com
email.inbound.unknownUser=anonymous
email.server.allowed.senders=.*
created a user named as hello1
email id=> hello1#vikash-laptop.com
added this user into EMAIL_Contributors group
Created a site named as test site
created a folder in Document Library>>Dropoff and
applied aspect email aliasable
added alias properties as dropoff
so the my email address will be dropoff#vikash-laptop.com
tried to send email to dropoff#vikash-laptop.com
and hello1#vikash-laptop.com both
Still i am not receiving any files which i have attached in email.
How did you try and send an email to vikash-laptop.com? You need to make sure the host name you are specifying (vikash-laptop.com) is going to resolve to the IP address of your alfresco server (I assume running on your laptop).
You also need to make sure that your mail client will resolve that domain correctly and can connect to the alfresco server. For example, if you were going to try and send an email from gmail, that would have problems unless vikash-laptop.com was a registered domain so that the gmail servers could resolve it and access port 25 on that machine from the internet.
If you just want to do a simple test on your laptop without a mail client where alfresco is running you can just telnet to the alfresco host and try and connect to that port (google "test smtp telnet" for a lot of suggestions) and see that it is listening on port 25 as you configured it and that you can send test email.
I have downloaded smtp mail sender and it is working. and now i am able to receive email attachments in alfresco.

TST10 script is giving error: the handle is invalid

i am trying to connect to a remote machine(Windows) using TST10 script.i have the VPN access to that machine. i want to automate the telnet session using the TST10 script, kinldy help.
my code is:
xx.x.xxx.xx
WAIT "login:"
SEND "domain\username\m"
WAIT "password:"
SEND "VPNpassword\m"
WAIT ">"
SEND "command 1\m"
WAIT ">"
SEND "command 2\m"
Here the "username" is the VPN username and not the user account name on the remote machine and "domain" is different from my computer's domain.
If i am telnetting manually from my command prompt with the same VPN credentials, it is working.
But, using the script, i am getting an error : the handle is invalid.
Do i need to give the credentials of the user account in the script or these VPN credentials can also work.
Also, please tell me the reason why i am able to do it manually and why not using the script.
you need a double backslash between your domain and username:
xx.x.xxx.xx
WAIT "login:"
SEND "domain\\username\m"

The host 'smtp' could not be found

I am getting the following error while sending mail by click of a button in MS access form
I am using sendObject to send mail using vba code.
The host 'smtp' could not be found.
Please verify that you have entered
the server name correctly. Account:
'pop3', Server: 'smtp', Protocol:
SMTP, Port: 25, Secure(SSL): No,
Socket Error: 11001, Error Number:
0x800CCC0D
Points to note:
I am able to send and receive mails
in my outlook; Problem is only when
send mails through VBA access
application.(Means it is not a
outlook client configuration problem)
When i copy paste the Vba application to another PC, i could
successfully send emails without any
error. (means this is not a vba
access application problem)
Please help.
Either the SMTP server "smtp" is available from your second machine and not the first, or else there is some change to the mail settings and/or security when moving between the two machines.
Is your SMTP server actually called 'smtp'?