Page 1 of 1

Email sending with attachment

Posted: Thu May 22, 2008 3:16 am
by basu.ds
Hi
Can any one help me out this how to send a mail with attachment using server jobs .if possible how.
Thanks in advance.

Posted: Thu May 22, 2008 5:47 am
by ray.wurlod
There are two example "tester" routines in the Repository that show you precisely how to do this.

Posted: Thu May 22, 2008 6:18 am
by chulett
What 7.x version? 7.5 adds an attachment option to the Notification Activity stage, hence the question.

Posted: Thu May 22, 2008 7:14 pm
by kduke
I have a routine which is part of EtlStats which can do attachments in both UNIX and DOS on older versions.

Posted: Thu May 22, 2008 11:26 pm
by ag_ram
You may go on using Job Control Code, Before Job Subroutine, After Job Subroutine if it is to be done in the Server Job.


DSSendMailAttachmentTester:
Send mail + attachment(s) via DSSendMail function - mainly to test the capability

DSSendMailTester
Send mail via DSSendMail function - mainly to test the capability

DSSendMail
Send simple mail message

Posted: Fri May 23, 2008 6:12 am
by basu.ds
Thanks a lot to everybody Is that possible to send mail to multiple persons in a single time?using DSSendMailAttachmentTester

Posted: Fri May 23, 2008 6:16 am
by ray.wurlod
Yes. Either send to a "list" address (everyone@domain.grg) or use multiple recipient addresses. The separator character between these may be space, may be comma, may be semi-colon; it depends upon your mail server, not upon anything in DataStage.

Posted: Mon May 26, 2008 11:16 pm
by basu.ds
Hi ray thanks a lot .but i am tried couple of times using with semicolun,space and comma also but it is not working .can you suggest any another way to do it.
Thanks

Posted: Mon May 26, 2008 11:32 pm
by chulett
Blat. Or a group contact. Or talk to your admin to see why what you tried is not working.

ps. Some systems want a comma with no extra space: "fred,ethel" rather than "fred, ethel".

Posted: Mon May 26, 2008 11:51 pm
by basu.ds
there is no administrator for my system can you give some information how to resolve this?
Thanks

Posted: Tue May 27, 2008 6:12 am
by ray.wurlod
How do you send email to multiple addressees without DataStage? Use the same addressing convention within DataStage.