sending emails from DOS command prompt

Hi,

Is there any way where we can send an email from command prompt in the batch job. We are using 3rd party utility to schedule DI jobs. There are more than 700 DI jobs which run daily. We need a mail to be sent if the job has failed. Please let us know if any one has used this.

We also can’t use any 3rd party exe as it is against security rule. Also it is not possible to modify all the jobs to use the DI mail functionality.

We are using DI 11.7 version.


sanr (BOB member since 2008-03-27)

smtp_mailer?
It’s located on your DI installation path on the /bin.


Astro :argentina: (BOB member since 2007-02-15)

There’s no native Windows/DOS capability to send emails. BLAT is a quite common 3rd-party command-line email utility, but it sounds like that’s not an option.


dnewton :us: (BOB member since 2004-01-30)

can I use smtp_mailer to send mails from batch file?


sanr (BOB member since 2008-03-27)

You can execute it from the command line, not sure what you are trying to do.
Search on this forum for the specs and parameters, i’ve tested it and i can send emails from the command line, however i could not send attachments (i don’t know if you have to).


Astro :argentina: (BOB member since 2007-02-15)

yeh its very easy try the 3rd party tool vmailer the format is given below,

d:\vmail110\vmailer.exe C:\mail.txt mailservice.com to@xxx.com from@yyy.com


prajarshi (BOB member since 2008-08-01)