UTL_SMTP
Seetharaman, June 04, 2001 - 3:55 pm UTC
Its really good and clarifies many a doubts within me on this package
but...
Ricardo, October 01, 2001 - 4:37 pm UTC
Where (in wish directory) must be the file to realy be attached??
Thanks.
Text attachments are not on a specified directory
Carlos Gongora, August 01, 2008 - 8:04 pm UTC
Hi All,
I have been breaking my head for long minutes thinking that the attachments should be files that would be called or sent from an specified directory on the server but email does not work that way!!!
What the SMTP server does in order to send an email with a text file attached, it's to get the text from the parameters of the SMTP commands and encode or decode the text on the fly. So when arrives to your machine it's when it gets encoded into a certain type of file.
This is the way it works to send attachments in TXT format. Usin one of the SMTP parameters you pass the text (contents of the attached file) and not the file itself. That's why you don't need to specify a path. You just specify the contents which are encoded or decoded on the fly when receiving or sending the email...
I don't know why is that NOBODY explains this simple but very useful thing... All the sites that I have seen only bother to put the code of the functions needed to send email with attachments using UTL_SMTP but nobody explains anything, the 'know-how' it's kept as a secret.
It's a real shame!!!
Now you know how this works... and how did I found it? By simple deduction... thinking for long minutes... this call learning the hard way...
If you have come into this looking for a way to send email with attachments using UTL_SMTP now you know how this works...
UTL_SMTP
Anju, January 04, 2011 - 9:16 am UTC
Hi,
Am using the procedure html_email for sending the mail in a html format ,this procedure works fine but for some cases when if the data is more (> 32KB) This procedure fails.
can you please advice what are the necessary changes to be done to send send more amount of data .
Thanks in Advance.