need help with sending e-mail s

Hello

I wrote a procedure to send an e-mail notification to third parties. (unless org). How to update successfully. When I run this procedure... I get an e-mail like that...! Each thing to come in the line object only. Please advise... !!
test From: [email protected]: 15-DEC-2011 02:06:29To: 
[email protected] Hi Rekha

test -- subject
Hi Rekha -- body
CREATE OR REPLACE
PROCEDURE xxgw_email_notf(p_mail_subject IN VARCHAR2,
                          p_mail_bdy  IN VARCHAR2,
                          p_mail_body in varchar2,
                          p_from_email in varchar2,
                          p_to_email in varchar2) 
is
L_MAILHOST varchar2(64) := 'something.local';  -- for security purpose I have given like this.
L_FROM varchar2(64) := P_FROM_EMAIL; 
l_to VARCHAR2(64) := p_to_email; 
l_mail_conn UTL_SMTP.connection;
--l_subject           VARCHAR2(100);
begin
l_mail_conn := UTL_SMTP.open_connection(l_mailhost, 25);
UTL_SMTP.helo(l_mail_conn, l_mailhost);
UTL_SMTP.mail(l_mail_conn, l_from);
UTL_SMTP.RCPT(L_MAIL_CONN, L_TO);
--UTL_SMTP.data(L_MAIL_CONN,'Hi Testing');
--UTL_SMTP.DATA(L_MAIL_CONN,'Sahithya Just test now');
UTL_SMTP.OPEN_DATA(L_MAIL_CONN);
--UTL_SMTP.WRITE_DATA(L_MAIL_CONN, 'Subject: '||P_MAIL_SUBJECT||CHR(13));
--UTL_SMTP.WRITE_DATA(L_MAIL_CONN, 'From: '||P_FROM_EMAIL||CHR(13) );
--UTL_SMTP.WRITE_DATA(L_MAIL_CONN, 'Date: ' || TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS')|| Chr(13));
--UTL_SMTP.WRITE_DATA(L_MAIL_CONN, 'To: '||P_TO_EMAIL||CHR(13) );
--UTL_SMTP.WRITE_DATA(L_MAIL_CONN, ''||CHR(13));
UTL_SMTP.WRITE_DATA(L_MAIL_CONN, P_MAIL_BDY||CHR(13) );
UTL_SMTP.write_data(l_mail_conn, p_mail_body||Chr(13) );
UTL_SMTP.close_data(l_mail_conn);
UTL_SMTP.quit(l_mail_conn);

EXCEPTION
WHEN utl_smtp.PERMANENT_ERROR THEN
fnd_file.put_line(fnd_file.log,'Permanent Server Error');
dbms_output.put_line('Permanent Server Error');

WHEN UTL_SMTP.TRANSIENT_ERROR THEN
fnd_file.put_line(fnd_file.log,'Transient Server Error');
dbms_output.put_line('Transient Server Error');

WHEN UTL_SMTP.INVALID_OPERATION THEN
FND_FILE.PUT_LINE(FND_FILE.log,'Operation is invalid');
DBMS_OUTPUT.PUT_LINE('Operation is invalid');
end xxgw_email_notf;
Please advise me where I have error... !!!

Concerning
His


It works in 10g DB

DECLARE
v_From VARCHAR2 (80): = "[email protected]";
v_Recipient VARCHAR2 (120): = "[email protected]";
v_Subject VARCHAR2 (80): = 'test subject 2';
v_Mail_Host VARCHAR2 (30): = 10. ??? " ; -The IP Address of the mail server
v_Mail_Conn utl_smtp. Connection;
CRLF VARCHAR2 (2): = Chr (13) | Chr (10);
v_dt VARCHAR2 (30): = to_char (sysdate, ' Dy, DD month YYYY hh24:mi:ss');
BEGIN
v_Mail_Conn: = utl_smtp. Open_Connection (v_Mail_Host, 25);
UTL_SMTP. HELO (v_Mail_Conn, v_Mail_Host);
UTL_SMTP. Mail (v_Mail_Conn, v_From);
UTL_SMTP. RCPT (v_Mail_Conn, v_Recipient);
UTL_SMTP. Data (v_Mail_Conn,
' Date: ' | v_dt | CRLF.
' De : ' || v_From | CRLF.
"Subject: ' |" v_Subject | CRLF.
' De : ' || v_Recipient | CRLF.
CRLF.
"some text" | CRLF.     -Body of the message
"more text of the message. CRLF
);
UTL_SMTP. Quit (v_mail_conn);
EXCEPTION
WHEN utl_smtp. Transient_Error or utl_smtp. Permanent_Error then
raise_application_error (-20000, "cannot send an email: ' |") SQLERRM);
END;
/

