Page 1 of 1

DSSendMail

Posted: Tue Apr 03, 2007 2:55 am
by sjordery
I want to use DSSendMail as a post job routine. I am unable to figure out how to give the parameters for the DSSendMail job. Is there a syntax? I am copying the DsDirector report for a run:

JenaTest..AfterJob (DSSendMail): Parameter 1 (''smtp.abcd.com','subrata.jena@abc.com','rana.sinharay@abc.com','testing','','source'') does not start with a keyword

What keyword is expected here?

Posted: Tue Apr 03, 2007 6:16 am
by chulett
All of the actual parameter names are missing from your string. And you've got an odd mixture of quotes there. Open up the DSSendMail routine by double-clicking on it in the Administrator and check the Long Description for details on exactly how to call this routine.

Posted: Tue Apr 10, 2007 12:09 am
by sjordery
okay
I got the out put.
one issue regarding this
I also wants to attach a file in the DSSendmail post job routine.
I have set the parameter as mentioned below.

From:jordery@abcd.com\nTo:pqr@abcd.com\nServer:smtp.ss.com\nAttach /usr/ctg/dbacess.txt

Here the attached file dbacess.txt is not being transferred in the mail only a blank mail is transferred.
Can you suggest me what is the problem?

Posted: Tue Apr 10, 2007 12:51 pm
by ray.wurlod
No colon after "Attach"?

Posted: Fri Apr 13, 2007 12:31 am
by sjordery
ok ray,

I gave the colon after attach still the attachment nt getting transferred.
The syntax is like this

From:jordery@abcd.com\nTo:pqr@abcd.com\nServer:smtp.ss.com\nAttach:/usr/ctg/dbacess.txt

any suggestions??

Posted: Fri Apr 13, 2007 2:01 am
by ray.wurlod
Take a look at the demonstration routine DSSendMailTesterAttachment. Try it with your values. If it works, diagnose the differences. If it doesn't work, read the error messages (double click the Result cell in the test grid) carefully. Carefully.

Posted: Fri Apr 13, 2007 4:56 am
by sjordery
Under the before-after subroutines following 4 catagories are coming
1-DSJobReport
2-DSSenmail
3-DSWaitforfile
4-ExecSH
5-ExecSHSilent
6-ExexTCL

In the designer also we can choose any of the above only.
Then how to choose the DSSendMailTesterAttachment in the after subroutine.

Please suggest.

Posted: Fri Apr 13, 2007 5:59 am
by chulett
No-one is suggesting you use it in a job. Open it via the Manager. Look at the code there. Run it by 'Test'ing it in the Manager.

Posted: Fri Apr 13, 2007 3:03 pm
by ray.wurlod
Look in the Built-In\Utilities category.

Posted: Tue Jun 05, 2007 11:46 pm
by fspdxn
I had the same issue and also tested the DSSendMailAttachmentTester routine (which works and the file was attached). I then tried adding a Body after the Attach and it worked. Guessing here, but the attachment wont be there unless you have a body definition.