Not getting message using UTL_SMTP

Hi,
i am using the following anonymousblock for getting the mail....
declare
sender VARCHAR2(100):='[email protected]';
recipient VARCHAR2(100):='[email protected]';
ccrecipient VARCHAR2(100):='[email protected]';
subject VARCHAR2(100):='ERROR';
message VARCHAR2(1000):='some error has been occured';
crlf VARCHAR2(2):= UTL_TCP.CRLF;
connection utl_smtp.connection;
mailhost VARCHAR2(30) := '192.168.1.2';
header VARCHAR2(1000);
BEGIN
-- Start the connection.
connection := sys.utl_smtp.open_connection(mailhost,25);
header:= 'Date: '||TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss')||crlf||
'From: '||sender||''||crlf||
'Subject: '||subject||crlf||
'To: '||recipient||crlf||
'CC: '||ccrecipient;
-- Handshake with the SMTP server
utl_smtp.helo(connection, mailhost);
utl_smtp.mail(connection, sender);
utl_smtp.rcpt(connection, recipient);
utl_smtp.rcpt(connection, ccrecipient);
utl_smtp.open_data(connection);
-- Write the header
utl_smtp.write_data(connection, header);
utl_smtp.write_data(connection, crlf ||message);
utl_smtp.close_data(connection);
utl_smtp.quit(connection);
END; Here i am getting the mail but i am not getting the message with that mail
Please can any one help me in this......
Thanks
SKPR

You need an empty line between e-mail header and e-mail body.
So change the following line of code:
header:= 'Date: '||TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss')||crlf||
'From: '||sender||''||crlf||
'Subject: '||subject||crlf||
'To: '||recipient||crlf||
'CC: '||ccrecipient;to:
header:= 'Date: '||TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss')||crlf||
'From: '||sender||''||crlf||
'Subject: '||subject||crlf||
'To: '||recipient||crlf||
'CC: '||ccrecipient||crlf;Note the trailing control LF in the header - this creates the required empty line between the e-mail header and the e-mail body.

