Page 1 of 1

Can anyone give an example to send a mail with an attachment

Posted: Fri May 26, 2006 6:26 am
by puli.reddy
Dear All,

I can send a mail with the subject and body, but I amn't aware to send a mail with an attachment through server batch jobs. Could anyone help me please!

Posted: Fri May 26, 2006 6:35 am
by kduke
Attachments did not work till either Ds7.5 or Ds7.5.1.

Posted: Fri May 26, 2006 6:41 am
by puli.reddy
Thank Duke for ur information

Posted: Fri May 26, 2006 3:36 pm
by kduke
What version are you using? I have workarounds for both UNIX and DOS.

Posted: Thu Oct 26, 2006 8:56 am
by sudeepmantri
Hi, the DsSendMail has got the attachment option called Attach, just like the form to subject and the body. You also can attach multiple files separated by a comma.


Syntax


DSSendMail("From:gfgjfg\nTo:gjkfg\nAttach:a1, a2\nBody:sadfsdfgsdg")

Posted: Thu Oct 26, 2006 9:15 am
by DeepakCorning
Also there is a Routine in Built in Category "DSSendMailAttachmentTester" and if you use the Seqeuncer the Stage "Notification_Activity" gives you an option in it to specify the attachement that ou want to send.

Posted: Thu Oct 26, 2006 9:52 am
by chulett
You'll probably find that you need to UUENCODE the attachment...

Posted: Thu Oct 26, 2006 6:27 pm
by kduke
You have to do it in a shell script. There is an example in EtlStats. The shell script is called Email.ksh. It does use uuencode.