Re: Job Alert - messages
Tom is doing a fantastic job here and I dont want to step in..
His solution is the correct one, but if quick and dirty you could always punt!
and use SNDDST.
for more complex you can use api - QtmmSendMail (attachments - HTML)
jamie
Tom is doing a fantastic job here and I dont want to step in..
His solution is the correct one, but if quick and dirty you could always punt!
and use SNDDST.
PHP Code:
w1email = %trim(emailad(@USER : 'L'));
exfmt win1;
if w1email <> *blanks;
//SNDDST TYPE(*LMSG) TOINTNET((jamie@code400.com)) DSTD('THis is the subject')
// LONGMSG('this is the long message')
cmdstring = 'SNDDST TYPE(*LMSG) TOINTNET((' +
%trim(w1email) +
')) DSTD(' + Q + SUBJECT + Q + ')' +
' LONGMSG(' + Q + longmessage + Q + ')';
cmdlength = %len(%trim(cmdstring));
$command(cmdstring:cmdlength);
endif;
jamie



It's just I can't get the download to work. It seems to be looking for a user space that doesn't exisit. I can get a message theough SNDDST and i have MMAIL working.

Comment