Emailing reports with the extracted data from PL/SQL PROC - email

My objective is to email the data retrieved from Oracle PL/SQL Procedure. UTL_SMTP package has been disabled in my Office and I need to find an alternative way to do this.
It would be much appreciated If someone can guide me here.
Thanks,
Sekar

If UTL_SMTP is disabled, use UTL_MAIL instead.
Although, that's rather strange - you're required to send mails, but yet, package used to do that is disabled. How come?

Related

Document4j support for other ms word like applications

I want to convert ms office documents to pdf. I thought of using document4j for that. But I could see that we need msoffice setup to make it work. Can we somehow use open-office or other libre-office for doing the same work. MSOffice cost is much high so want to use something open-source.
Any help would be greatly appreciated.
Thanks in advance.
You can implement your own converter by implementing the IExternalConverter API. You could for example delegate to Open Office. No such implementation exists currently but by implementing the interface, you can activate the API and use all of documents4j client and server implementations.

Using sp_helptext on a encrypted store procedure

Yesterday I created a store procedure with encryption for an exercise purposes but I forgot to save the query.
Today I was planning to view the tsql code by using
exec sp_helptext 'procedure_name'
But since it is encrypted I can't see the code. I was wondering if there is a way to solve this?
Providing the article in the comment as an answer so that more folks may benefit
This article goes into a lot of details on how to decrypt such objects..
It talks about a basic approach using code to decrypt the code from the system tables as well as using 3rd party tools such as DAC and Optillect (which it seems does not need admin privileges)
NOTE: I am assuming you are using sql-server since you have tagged as tsql

how to automatically retrieve a csv file from an email and dump contents into an oracle database table

Good Day!
I have set up an automated daily email coming from Google Analytics and need to extract the CSV file contents and dump them into an Oracle database table on a daily basis...
I'm almost positive that this is possible, but not sure how to go about setting this up?
If someone has already set this up, could you share the steps?
thx in advance!
There's a PL/SQL Mail Client API available on source forge. It appears to be a PL/SQL wrapper for the Java Mail API, though I've never used either one.

How do I set Outlook extended properties on an email in C#?

I have currently written code to send an email in C# using the usual SMTPClient and MailMessage objects.
My new requirement is that the email being sent should have "permissions" set as if the user was sending the email via Outloook and using the option from the ribbon toolbar. The permission to be set is the "Do Not Forward" option.
The option I wish to emulate when sending the email is accessed here;
Can anyone please supply some sample .Net code to achieve this or else provide me with a good code reference online?
Thanks in advance,
Brian.
First of all, I am unaware as to how one might be able to set IRM (Information Rights Management) permissions using only a standard SMTP message (MailMessage). IRM permissions, I believe, are completely Outlook/Exchange-centric, and lack any sort of representation in the SMTP standard.
The only way you're going to be able to enable that permission is through the Outlook Object Model via the Outlook Interop assemblies. IamStalker above me recommended Redemption, which, while 99% of the time is the correct answer for everything Outlook-related, is not the way to go for this particular problem. Because IRM (as far as I know) has no representation in MAPI, Redemption wouldn't be much help here; I don't believe I've ever seen an IRM-related property on Redemption's object model.
You'll most likely be interested in the Permission property exposed by the MailItem object type. It appears that in order to programmatically turn on the "Do Not Forward" option, you will want to set the value of that property to OlPermission.olDoNotForward.
There is another IRM-related property (PermissionTemplateGuid), but it appears that you can leave this as an empty string since you are using a built-in "permission".
I would assume then that all other IRM-related settings are provided to Outlook through the user's Outlook profile.
Good luck!
Hello Brian I have only one suggestion "Redemption"!
I have used it and it's awesome it's very easy to implement the owner Dima is very nice person
he helps alot.
PS: It's not free but worth every penny.

DB2 how to send an email from Stored Procedure?

I have a scenario where I need to send an email from my stored procedure in DB2.
However I have not been able to figure out any so far, apart from using Task Center or Query Patroller.
Can someone suggest me some pointers to this? I do not want to do it from any other language though. Thanks.
With 9.7, you can use the UTL_MAIL or UTL_SMTP built-in packages.
There is nothing built-in in DB2 to do that, like xp_sendmail in SQL Server.
You have to write your stored procedure in one of the hosted languages (Java, C++) and then use an API from that language to send the mail.
See this article on how to do it using Java.