Email timing help

Hi All,
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - ProductionI have Query--
I am using oracle plsql procedure for sending mail and its working fine but the time of send, it's showing wrong.
Suppose i am sending mail now so it's showing send time in my inbox 5 hour More.
DECLARE
   v_From       VARCHAR2(80) := 'EMAIL_ID';
   v_Recipient  VARCHAR2(80) := 'EMAIL_ID';
  v_Subject    VARCHAR2(80) := 'MAIL FOR TESET ';
   v_Mail_Host  VARCHAR2(30) := 'SMTP_IP';
   v_Mail_Conn  utl_smtp.Connection;
   crlf         VARCHAR2(2)  := chr(13)||chr(10);
   v_date varchar2(50);
BEGIN
select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS AM') INTO V_DATE FROM DUAL;
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host);
  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);
--OPEN DATA CONNNECTION
  UTL_SMTP.OPEN_DATA(v_mail_conn);
--MAIL HEADER
  utl_smtp.write_DATA(v_Mail_Conn,'Date: '   || V_dATE || crlf);
  utl_smtp.write_DATA(v_Mail_Conn,'From: '   || v_From || crlf );
  utl_smtp.write_DATA(v_Mail_Conn,'Subject: '|| v_Subject ||sysdate||crlf);
  utl_smtp.write_DATA(v_Mail_Conn,'To: '     || v_Recipient || crlf);
--MAIL BODY
  utl_smtp.write_DATA(v_Mail_Conn,'MIME-Version: 1.0'|| crlf );
  utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;'|| crlf );
  utl_smtp.write_DATA(v_Mail_Conn,' boundary="-----SECBOUND"'|| crlf ||crlf );
  utl_smtp.write_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf );
  utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: text/plain;'|| crlf);
  utl_smtp.write_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit'|| crlf);
  utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
  utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
  utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
  utl_smtp.write_DATA(v_Mail_Conn,'Dear All'|| crlf);
  utl_smtp.write_DATA(v_Mail_Conn,'THIS IS A TEST MAIL.' || crlf);
  utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
--MAIL BODY
      utl_smtp.write_data(v_Mail_Conn, utl_tcp.CRLF ||'This mail is auto generated.');
--CLOSE CONNECTION
  UTL_SMTP.CLOSE_DATA(v_mail_conn);
  utl_smtp.Quit(v_mail_conn);
EXCEPTION
  WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;I have declare a verible for storing date and initialize it with current date.
I have also tried by providing below but not working.
  utl_smtp.write_DATA(v_Mail_Conn,'Date: '   || to_char(sysdate,'DD-MON-YYYY HH24:MI:SS AM') || crlf);can anybody pleaes help me to get the correct received time.

Chanchal Wankhade wrote:
I am using oracle plsql procedure for sending mail and its working fine but the time of receive, it's showing wrong.
.. cut ..
I have also tried by providing below but not working.
.. cut ..
can anybody pleaes help me to get the correct received time.I've no idea in what way it's "showing wrong" or "not working", and also have no idea what is the "correct received time".
I don't think you'll get much help if you don't provide all the information.

