Email sending with attachment

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
basu.ds
Participant
Posts: 118
Joined: Tue Feb 06, 2007 12:59 am
Location: Bangalore

Email sending with attachment

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are two example "tester" routines in the Repository that show you precisely how to do this.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What 7.x version? 7.5 adds an attachment option to the Notification Activity stage, hence the question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I have a routine which is part of EtlStats which can do attachments in both UNIX and DOS on older versions.
Mamu Kim
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post 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
basu.ds
Participant
Posts: 118
Joined: Tue Feb 06, 2007 12:59 am
Location: Bangalore

Post by basu.ds »

Thanks a lot to everybody Is that possible to send mail to multiple persons in a single time?using DSSendMailAttachmentTester
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
basu.ds
Participant
Posts: 118
Joined: Tue Feb 06, 2007 12:59 am
Location: Bangalore

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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".
-craig

"You can never have too many knives" -- Logan Nine Fingers
basu.ds
Participant
Posts: 118
Joined: Tue Feb 06, 2007 12:59 am
Location: Bangalore

Post by basu.ds »

there is no administrator for my system can you give some information how to resolve this?
Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How do you send email to multiple addressees without DataStage? Use the same addressing convention within DataStage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply