Page 1 of 1

Problems with DSSendMail

Posted: Wed Nov 19, 2003 10:47 am
by goethami
Hi,

I do have problems with using "DSSendMail". This is the error that I get (see below). Do I have to change the txt-file (and wher do I have to put it) or is it something else ?
It also seems that a file, named sendmail_Demografietest.sh" is made but where can I find that file ? Sorry, I'm not a UNIX-professional !

Greetz from Belgium

error msg :
Demografietest..JobControl (DSSendMail): Error when executing command: "sendmail_Demografietest.sh"
*** Output from command was: ***
SH: sendmail_Demografietest.sh: not found

The following parameters in the call to DSSendMail were not mentioned in the file 'dssendmail_template.txt': server

Contents of command file:
#! /usr/bin/ksh
/usr/lib/sendmail -t <<////
From: michael.goethals@azf.vlaanderen.be
To: michael.goethals@azf.vlaanderen.be
Subject: TEST

TESTBODY

**************************************************
STATUS REPORT FOR JOB: Extract01
Generated: 2003-11-19 17:04:22
Job start time=2003-11-19 17:04:01
Job end time=2003-11-19 17:04:22
Job elapsed time=00:00:21
Job status=2 (Finished with warnings)
Stage: Trsf_Extract, 447775 rows input
Stage start time=2003-11-19 17:04:02, end time=2003-11-19 17:04:11, elapsed=00:00:09
Link: Extract, 447775 rows
Link: Input_Bronbestand, 447775 rows
////

Posted: Fri Oct 27, 2006 12:03 am
by sudeepmantri
Most probably u have given the wrong syntax

Syntax

DSSendMail("From:abcd\nTo:efgh\nSubject:dddd\nAttach:dddd\nBody:dddd")

If you have multiple target email id separate them by a comma and then a space
eg user1,<space>user2

If u have multiple attachements separate them by comma

Posted: Fri Oct 27, 2006 12:05 am
by chulett
Why in the heck are you running around, replying to ancient posts? :?

There's no need to add this bit of advice to every dang post you can find here...