Similar Messages

  • Timing help needed.

    Hi. I have built a gaussian noise generator nad need some timing help. The VI needs to count time only when the signal is too low. Currently I have an Elapsed Time express VI instide a case structure. It begins timing when the signal drops just fine, but continues to count time until the program stops running even when the signal increases again. I'm not sure how to program an if and only if sort of situation for this. Any ideas would be wonderful, and I have attached the VI.
    Attachments:
    Kelly New Gauss1.vi ‏374 KB

    My gut reaction is that you should not be using the "elapsed time.vi" to measure time.  You will get a very innacurate measurement. 
    Instead, you should be looking at your raw data, and counting the number of samples that are below your threshold. 
    But of course, if you are OK with innacuracy (which you might be ... depends on your application) then you should probably use a shift register to track when the value goes below your thrshold, and then add the elapsed time to the shift register.
    You may also want to start here to learn more about structures.

  • Hi, I recently got the iPhone 6, a bit of mucking around with iMessage, over it to be honest. When i message from my macbook air my recipients receive my message from my email. HELP! it never used to do this. its so annoyingly frustrating.

    Hi, I recently got the iPhone 6, a bit of mucking around with iMessage, over it to be honest. When i message from my macbook air my recipients receive my message from my email. HELP! it never used to do this. its so annoyingly frustrating.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.)

  • I forgot my apple password  and i forgot the security q , and i think somebody hacks my email . please help

    i forgot my apple password  and i forgot the security q , and i think somebody hacks my email . please help!!!
    this is it ([email protected])

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.
    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • I need to replace the nano SIM card tray of my brand new Ipad Air, but here in Brazil it has been impossible...How can I contact the US apple store through email to help me?

    I need to replace the nano card SIM  TRAY of my brand new IPad air, but here in Brazil it has been impossible...How can I contact the US apple support through email, to help me?

    Visit an ASP or dealer

  • HT201363 I have requested the email to help me with forgotten security questions several times over many days but I do not get the email; now I cannot use my account without knowing the security question answers?

    I have repeatedly requested the email to help with forgotten security question passwords but never receive it; I cannot access my account for purchases with out the answers; how can i fix this?

    Hello Jamped,
    It sounds like you are doing the correct process to reset your security questions, but you are not getting the email at your recovery address. I recommend checking your spam folder first. If it is not there I would next reach out to
    our iTunes Account Security team who may be able to help if you can verify your account info:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • HT201363 Hi dear sir/Madam  i have my apple id & its password but i forgot the answers of the security questions and i have no rescue email pls help me how can i reset the security questions?

    Hi dear sir/Madam  i have my apple id & its password but i forgot the answers of the security questions and i have no rescue email pls help me how can i reset the security questions? as i have some credit in my account i can not creat a new apple id.

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105243)

  • I got email telling me I used all my storage. I bought more but am unable to access all my emails. Help please

    I got an email telling me I used all my storage. I bought more but am unable to access all my emails. Help please

    I too have the same problem after I upgraded to Firefox 5 today. I have a Tiscali webmail account, it lets me sign in but a message is displayed that I have "undefined e-mails".
    I closed down Firefox and opened Internet Explorer. This allowed me to sign in and access my e-mails without any problems.
    Had to smile to myself as Firefox required my e-mail address to register and verify my new account so I could place a post or reply to other peoples posts etc. As previously mentioned I can only access these via Internet Explorer!

  • TS1702 I buy app keynote but i' don't have serail number in email . Help me please . Thank you

    I buy app keynote but i' don't have serail number in email . Help me please . Thank you

    This means you have the iWork '09 trial installed. You need to delete the trial & then reinstall from the boxed DVD or the Mac App Store. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user. Yvan Koenig has written an AppleScript that removes the files. You can find it on his box.com account in for_iWork'09 > other_iWork'09 items > uninstall iWork '09.zip.

  • HT6030 Since I did the update, my mail-programm doesn't work no more. So I cannot send any eMail out or change the text into the eMail. Help, this is a catastrophe!!! Lukas Schmid

    Since I did the Mavericks-update, my mail-programm doesn't work no more. So I cannot send any eMail out or change the text into the eMail. Help, this is a catastrophe!!! Lukas Schmid

    Hey Lukas Schmid,
    The following resource may provide more help in troubleshooting Mail for OS X:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    For more information, you can also visit http://www.apple.com/support/mail/
    Thanks,
    Matt M.

  • What is hips email attachment helper because it does nothing

    when i try to download an online game it asks me to open it with hips email attachment helper and I have no idea what that is because when I click it- it does nothing
    == This happened ==
    A few times a week
    == i try to download games

    Thank you, Westongallagher,
    Outlook Express. Didn't know that. No, I don't have Thunderbird - I'll look it up.
    Not sure if it's worth installing another program just for the occasional "joke" from a PC person!
    Larry

  • I write a new email from my personal gmail account and it automatically sends from my family gmail account.  I  make sure that it lists my personal email on the from line. it still shows up that its from my family email. Help!

    I write a new email message from my personal gmail account and it automatically sends from my family gmail account.  I  make sure that it lists my personal email on the from line. It still shows up that its from my family email. Help!

    Hello, gypsyro. 
    Thank you for visiting Apple Support Communities.
    I would check to make sure the default account in Settings > Mail, Contacts, Calendars is set to your personal Gmail account.  Test send another message after making the change.
    Mail Settings
    Cheers,
    Jason H.

  • HT5312 I can't get a rescue email to reset my security questions. I clicked the link but there's no massages in my inbox alternate email. Help please :(

    I can't get a rescue email to reset my security questions. I clicked the link but there's no massages in my inbox alternate email. Help please :(

    You are checking your rescue email account - an alternate/secondary email address is a different setting/address on an iTunes account. If it's not in the spam nor inbox then you could try requesting it again, or contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699

  • HT5577 I lost my Apple ID,icloud,pass and my email,please help ! thank !

    I lost my Apple ID,icloud,pass and my email,please help ! thank !

    I also got this email and had my phone "automatically" removed. But luckily I set up a extra mobile number as a trust device. You should also have a generated backup key saved somewhere?

  • TS3276 Mail has started sending duplicates of a message, especially group messages.  It also opens 2 windows for writing a new email.  Help.

    Mail has started sending duplicates of a message, especially group messages.  It also opens 2 windows for writing a new email.  Help. How do I fix this?

    Unfortunately there isn't official commercial support for Mozilla Thunderbird from Mozilla Corp.. I believe some contributors here ([http://mozilla.magicfab.ca myself included]) do offer such support, though.
    ''Before doing anything else, please do exit Thunderbird completely and [https://support.mozilla.org/en-US/kb/profiles-tb#w_backing-up-a-profile backup the profile folder] - it contains all your email, settings, filters, etc.''
    Regarding your issue, it looks like the mail folder information may be corrupt. In the left pane, in the folder list, right-click on the Sent folder and select '''Properties'''. Choose "'''Rebuild Index'''" or "'''Repair Folder'''" - do you even have that option? Once done, exit TB completely and restart it.
    Updating to a newer version will help anyone help you, if only because some of the documentation for older Thunderbird versions is a bit harder to find and testing to try & reproduce your problem will be harder. Don't do this just yet, though :)
    After this issue has been addressed I would suggest considering using IMAP if your provider allows you to, and of course archiving your email to Local Folders and doing regular backups of your profile.
    If you want to arrange commercial support, contact me via the link I provided above and we can discuss rapidly. Otherwise I am fine continuing here, however I can only reply as time permits. I am in Montreal (so, EST time zone).

Maybe you are looking for

  • Mail options & disposable addresses moved!

    Did anyone else lose access to their disposable addresses?  They're under 'Mail options', which used to be a very clear text button at the top left of the mail screen.  I've finally found that it's moved to the 'Gear cog' tools icon, at the top right

  • IBook doesn't power on

    Hello I have an iBook G3 500 mhx ppc g3 256 mb or ram 15 Gb Hard drive Dual booting Mac OS X 10.1 and 10.3. I was going to upgrade the os but when I turned it on I heared the Hard drive turn on and then It turned off and nothing on the screen. I trie

  • How can I use ipad 2 in India?which was bought in US.

    how can I  use iPad 2 in india,which i bought in US? It is a cdma,not sim card

  • Type Doesn''t Change Color

    Hi, I select my black type and then from the "Color" I use the sliders to choose a color but the type remains black. Why doesn't the type change to the color I select. It's probably something simple I am overlooking. Thanks

  • HOW TO REFORMAT DRIVE, INTSALL SYSTEM AND RESTORE ALL DATA (APPLICATIONS, E

    I wish to reformat my main internal drive that contains OS X, applications and data files. Can this be done without having to resintall all the applications indiviually? Whats the best way - migrate to another computer and then migrate back - or make