Home » SQL & PL/SQL » SQL & PL/SQL » How I can increase size of message UTL_MAIL I need to send more than 10,000 characters (10g(10.2.0.5) on windows2008)
How I can increase size of message UTL_MAIL I need to send more than 10,000 characters [message #609530] Sun, 09 March 2014 09:29 Go to next message
arhaan
Messages: 5
Registered: March 2014
Location: MALAYSIA
Junior Member
Dear friends,

please let me know how I can increase size of message UTL_MAIL
I need to send more than 10,000 characters??





PROCEDURE send(sender IN VARCHAR2 CHARACTER SET ANY_CS,
recipients IN VARCHAR2 CHARACTER SET ANY_CS,
cc IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
bcc IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
subject IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
message IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL,
mime_type IN VARCHAR2 CHARACTER SET ANY_CS
DEFAULT 'text/plain; charset=us-ascii',
priority IN PLS_INTEGER DEFAULT 3);

Thanks in Advance...

Re: How I can increase size of message UTL_MAIL I need to send more than 10,000 characters [message #609532 is a reply to message #609530] Sun, 09 March 2014 09:48 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
use a PL/SQL string which can be 32767 in length
Re: How I can increase size of message UTL_MAIL I need to send more than 10,000 characters [message #609564 is a reply to message #609532] Mon, 10 March 2014 01:25 Go to previous messageGo to next message
arhaan
Messages: 5
Registered: March 2014
Location: MALAYSIA
Junior Member
Thank you veru much for your quick reply!!!!

can you give me one example so that i can follow it up please!!!

Regards,
Arhaan
Re: How I can increase size of message UTL_MAIL I need to send more than 10,000 characters [message #609570 is a reply to message #609564] Mon, 10 March 2014 02:03 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

An example of what? UTL_MAIL? Just search here there many topics on this.

Re: How I can increase size of message UTL_MAIL I need to send more than 10,000 characters [message #609631 is a reply to message #609570] Mon, 10 March 2014 08:54 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
http://www.lmgtfy.com/?q=utl_mail+example
Re: How I can increase size of message UTL_MAIL I need to send more than 10,000 characters [message #609683 is a reply to message #609631] Tue, 11 March 2014 03:43 Go to previous message
vslabs
Messages: 26
Registered: March 2014
Location: Cape Town
Junior Member
Bluntly put. UTL_MAIL is a piece of smelly brown stuff. It does not support attachments larger than 32KB (as it uses PL/SQL strings that cannot exceed 32KB). It is also written using GoTo statements - an epic fail in my view.

You need to use UTL_SMTP directly. Manually format the e-mail contents and attachments as per MIME specifications. It is not that difficult. Remember to base64 encode binary attachments.

Back with Oracle 9i, there was a maildemo example from Oracle, that used UTL_SMTP and demonstrated the basics fairly well. There are also numerous source code examples using UTL_SMTP on the web - and examples of MIME formatting you can easily create and examine using your own mail reader.
Previous Topic: Excute procedure
Next Topic: partition on oracle big size tables ?
Goto Forum:
  


Current Time: Wed Apr 24 23:25:35 CDT 2024