Similar Messages

  • I just signed the creative cloud, and I'm not getting to use the purchased software. thank you

    I just signed the creative cloud, and I'm not getting to use the purchased software. thank you

    Rodrigo_1405 do you receive any specific error messages?  For information on how to install the Adobe Creative applications included with your membership please see Creative Cloud Help | Install, update, or uninstall apps.

  • "Could Not Send Message Using The Server...:

    I never have any trouble sending from Apple Mail, except now I am trying to do a mass-mailing for our business. Is there a limit on how many people you can BCC?
    For the 1st message I put 200 people in the BCC field, and the message sends fine. Then I setup the another message with the next 200 people, and the send fails. Get a notice that Apple "Could Not Send Message Using The Server SMTPOUT.secureserver.net". And gives me the option of selecting other servers, neither of which work either.
    I am curious, are there limits on how many people you can copy on one message?

    Most, if not all ISPs and email account providers have similar limits per the following for personal/non-business email accounts as part of an overall effort to eliminate or reduce bulk spam emanating from the ISP's or email account provider's domain.
    Any ISP or email account provider that doesn't impose similar limits is helping to contribute to the amount of spam that gets circulated.
    .Mac has several safeguards in place to ensure that only .Mac members send messages with the Mac.com outgoing mail server.
    Among them are reasonable limitations on:
    The number of messages that can be sent each day (200 messages)
    The number of recipients that can be sent to each day (400 recipients)
    The number of recipients a message can be addressed to at one time (100 recipients)
    There is also a 10 MB maximum size for messages sent or received using the .Mac mail system.

  • So with iMessage, i am not getting messages on my 4S, only on my MacBook Pro.  I don't want this.  I only want texts sent to my phone.  HELP!

    so with iMessage, i am not getting messages on my 4S, only on my MacBook Pro.  I don't want this.  I only want texts sent to my phone.  HELP!

    did that.  now getting no messages on anything.  opened up messages on the Mac and saw i had been sent many that never showed up on my phone.
    I tried sending a text with iMessage turned off and while it said delivered, doesn't look like it was ever seen.

  • SQLite encrypted Database does not get attached Using Adobe Air,Why?

    Hi,
    Any one knows the solution, am trying to attach the encrypted SQLite database adobe air-adobe flex bulder , it does not get attached using sqlconnection.attach throws error, though the given key is correct, but it gets open using sqlconnection.open with the same key, any one knows the solution, how to attach the encrypted data base, since am using two data base one is opened and another must be attached to the existing ,thanks in advance. using adobe air- flex related. i use the following code
                   databaseFile1 = File.applicationStorageDirectory.resolvePath("Sample_1.sqlite");
                   databaseFile2 = File.applicationStorageDirectory.resolvePath("Sample_2.sqlite");
    dbConnection.open(databaseFile1, SQLMode.CREATE, false, 1024, secKey);
    dbConnection.attach("db2",databaseFile2,null,secKey);
    got the following error.
    ERROR #3125 Unable to open the database file.

    And I would say more "this is the issue" !
    It should be possible as it is clearly stated in the doc :
    public function attach(name:String, reference:Object = null, responder:Responder = null, encryptionKey:ByteArray = null):void
    with 
    encryptionKey:ByteArray (default = null) — The encryption key for the database file. If the attach() call creates a database, the database is encrypted and the specified key is used as the encryption key for the database. If the call attaches an existing encrypted database, the value must match the database's encryption key or an error occurs. If the database being attached is not encrypted, or to create an unencrypted database, the value must be null (the default).
    so with a same encryptionkey, I (and this should be the same for FinalTarget) can open the encrypted db but not to attach it... quite strange.

  • How do I change SSID setting? Getting message "using network with default ssid'

    Getting message "using network with default ssid'

    First, let's address the biggest issue, the version of Firefox you are using is extremely old, out of date and insecure. Please update to Firefox 33 ASAP ([[Update Firefox to the latest version]])
    After that, please give a bit more context on what exactly is going on. Keep in mind this is a Firefox support forum, we can't help you with Windows settings or setting up wireless networks.

  • Can not get message to work om iPad, Can not get message to work om iPad

    Can not get message to work on iPad

    Please be much more specific. What exactly happens when you try to send a message?

  • I'm trying to download songs that was transferred via Carbonite, not getting message that states "Unable to check for available downloads, iTunes is temporally unavailable"

    I'm trying to download songs that was transferred via Carbonite, not getting message that states "Unable to check for available downloads, iTunes is temporally unavailable".  What do I do?  Any suggestions??

    Same problem, I have a season pass for Mad Men and suddenly cannot download, says iTunes is temporarily unavailable. Problem occurred before I updated to the new iTunes and afterwards, on two different computers. Here is what Apple had to say:
    "I have verified that the iTunes Store is functioning and accepting connections, which indicates that the issue is related to your internet connection, local network, or your local computer itself. This article outlines some of the likely culprits:
    http://support.apple.com/kb/TS1368
    Apple Discussions are another source of information about iTunes, where everyone from new users to professionals can interact and share their knowledge and experiences. You may find another user with the same operating system or ISP that may be able to help resolve this issue. You can find the iTunes discussions group at:
    http://discussions.apple.com/category.jspa?categoryID=149
    If you are still unable to connect to the iTunes Store or receive this error, you will need to call our AppleCare technical support team. A representative will be able to tell you about Apple's complimentary and fee-based support options and can help you determine which option might be most helpful in this case. To find the appropriate phone number, please visit:
    http://www.apple.com/support/contact/phone_contacts.html"
    so far, no luck.

  • What do I do if I Switched to an android phone but Im not getting messages from apple users because of the I messages. I have already turned off my I messages on my old phone.

    I Switched to an android phone but Im not getting messages from people with I phones because of the I messages. I have already turned off my I messages on my old phone.

    http://support.apple.com/kb/ts5185

  • Everytime I try to download extensions apps etc get message failed to validate license online please advise I am not getting full use of my monthly subscription because I have to admit I am not sure how to rectify problems like this i am not very computer

    Please advise when I try to download free or paid apps I get message failed to validate license online I am not very computer literate and would appreciate advice I can understand (sorry) I have the monthly paid photoshop cc and lightroom package.

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • GMail POP3 problem: Not getting messages with sender "me"

    HI guys,
    I have an account called [email protected] , I successfully sent mails to the same using javamail.In this messages,sender is marked as "me".
    Now I want to read all the messages in inbox,including the messages sent by same account itself.(messages with "me" sender).
    But I notices that javamail doesnt read any messages which the sender is "me".
    Is there a solution for this?
    thanks in advance,
    umanga
    Edited by: virtualumanga on Jun 6, 2008 7:09 PM
    Edited by: virtualumanga on Jun 6, 2008 7:10 PM

    Ok.Heres what happens.
    When I send emails to the same account using gmail webbase application , those mails (which the sender is "me") are read from my Java-POP3 code.
    But when I send mail using my Java-SMTP code , and try to retrieve them using same Java-POP3 program,those mails are not read.
    Here is my temp account that I am using
    user : [email protected]
    password: umanga123
    You can see there are 3 mails (please dont delete them) , which were sent using my Java-SMTP code.And one mail which is,sent from my yahoo account.
    Below Is the java-POP3 code that I am reading my messages.You can run them your self and see that the messages with "me" and not reading,only the message from yahoo is reading.
    You can test following code without any modifications..
    Please help,
    thanks in advance.
    public class MailGet {
         public static void main(String args[]) throws Exception
              String host="pop.gmail.com";
              String user="fhb.test";
              String pwd="umanga123";
              //String from="[email protected]";
              //String to="umanga@quicksilver";
              Properties props=new Properties();
              props.put("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
              props.put("mail.pop3.socketFactory.fallback", "false");
              props.put("mail.pop3.port", "995");
              props.put("mail.pop3.socketFactory.port", "995");
              //FileInputStream fis=new FileInputStream("/home/umanga/pop.prop");
              //props.load(fis);
              Session session=Session.getDefaultInstance(props,
                        null);
         try {     
              Store store=session.getStore("pop3s");
              store.connect(host,user,pwd);
              Folder folder=store.getDefaultFolder().getFolder("Inbox");
              folder.open(Folder.READ_WRITE);
             System.out.println("Getting messages");
              Message msg[]=folder.getMessages();
             System.out.println(folder.getMessageCount()+" "+folder.getUnreadMessageCount());
             for(int i=0;i<msg.length;i++)
                  System.out.println("Subject: "+msg.getSubject() );          
         folder.close(true);
         } catch (Exception e) {e.printStackTrace(); }     
    Edited by: virtualumanga on Jun 7, 2008 4:45 AM
    Edited by: virtualumanga on Jun 7, 2008 4:46 AM
    Edited by: virtualumanga on Jun 7, 2008 5:21 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Mails sent from Z10 are not getting downloaded using POP 3

    Hi,
    I have just upgraded from BB 9360 to Z10, all the mails sent from the Z10 are not getting downloaded on PC, I use POP 3 setting to download messages. Mails deleted from Z10 are getting downloaded
    Please let me know how to download mails sent from Z10

    Mail sent from the handheld on a POP3 email server is not synced to the server.
    You could upgrade to an IMAP account.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Could not get # prompt using tera term

    Hi,
    I am not getting the # prompt when I connect to two of my Sun servers in the network. I am using tera term terminal emulator, with bit rate 9600,8,1,N settings. I am seeing all the messages in the Sun console but could not get to the configuration prompt.
    Is there any specific key strokes to enable access to the configuration mode?
    I am re-iping the system and I am in no way to use tcp/ip for that. I am really stuck up, help here is much appreciated
    Thanks,
    Homin

    Hi,
    As you know anyone would have tried return first place, so did I. Here I am just able to view things, but cannot input anything to console
    Thanks,
    Homin

  • Not getting messages or notifications...

    Okay so I'm not getting notifications for my Skype messages anymore I checked that my status was online and everything was fine there and my group message status for getting notifications was also on. Skype notifications was on in my settings but still no notifications.
    On top of that I go into the Skype app and sometimes the messages don't even show up there! It's similar to when their is a network issue on my end but I'm able to send and receive messages again but there are missing messages that others in the group chat have received. It's very annoying because I'll send a few messages and ten minutes later there will be a message between my messages that I never got before. This only happens sometimes though and usually it's just the notifications. I'll go into Skype and there will be thirty new messages from all sorts of group and one on one chats that I never got.
    So I'm not getting notifications and even when in Skype sometimes I don't get messages even though i have a perfect internet connection and my status is always online and connected. I already tried deleting the whole Skype app and redownloading it but still no use. Could it be something to do with the fact I haven't updated to the new iOS? If not what is the problem and how do I fix it?

    I havent had IOS notifications fro months, and am right up to date (iPhone6 and IOS 8.2)
    Microsoft seem to have lost all interest in fixing the problem.  The only positive is that battery life has increased as Skype never receives any messages.

  • Chat user is not getting message from the other users

    In my application when user [A] initiate the chat with user[B]  , I am facing following issues
    -          User[B] is not getting initiation notification so that I am unable to open chat pod for user [A] on user[B] application
    -          Due to above problem , User[B] not getting any message sent by the User[A]
    -          User[A] can send only one message and it is displayed on simple chat pod
    when User[A]tries to send more then one message it is not displayed on simple chat pod but on the console I can see the messages
    following is sample code
     public function connectChat() :void {
    _collectionNode =
    new CollectionNode();_collectionNode.sharedID = NOTIFICATION_COLLECTION_NODE;
    _collectionNode.connectSession =
    this.connectSession;_collectionNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSynchronizationChange,
    false, 0, true);_collectionNode.addEventListener(CollectionNodeEvent.ITEM_RECEIVE, onItemReceive,
    false, 0, true);_collectionNode.subscribe();
    /*** @private
    * Handles the creation of a collection node if it does not already exist
     protected function onSynchronizationChange(event:CollectionNodeEvent):void { 
    if (_collectionNode.isSynchronized) { 
    if (!_collectionNode.isNodeDefined(START_CHAT_LIST) && _collectionNode.canUserConfigure(connectSession.userManager.myUserID)) {_collectionNode.createNode(START_CHAT_LIST,
    new NodeConfiguration(UserRoles.VIEWER, UserRoles.VIEWER, true, false, true,false, NodeConfiguration.STORAGE_SCHEME_QUEUE));}
     public function connectChat() :void{
    trace('connectChat');_collectionNode =
    new CollectionNode();_collectionNode.sharedID = NOTIFICATION_COLLECTION_NODE;
    _collectionNode.connectSession =
    this.connectSession;_collectionNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSynchronizationChange,
    false, 0, true);_collectionNode.addEventListener(CollectionNodeEvent.ITEM_RECEIVE, onItemReceive,
    false, 0, true);_collectionNode.subscribe();
    /*** @private
    * Handles the creation of a collection node if it does not already exist
     protected function onSynchronizationChange(event:CollectionNodeEvent):void { 
    if (_collectionNode.isSynchronized) { 
    //Creates the nodes if they don't exist 
    if (!_collectionNode.isNodeDefined(START_CHAT_LIST) && _collectionNode.canUserConfigure(connectSession.userManager.myUserID)) {_collectionNode.createNode(START_CHAT_LIST,
    new NodeConfiguration(UserRoles.VIEWER, UserRoles.VIEWER, true, false, true,false, NodeConfiguration.STORAGE_SCHEME_QUEUE));}
    /*** Checks if a chat is going to be started with this specific user
     protected function onItemReceive(event:CollectionNodeEvent):void { 
    var item:MessageItem = event.item; 
    var openChatEvent:OpenChatEvent = OpenChatEvent.ToOpenChatEvent( item.body, OpenChatEvent.OPEN_CHAT ); 
    switch (item.nodeName) { 
    case START_CHAT_LIST: 
    trace("Starting Chat Notified");  
    if( openChatEvent.userId && openChatEvent.userId == this.connectSession.userManager.myUserID ){
    this.dispatchEvent( openChatEvent ); 
    if( this._collectionNode.isSynchronized ) 
    this._collectionNode.retractItem( START_CHAT_LIST, openChatEvent.roomId );}
    break;}
    /*** Publishes a request for someone to join a chat
     public function publishChatRequest(notificationEvent : NotificationEvent) :void { 
    if( this.connectSession.userManager.getUserDescriptor( notificationEvent.userID ) ){
    var openChatEvent:OpenChatEvent = new OpenChatEvent( OpenChatEvent.PUBLISH_CHAT,null,notificationEvent.sharedID, notificationEvent.userNotificationList, null, notificationEvent.userID ); 
    if( this.presenceUsers )openChatEvent.descriptors =
    this.presenceUsers; _collectionNode.publishItem(
    new MessageItem( START_CHAT_LIST, openChatEvent, openChatEvent.roomId ) );}
    else{
    Alert.show(
    "User "+ notificationEvent.userID + " is not logged in.", "Publish Error" );}

    A) are these methods copied twice in the code here on purpose?
       connectChat() and onSynchronizationChange is repeated in code due copy paste mistake
    B) are both users subscribing to _collectionNode right away? Do each of them
    get to onSynchronizationChange?
       Yes , each of them get to onSynchronizationChange
    C) If you put a breakpoint in onSynchronizationChange, do you see the node
    get created? Do you see it in the dev console?
    Yes , it is creating a node
    D) Is user B receiving an onItemReceive at all? Is user A?
    Yes , it is creating a node
    Now both the user getting chat message, have following issue
    When user A initiate the chat with user B this action is not opening chat pod / window on user B end which shows user A has initiated chat with user B
    But when user B click on user A name to initiate the chat, this action opens a chat window and user B can see message send by user A
    Above scenario is not normal chat behavior in which other user gets the notification of chat . what could be the problem

Maybe you are looking for