用asp,jsp实现起来应该很容易只知道oracle有HTTP服务,不知道有没有SMTP

解决方案 »

  1.   

    oracle有utl_smtp package,可以发送邮件。
      * EXAMPLES
      *   Retrieve the home page from http://www.acme.com/
      *
      *   DECLARE
      *     c utl_smtp.connection;
      *
      *     PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
      *     BEGIN
      *       utl_smtp.write_data(c, name || ': ' || header || utl_tcp.CRLF);
      *     END;
      *
      *   BEGIN
      *     c := utl_smtp.open_connection('smtp-server.acme.com');
      *     utl_smtp.helo(c, 'foo.com');
      *     utl_smtp.mail(c, '[email protected]');
      *     utl_smtp.rcpt(c, '[email protected]');
      *     utl_smtp.open_data(c);
      *     send_header('From',    '"Sender" <[email protected]>');
      *     send_header('To',      '"Recipient" <[email protected]>');
      *     send_header('Subject', 'Hello');
      *     utl_smtp.write_data(c, utl_tcp.CRLF || 'Hello, world!');
      *     utl_smtp.close_data(c);
      *     utl_smtp.quit(c);
      *   EXCEPTION
      *     WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
      *       utl_smtp.quit(c);
      *       raise_application_error(-20000,
      *         'Failed to send mail due to the following error: ' || sqlerrm);
      *   END;