One Star

tSendMail file too big error

I get an exception while executing a talend job that sends email with attachment file of size 42 KB. I want to know if this is caused by by SMTP server refusing the message or talend having limit. Is there any way i could specify the maimum size of attachments that are attached to tSendMAil component?
Exception in component tSendMail_2
com.sun.mail.smtp.SMTPSendFailedException: 552 5.3.4 Error: message file too big
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1215)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:586)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
6 REPLIES
Four Stars

Re: tSendMail file too big error

Hi,
I don't think that it is from SMTP Server refusing message... It should be some error in the job...
Not necessary that it is what actually message is, but could be related to something else... File size is not a problem... Can you pl show your job and smtp configuration for SendMail component?
thanks
Vaibhav
Moderator

Re: tSendMail file too big error

Hi,
Is there any file size limitation of SMTP mail Server? Could you please indicate the build version you are using so that we can take a testing.
Could you please use other mails (gmail, ourlook)to send a mail with size 42 KB attachment file to your SMTP mail Server to see if it is ok?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tSendMail file too big error

It was indeed a error in the job, there were leftover files in a folder i was trying to attach and their sizes summed up. though the problem still persists, because the maximum size is under 10MB and there is a requirement for our system to send files up to 20 MB. is there any way of increasing maximum attachment file size in the configurations of the component?
Moderator

Re: tSendMail file too big error

Hi,
Could you please open a work item jira issue of DI project on Talend Bug Tracker, our component developer will check it to see if it is possible.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tSendMail file too big error

Moderator

Re: tSendMail file too big error

Hi spiderman,
Thanks for your contribution.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.