tSendMail Error when deployed

Highlighted
Four Stars

tSendMail Error when deployed

I have a Talend job which only sends an email using username and password (Exchange server). When testing the job on my laptop, it works fine, when deployed on a Windows 2012 server, I get the following exception:

 

Exception in component tSendMail_1
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender

 

Any suggestion howto solve this?

 

Tags (1)
Forteen Stars

Re: tSendMail Error when deployed

@limsuser ,you need to check that from that Windows 2012 server,can you able to connect to mail server or not? if it proxy issue,you may need to set proxy by using tSetProxy component.

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Four Stars

Re: tSendMail Error when deployed

I am able to connect to the mail server (checked with telnet), it's also not a proxy issue because there's also a .NET application installed on the same server which is also sending e-mails with the same account without an exception.

Forteen Stars

Re: tSendMail Error when deployed

@limsuser ,can you check the From mail id/credentials are correct? 

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Four Stars

Re: tSendMail Error when deployed

Is it important what's in the from? Does it perform a check on the from e-mail address?

Four Stars

Re: tSendMail Error when deployed

Are there any specific java libraries needed? Is it possible to check if sending mail from java works?

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog