2016-12-29 4 views
0

私のPl-SQLパッケージでメールを自動化するのにutl_mail.sendを使用しています。 件名チャーターの長さが47以上の場合、電子メールの本文が破損しています(スクリーンショットを添付)。より短い対象の長さの電子メールが完璧に来ている。件名の長さが47より大きい場合はUTL_mail.sendに問題があります

declare 
begin 
     utl_mail.send(sender => '[email protected]', 
         subject => 'test10 Test10 more than 47 test 1234567890912312453254325345', 
         message => 'Test', 
         mime_type => 'text/plain; charset=us-ascii', 
         recipients => '[email protected]'); 
end; 

<code>enter image description here</code>

誰もがこの問題を持つかもしれないものを私を助けてもらえます。

+0

答えがあなたの問題を解決しますか? –

答えて

2

私はこの記事をDoes UTL_MAIL have an attachment limit of 32kAskTomに今日読んでおり、これはバグであるようです。彼は助言として、あなたはMOSCにパッチをサポートするためにチェックする必要があります:

質問:

I am on 10g release 2 on windows 64 bit. 
When I tried to send an email with subject more than 44(or so) characters . it gets truncated. 
Is there any limitation in using this package ? 
I could not see any limitations specified in the documentation or in metalink. 

彼の無名ブロック:

begin 
    utl_mail.send (sender  => '[email protected]" , 
        recipients => "[email protected]" , 
        subject  => "Process is completed for both Sales Order Data." 
        test  => "Test"); 
end; 

アスカーの出力(あなたに似ています):

Subject: Process is completed for both Sales Order D 

=?WINDOWS-1252?Q?ata.?= 
X-Priority: 3 
Content-Type: multipart/mixed; 
boundary="------------4D8C24=_23F7E4A13B2357B3" 

This is a multi-part message in MIME format. 
--------------4D8C24=_23F7E4A13B2357B3 
Content-Type: text/plain; charset=us-ascii 
Content-Transfer-Encoding: 7bit 

Test 

トムの回答:

I see some filed issues regarding this with support. 
Your options would be 
a) file an issue with support and see if a patch exists for your system. 
b) use utl_smtp to send the mail yourself. 
関連する問題