tSendMail with attach file

One Star

tSendMail with attach file

Hello,
I need to send the same attach file to multiple email.
It works well when I don't attach a file, but when a file is attach, only one email is sent !
Is it a bug or I forget some parameters ?
Thanks in advance for your help
PS
I'm using TOS3.03
Community Manager

Re: tSendMail with attach file

Hello
Please upload some screenshots of your job.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tSendMail with attach file

We set a global variable for the File Name at the beginning of the job and then at the end we use the global varialbe as a link to the file that we put in the email. Keeping the files on the network is more secure. However, the same solutions would work for attachements.
Below is the full value of the FileName global variable:
"\\\\FILESERVER\\Data\\EXPERIAN\\OUT\\TRIGGER\\" + TalendDate.formatDate("yyyy",TalendDate.getCurrentDate()) + "\\" + TalendDate.formatDate("yyyyMM",TalendDate.getCurrentDate()) + "\\EXP" + TalendDate.formatDate("MMddyyyyHHmmss",TalendDate.getCurrentDate())+ ".TXT"
Below is the tSendMail, the Job, and the tSetGlobalVar where the above code is placed to create the dymanic file at the beginning.
I forgot to mention that you also need to use the same global variable FileName for the path of the output file.
Hope that helps.
Community Manager

Re: tSendMail with attach file

Hello
I try to use a tSendemail component to a attachment to more than one receiver on TOS3.0.3 and it works fine. Here are my screenshots.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tSendMail with attach file

I need to send the same attach file to email.
It works well when I don't attach a file, but when a file is attach, only one email is sent !

Is it a bug or I forget some parameters ?
Thanks in advance for your help
One Star

Re: tSendMail with attach file

I need to send the same attach file to  email.
It works well when I don't attach a file, but when a file is attach, only one email is sent !

Is it a bug or I forget some parameters ?
Thanks in advance for your help
One Star

Re: tSendMail with attach file

Hello,
I need to send the same attach file to email.
It works well when I don't attach a file, but when a file is attach, only one email is sent !
Four Stars

Re: tSendMail with attach file

Can you pl explain more...
It works well when I don't attach a file, but when a file is attach, only one email is sent !
>> can you show the job design/screenshot?

Vaibhav
Moderator

Re: tSendMail with attach file

Hi deoo,

Would you mind uploading your job design screenshots into forum?
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 with attach file

i am trying to send an email at the end of the job as well. It is erring at the build do to a missing string variable. When i move the components to a blank job it works fine?
Moderator

Re: tSendMail with attach file

Hi theonlydawn,
Could you please also upload your tSendMail component setting screenshot into forum?
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 with attach file

Here is the component's basic and advance views. I think this is some kind of bug. I moved my open studio jobs to the enterprise studio and it worked fine, no error??


Four Stars

Re: tSendMail with attach file

Hi,
I have created a log files(fatal,info,error,warn) for every job in my project.
every job create a log file with diffrent name.
i have write a appender in log properties,through this i have generated log files for every job, different name.

I need to attach this log files to tSendmail component.
I have create a joblet for this.
In joblet in tSendmail component how to add this log4j files for  all jobs.
please find my attachments
===================



Thanks in advance