Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
EmailServer
varchar2(30) := 'mail.Test.com';
conn UTL_SMTP.CONNECTION;
/* UTL_SMTP package establish a connection with the SMTP server */
mesg_body varchar2(4000)
/* Variable for storing HTML code */
:= '
<html>
<head>
<title>Oracle Techniques By Sameer Wadhwa</title>
</head>
<body bgcolor="#FFFFFF" link="#000080">
<table cellspacing="0" cellpadding="0" width="100%">
ail in HTML
</td>
</table>
<ul>
<li><b><a href="www.geocities.com/samoracle">Oracle Techniques is for
DBAs </li>
<l><b>
</ul>
</body>
</html>';
BEGIN
/* Open Connection */
/* Hand Shake */
mesg:=
'Date: '||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' )|| crlf ||
'From:'||SendorAddress|| crlf ||
'Subject: Mail Through ORACLE Database' || crlf ||
'To: '||ReceiverAddress || crlf ||
'' || crlf ||mesg_body||'';
/* Closing Connection */
utl_smtp.quit( conn );
/* End of logic */
END;
/