Page 1 of 1

DSSendMail

Posted: Wed May 24, 2006 9:53 am
by medakiran
Hey Folks,

Can anyone help me!!!!!!!!!!
I'm getting the following warning when i'm trying to send mail using th DSSendMail After-Job subroutine.

"JobCont..AfterJob (DSSendMail): The following tokens in the 'dssendmail_template.txt' file have not been set in the call to DSSendMail: %from%,%to%"

thanks.

Re: DSSendMail

Posted: Wed May 24, 2006 10:25 am
by DeepakCorning
Did you supplied the routine all the input Parameters that it requires??

DSSendMail("From:me@here\nTo:You@there\nSubject:Hi ya\nBody:Line1\nLine2")

Posted: Wed May 24, 2006 2:48 pm
by ray.wurlod
If you are using a Notification activity in a job sequence this error results from not supplying a sender and receiver email address.

Posted: Wed May 24, 2006 3:18 pm
by medakiran
Hi Ray,

I'm trying to use the after job subroutine present in the "General" Tab under the "Job properties" for a simple server job.

Thanks.

Posted: Wed May 24, 2006 4:38 pm
by DeepakCorning
Then I am pretty sure the format you are providing in the tab is wrong.

Posted: Wed May 24, 2006 5:26 pm
by ray.wurlod
Take a look at the supplied routine DSSendMailTester to see the proper way to invoke the function.