Five Stars

Unable to send emails using Gmail: tSendMail

Hi,

 

I have been trying to export the data from Excel and send through email.

 

Mapping.JPG

 

 

Components_1.JPG

 

 

But am getting the below error while executing the job.

[statistics] connecting to socket on port 3720
[statistics] connected
Exception in component tSendMail_1 (Name)
javax.mail.AuthenticationFailedException: failed to connect
at javax.mail.Service.connect(Service.java:322)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at local_project.Name_2_0.Name.tDBInput_2Process(Name.java:1180)
at local_project.Name_2_0.Name.runJobInTOS(Name.java:1572)
at local_project.Name_2_0.Name.main(Name.java:1423)
[statistics] disconnected

Job Name ended at 23:58 10/08/2018. [exit code=1]

 

Note : I would need to provide the OTP each and every time I login to gmail. Does this has any significance over here?

 

Your help would be appreciated !!

 

Thanks !!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: Unable to send emails using Gmail: tSendMail

I have used the Gmail App Password and tsendmail is working fine now.

App Password can be taken from Google account settings.
5 REPLIES
Employee

Re: Unable to send emails using Gmail: tSendMail

Hi,

 

    Could you please disable the secondary OTP authentication and try to send the email?

 

Warm Regards,

 

Nikhil Thampi

Five Stars

Re: Unable to send emails using Gmail: tSendMail

Thanks Nikhil !!

 

I couldn't able to do that as you said. Please find the screenshot below. Please suggest If any other approach for this.

Gmail_2nd_step_verification.JPG

Employee

Re: Unable to send emails using Gmail: tSendMail

Hi,

 

    Could you please create another email id and try to send the mail where you need to turn off the two step authentication?

 

Warm Regards,

 

Nikhil Thampi

 

Five Stars

Re: Unable to send emails using Gmail: tSendMail

Hi,

 

I have tried using another email with 2nd step verification turned off. But I couldn't able to send mail in this step as well.

 

Normal_Gmail.JPG

Five Stars

Re: Unable to send emails using Gmail: tSendMail

I have used the Gmail App Password and tsendmail is working fine now.

App Password can be taken from Google account settings.