Sending Mail to Printer by using utl_smtp.rcpt.
mail_conn := utl_smtp.open_connection(mailhost, 25);
mesg := 'Date: ' ||
TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss') || crlf ||
'From: <'|| pSender ||'>' || crlf ||
'Subject: '|| pSubject || crlf ||
'To: '||pRecipient || crlf || '' || crlf || pMessage;
WHEN INVALID_OPERATION THEN
WHEN TRANSIENT_ERROR THEN
WHEN PERMANENT_ERROR THEN
WHEN OTHERS THEN
I am using above script to send mail is it possible to send this to printer.
Basically this will email to outlook with HTML Tables but we also need to send this output to printer, any idea ?
Figure out what port your network attached printer uses and use the UTL_TCP package to send the output to the right port on the printer. You can also try UTL_SMTP.
this space intentionally left blank
Click Here to Expand Forum to Full Width