このファンクションは、電子メールにApplication Expressインスタンスのイメージが含まれるときに、前にURLを付けたイメージを取得します。
構文
APEX_MAIL.GET_IMAGES_URL return VARCHAR2;
パラメータ
なし
例
次の例では、Oracleロゴのイメージを含む注文確認の電子メールを送信します。
declare l_body clob; l_body_html clob; begin l_body := 'To view the content of this message, please use an HTML enabled mail client.' || utl_tcp.crlf; l_body_html := '<html><body>' || utl_tcp.crlf || '<p>Please confirm your order on the <a href="' || apex_mail.get_instance_url || 'f?p=100:10">Order Confirmation</a> page.</p>' || utl_tcp.crlf || '<p>Sincerely,<br />' || utl_tcp.crlf || 'The Application Express Dev Team<br />' || utl_tcp.crlf || '<img src="' || apex_mail.get_images_url || 'oracle.gif" alt="Oracle Logo"></p>' || utl_tcp.crlf || '</body></html>'; apex_mail.send ( p_to => 'some_user@somewhere.com', -- change to your email address p_from => 'some_sender@somewhere.com', -- change to a real senders email address p_body => l_body, p_body_html => l_body_html, p_subj => 'Order Confirmation' ); end;