Thanks & best regards,
Human

Tags: Database

Similar Questions

  • Need help with Windows Live Mail password

    Microsoft support told me that the only way to get help with my last password is by e-mail or forums and I recorded many positions and got no response.  I gave them all of my personal info to my email account and no response. I called in and no response.  Should I give up on this account?  I got it for more than three years and many court and legal emails were sent there I need.  Please notify.

    I guess that you have a Live account Windows that you do not manage to connect to for various reasons.  Can clarify you what the case, and you can specify that you forgot your password or your user name?

    If you talk about this type of Forums (below) then they are very busy, but eventually you should get a response from Microsoft.  If the problem is that I'm guessing that this is so only Microsoft can fix the problem for you, posters not Microsoft, as we find in this Forum won't be able to do much for you other than to advice on a course of action to follow.

    Reset your password
    https://help.live.com/help.aspx?mkt=en-AU&project=liveidv1&format=B2&QueryType=keyword&query=QAF

    Support e-mail for Windows Live ID.
    https://support.live.com/eForm.aspx?ProductKey=WLID&CT=eformts&b56fbf12-3dcf-4c16-9E21-25f9e35ffe3d&mapquerytype=keyword&mapquery=QAF

    If I remember the way Microsoft handle such problems with the "lockout", it's that they contact you by E-mail (an address that you can still access) and either reset your password or clear the problem after having proved to their satisfaction that you are the owner of the blocked account.  The process is a lot easier if you have (in the setup) provided them with another email address, or installed (and remember) secret an answer to the Question.

    Unfortunately, the whole process may fail and you may forever lose this account.  If that were the case, you should start now to try to get duplicates of important emails from the original sender.

  • Need help with sending Email with LabWindows 8.5 or 9

    Hello

    I try to send an email to attach files by using InetSendMail function and prospects activeX and always having unsuccessfully excel thereon.

    I'm still a student so I don't have much time to research these functions, if im asking for an example of code to work for this problem.

    Thank you're help in advance...

    I also tried to change the examples in the package

    Hello

    See using system and functions of LaunchExecutable (Ex).

    He explains how to make command-line calls in CVI.

    You will probably have to build the appropriate using sprintf, Fmt, etc., depending on your needs command line string.

  • I'm on Acrobat 10 and I need help with the distribution of shape feature. Is there a way to change the registration e-mail download addressed to the? Currently all forms I create and then distribute may only be subjected to my email account... I appreciat

    I'm on Acrobat 10 for mac and I need help with the distribution of shape feature. Is there a way to change the registration e-mail download addressed to the? Currently all forms I create and then distribute may only be subjected to my email account... I appreciate any help!

    Do not use the feature distribute the form. Instead of this, just put up a button "submit" and configure it to send email using any email address you want. Just add a button and set the action of the mouse upward on "Submit a form" and use a type mailto URL and specify that you want to send the full PDF. Then activate the reader of the document: where "Advanced/extended features in Adobe Reader" is located in Acrobat XI?

    If you really want to use distribute the form for some reason, change the e-mail address in your preferences: Edit > Preferences > identity > Email address

  • Need help with my Mail window. I can't export my message to the PST format. I keep getting the message error "an error occurred during initialization of MAPI".

    Hello

    Need help with my Mail window. I can't export my message to the PST format. I keep getting the message error "an error occurred during initialization of MAPI". Y at - it solution or another method?

    Hi ErikLee,

    Do you have MS Outlook installed on your computer?

    Windows mail import and export opportunities are limited to an Outlook .pst file or an Exchange Server mailbox. They are available only if MS Outlook is installed.
    If MS Outlook is not installed and you start an import or export action, the necessary support files are not present for Windows mail complete the operation. Then I suggest you to install Outlook temporarily and see if the problem is resolved.

    Follow the instructions below and check if the problem is resolved.

    1. reboot your computer, and then start Windows Mail.
    2. on the Tools menu, click Options.
    3. in the connection tab, click on edit to open the Internet Properties dialog box.
    4. in the tab programs, click on an application other than Windows mail e-mail in the e-mail list. Click on apply and then click OK.
    5. click OK again to close the Options dialog box.
    6. exit Windows mail and restart Windows mail.

    If this does not work, I suggest you upgrade to Windows Live Mail to import or export messages that may help you resolve the issue.

    To download Windows Live Mail, visit the following Microsoft Web site:
    http://get.live.com/wlmail/overview

    For more information about Windows Live Mail, see the Microsoft Web site at the following address:
    http://windowshelp.Microsoft.com/Windows/en-us/help/4b30d3d6-abe2-46d1-a5fd-4a1ba786a1381033.mspx

    Check whether the problem is resolved.

    Please post back and let us know if it helped to solve your problem.

    Kind regards
    KarthiK TP

  • I'm suddenly needing help with my browser Firefox (6.0.2)

    Hello
    I'm suddenly needing help with my browser Firefox (6.0.2)

    (OS: I use Windows XP).

    When I open the browser, I don't see is a totally white screen of white, with all the toolbars at the top.

    I know that my physical connections are very good: I have tested the modem, turned the pc market etc and I can also receive/send emails.

    This problem started today, September 8, 2011 and has never happened before.

    Is it a coincidence that Firefox itself to day before I disconnected yesterday evening? Could this be something to do with this particular new update?

    I also noticed that just before I "opened" Firefox, I now get a small box indicating:

    [JAVASCRIPT APPLICATION]
    Handl exc in Ev: TypeError: this oRoot.enable is not a function

    This never appeared before - I hope that it offers a clue has what is wrong.

    The browser not be stuck in Mode safe, said by the way.

    Of course, I can't find solutions to the problem on the internet, I don't physically see all Web sites!
    (A friend sends this request in my name from their pc)

    Any light you can throw on this problem of confusion would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.

    If the only option is to uninstall Firefox and reinstall from your site, I'm also in trouble (I can not see the internet or download).
    In this case, would you be able to send the .exe file as an attachment to my e-mail address? In the affirmative, please let me know and I'll give you more details.

    Thanks in advance.

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Need help with the port forwarding for a XBox remote Streaming

    I have a router R6200v2 and need help with port forwarding.

    I came across this set of instructions for setting up stream port forwarding XBox remotely from anywhere

    http://kinkeadtech.com/2015/07/how-to-stream-Xbox-one-to-Windows-10-from-anywhere-with-Internet/

    I have no idea when it comes to such things and I want to make sure I do it correctly without messing up my existing home network.

    Port Forwarding and triggering Port pages setup look very different from what the guy uses. Can someone walk me through what I do to set up please?

    Hi @varxtis,

    You must enter them in the field for a start external Port and external completion Port. You will need to send individually except for the range of 49000-65000. The steps are as follows.

    1. create a Service name (it could be something else that you cannot use the same service name twice. Ex. XBOX1, XBOX2 and so forth.)

    2. Select the type of service (TCP, UDP or both)

    3 entry 5050 times a start external Port and external endpoints.

    4. Select the IP address of your XBOX.

    5. Select apply.

    6 do the same for other port numbers. To the beach, use 49000 for the external departure Port and for the external completion Port 65000.

    Kind regards

    Dexter

    The community team

  • How can I get ahold of a LIVE person? I need HELP with my email account (Email removed for privacy), you can contact me at Email removed for privacy or * withdrawn * please someone HELP! Mike Golab

    How can I get ahold of a LIVE person? I need HELP with my email account (* address email is removed from the privacy *) you can contact me to the * address email is removed from the privacy * or * remove * please someone HELP! Mike Golab

    E-mail address is removed from the privacy *.

    No, and that has nothing to do with this old thread. This is a scam that last for years. Microsoft never does unsolicited phone calls.
     
     
     
     
     

    Scams by e-mail or web: how to protect yourself
    http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx
     
     
     
     

    Aggressive, persistent Windows tech support fraudsters continue to track consumers
    http://www.Computerworld.com/s/article/9248122/Aggressive_persistent_Windows_tech_support_scammers_continue_to_stalk_consumers
     
     
  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Need help with google ranking

    If I want to watch my site ive created in google is to see this:

    Woning huren in Paramaribo, Suriname

    hureninparamaribo.nl /.

    U good bij ons een in Suriname hurenvakantiehuis. Deze woning is good in room Paramaribocentrum van het. Of woning is een rüstige wijk good ...

    UU has said een + 1 belangrijkste

    As you can see before the URL is no WWW. When I click on the link, the only thing I see is a small form.  Y at - there someone who can tell me where I can change this?

    Kind regards Brian

    Great! Thank you..

    Date: Wednesday, May 9, 2012 06:15:57-0600

    From: [email protected]

    To: [email protected]

    Topic: Need help with google ranking

    Re: Need help with google ranking

    created by Ken Binney in Dreamweaver - discover complete discussion

    Hello, Brian - the problem is the file extension, you use on your pages in the folder root of your remote site you have a page with only a form named:http://www.hureninparamaribo.nl/index.html and you have this other page with all your content named:http://www.hureninparamaribo.nl/index.htm your server displays the html file then delete the index.html page form rename the index.html page content

    Replies to this message received to everyone subscribed to this topic, not directly to the person who posted the message. To post a reply, or reply to this email or visit the message page: http://forums.adobe.com/message/4390439#4390439

    To unsubscribe from this thread, please visit the page message to http://forums.adobe.com/message/4390439#4390439. In the Actions box to the right, click on stop Notifications by e-mail.

    Start a new discussion in Dreamweaver, by e-mail or at the Adobe Forums

    For more information on maintaining your email forum notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I need help with the control of two .swf in third.

    Hi, thanks for reading!

    I need help with the control of two .swf in third.

    I have a problem when I need to use a .swf in a digital signage solution, but were advised by the Legal Department, it cannot be changed in any way, I can not also have the source file blah blah blah. I pulled the .swfs on their site and I decompiled to see what I was up against.

    The main SWF that I need control is HCIC.swf and the problem is that it starts with a preloader, which, after the loading stops on a framework that requires user input to (button) on a play button, until the film will proceed and replay.

    What I've done so far is to create a SWF container, HCIC_container.swf, which will serve as a target for the HCIC.swf and I would like to send actionscript in the file, I am not allowed to edit.

    I managed to get done with help from someone on another forum. It is my hope that the following script just start HCIC.swf a framework after the preloader and button play and just play through.

    var container: MovieClip = createEmptyMovieClip ("container", getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener (this);
    mcLoader.loadClip ("MCIC.swf", container);

    function onLoadInit(mc:MovieClip) {}
    mc.gotoAndPlay (14);
    }

    But unfortunately it does not solve my problem. Because there is a media - controller.swf, which is charged by HCIC.swf who has orders, including the play button to start HCIC.swf.

    Here is a link to a .zip with all 3 files .swf file and all 3 .fla files.

    http://www.axiscc.com/temp/HCIC.zip

    What I have to do is to automatically start the HCIC.swf file, bypassing the pre-loader and play button without having to edit it or in the media - controller.swf in any case. Thus, all scripts must be done in HCIC_container.swf.

    I know it is confusing and it is difficult to explain, but if you look at the files it must make sense.

    ActionScripting is far from my point hard, so I'm definitely over my head here.

    Thanks for your help.

    Got my solution on another forum.

    http://www.ActionScript.org/forums/showthread.php3?t=146827

  • Need help with installation on Photosmart C7280 all-in-one

    I had my printer is installed and has been using the printer for 3 wireless laptops in my house.  Now, I can't even find my backup drive, so I have need help with downloading the software to use my printer and also get to use wireless.   I don't know what happened, but the fax for this printer is listed, but not the printer itself.   Help, please!

    Click here to download the software for your printer:

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?product=3204785 & LC = on & CC = US & DLC = in & lang = to & CC = US

    has chosen the appropriate operating system that corresponds to your computer and download the full software features.

  • HP laptop: need help with internet and search for things

    whenever I'm on chrome internet explore google ect and go to tab it is says unknown error or no internet connection or anything and just takes me chrome ect. I need help with this im involved in a byod class and my computer won't let me on what whatever usually it just starts out black and white and the seeds I my search request

    Yes it's a Windows 10 and it arrived already installed I'll take the other info now

  • Need help with the installation of an adapter of Palit GeForce 9500GT Super chart - 512 MB in a M2N68 (narrated

    Need help with the installation of an adapter of graphics Super Palit GeForce 9500GT - 512 MB - DDR2 SDRAM in a M2N68 motherboard (narra6). Should I disable the onboard graphics in the bios? When the card is installed, no VGA work outs and the PC does not start. Checked and recontroler implementation of the card in the PCI slot. PC is a desktop HP G5200uk PC. Windows 7 operating system.

    Hello

    The link below is a guige to install a video card in your Pc.  In particular, it seems that you will have to perhaps specify the location of the new card in the bios and save this change before you install the new card - see step 4 in the guide on the link below.  If your new card fits into the PCI Express x 16 slot, you will need to define PCI Express in the bios and save the changes.

    http://support.HP.com/us-en/document/c01700855

    Kind regards

    DP - K

  • need help with my window is in thai and I do not understand to all.how to convert to English?

    need help with my window is in thai and I don't quite understand.
    How to convert to English? I tried for days but still it cannot be changed.
    because I can't read thai... Please help me step by step...

    my pc is touchsmart 9100 windows 7 Professional.

    Not a single word is in English if I go to the "region and language" to change.

    Everthing is in thai in the system.

    Hello

    Where have you bought the PC?

    What is the operating system installed?

    Best regards

    ERICO

Maybe you are looking for