Hi Experts,
I am trying to send a mail with an attachment. I used tSendMail component. To set SMTPHost and port(mail server) which I received
from my Office IT department. For testing I set the value as From : Mycomapny mail id To : Mygmail mail id. But the job is failing with the error
Exception in component tSendMail_1 javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at development20may.mail_0_1.Mail.tSendMail_1Process(Mail.java:863) at development20may.mail_0_1.Mail.tFileRowCount_1Process(Mail.java:672) at development20may.mail_0_1.Mail.runJobInTOS(Mail.java:1240) at development20may.mail_0_1.Mail.main(Mail.java:940) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) ... 7 more
disconnected.
When I searched the reason for failure, I come to know the smtp server is not configured properly. So my question here is
"Is any settings/configuration is required in Talend tool(e.g Windows-Preferrence-network settings ) to set SMTP server and send a mail successfully?"
Please help me out to fix this problem to send a mail from Talend Tool successfully.
Please find a job below(it supposed be an part of my main job of onsubjobok),
Hi
There are not any settings is required for Talend tool, it totally depends on your SMTP type, which type of SMTP server are you using? Some of SMTP vendor may require you enable the pop3/smtp feature on your email server.
Can you upload a screenshot of basic setting of tSenemail?
Best regards
Shong
Hi Shong,
Thank you so much for your reply. Now I got a light to complete this task.
My office mail server is pop3 server. I am mentioning only SMTPHost and port not the username and password, Hope it is not required. I attached the screen shot of email component.(I am not able to make out any pop3 related information in that).
Hi shong,
I am using talend 4.2.0 version.
1. I tried by populating smtp host with IPAddress/servername and port # with username and pwd(By checking need authentication checkbox - with my outlook credentials), it is failed by the same error msg mentioned above.
2. I tried by checking SSL support checkbox and STARTTLS checkbox, but getting
Exception in component tSendMail_1 javax.mail.MessagingException: Exception reading response; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
I waiting for your reply to resolve this issue. Kindly help me out.