Hi guys,
I am trying to send automatic mails to some users using the mailx command. I have written a progress program for it. The format seems to be correct but the mails are not going. This is the code
define variable lc_command as char no-undo.
lc_command = "mailx".
if ip_attach <> "" then
lc_command = lc_command + " -a" + ip_attach.
output to "sndmail".
put unformatted
lc_command + " -s" + " " + ip_sub + " " + " -r" + " " + ip_from + " " + ip_to + " <<EOF" skip
ip_body skip
"EOF"
.
output close.
os-command silent chmod 777 sndmail.
os-command silent ./sndmail.
os-delete sndmail.
the ip_sub etc are input parameters and i am calling this program using gprun.i in another program.
{gprun.i ""xxsndemail.p""
"(input 'donotreply@abc.com',
input snd_mail_id ,
input '123@abc.com,
input snd_mail_sub,
input '',
input snd_mail_file)"}
Can ne 1 help me out y the mails arrent going to the users??
I am trying to send automatic mails to some users using the mailx command. I have written a progress program for it. The format seems to be correct but the mails are not going. This is the code
define variable lc_command as char no-undo.
lc_command = "mailx".
if ip_attach <> "" then
lc_command = lc_command + " -a" + ip_attach.
output to "sndmail".
put unformatted
lc_command + " -s" + " " + ip_sub + " " + " -r" + " " + ip_from + " " + ip_to + " <<EOF" skip
ip_body skip
"EOF"
.
output close.
os-command silent chmod 777 sndmail.
os-command silent ./sndmail.
os-delete sndmail.
the ip_sub etc are input parameters and i am calling this program using gprun.i in another program.
{gprun.i ""xxsndemail.p""
"(input 'donotreply@abc.com',
input snd_mail_id ,
input '123@abc.com,
input snd_mail_sub,
input '',
input snd_mail_file)"}
Can ne 1 help me out y the mails arrent going to the users??