主题长度超过47的UTL_mail.send问题

时间:2016-12-29 09:15:12

标签: oracle

我正在使用 utl_mail.send 在我的Pl-SQL包中自动发送电子邮件。 当我使用超过47的主题字符长度时,电子邮件的正文已损坏(附上截图)。较短的主题长度电子邮件即将完美。

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

<code>enter image description here</code>

任何人都可以帮助我解决这个问题。

1 个答案:

答案 0 :(得分:2)

我今天早些时候在Does UTL_MAIL have an attachment limit of 32k上看过这篇文章AskTom,这似乎是一个错误。正如他所建议的那样,您应该在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      => 'sender@ru.com" , 
                    recipients  => "powerusers@ru.com" , 
                    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.