ODI send Email procedure Problem

Hi ,
I am trying to send email using ODI
I have found in oracle support that if we configure TRT_Send_Jython_HTML_Email.xml procedure we can send an email
I tried doing so, but even though I select the LoadFromFile as no , I am getting the following error
org.apache.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 1, in ?
File "C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\smtplib.py", line 483, in sendmail
File "C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\smtplib.py", line 352, in rset
File "C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\smtplib.py", line 294, in docmd
File "C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\odi\bin\..\..\jdev\extensions\oracle.odi.navigator\scripting\Lib\smtplib.py", line 271, in getreply
SMTPServerDisconnected: Connection unexpectedly closed
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2374)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1615)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1580)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619
Can anyone pls tell me how to resolve this problem.
Thanks
Ashvini

Are you sure that you can reach the smtp server from within your network ? You would want to verify that first following this -http://support.microsoft.com/kb/153119

Similar Messages

  • Exchange 2013 wil NOT send email, same problem as every other exchange 2013 user, typical everything.

    I have a brand new dell server 2 netwrok cards. One WAN one LAN connected, each with its respective DNS server added to the card. In OWA the sent email shows in drafts, in outlook it shows in sent items, the user NEVER gets it, internally or externally.
    i get all mail from the internet, exactly as expected no problem, all tests show this is working everything checks out fine, server runs great, full blown domain controller with exchange 2013 added. ONLY problem after the 9th install, is still the same, exchange
    will NOT send email, everything else works perfectly event log looks great. I do see the DNS error where a DNS server on that network card is not responding crap, which is not true, internet works, al pages everything, NO firewall Bare connect while i get
    it to work. I HAVE been over the forums for the last week, tried all done all. i am an MSCE, was an MCSE instructor for 10+ years, Exchange Administrator, Exchange instructor for years, so yea, i am not some newb who has no clue, this DOES NOT WORK. it
    came at the CU1 level right out of the box, so i did not install and break it myself Microsoft is now selling this broken. Where do i go what do i do here. Like i said, every other aspect is in perfect order, Just email not sent, not showing in exchange tracking
    logs, and that DNS error on the event log, and YES i made the send connector, and the 3 setting it asks, not like that could be wrong, i mean seriously you put in very little info, any wrong entry would be obvious to even a child. SO walk me through what is
    going worng, as soon as this server sends an email, i am done building this domain, Please Help here.

     Performing Outbound SMTP Test
      The outbound SMTP test was successful.
     Additional Details
    Elapsed Time: 18739 ms. 
     Test Steps
     Attempting reverse DNS lookup for IP address xxx.xxx.xxx.148.
      The Microsoft Connectivity Analyzer successfully resolved IP address xxx.xxx.xxx.148 via reverse DNS lookup.
     Additional Details
    The Microsoft Connectivity Analyzer resolved IP address xxx.xxx.xxx.148 to host wsip-xxx.xxx.xxx.148.ri.ri.cox.net. 
    Elapsed Time: 187 ms. 
     Performing Real-Time Black Hole List (RBL) Test
      Your IP address wasn't found on any of the block lists selected.
     Additional Details
    Elapsed Time: 18453 ms. 
     Test Steps
     Checking Block List "SpamHaus Block List (SBL)"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 1050 ms. 
     Checking Block List "SpamHaus Exploits Block List (XBL)"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 27 ms. 
     Checking Block List "SpamHaus Policy Block List (PBL)"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 60 ms. 
     Checking Block List "SpamCop Block List"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 90 ms. 
     Checking Block List "NJABL.ORG Block List"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 8161 ms. 
     Checking Block List "SORBS Block List"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 119 ms. 
     Checking Block List "MSRBL Combined Block List"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 61 ms. 
     Checking Block List "UCEPROTECT Level 1 Block List"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148 wasn't found on RBL.
    Elapsed Time: 63 ms. 
     Checking Block List "AHBL Block List"
      The address isn't on the block list.
     Additional Details
    IP address xxx.xxx.xxx.148wasn't found on RBL.
    Elapsed Time: 8818 ms. 
     Performing Sender ID validation.
      Sender ID validation was performed successfully.
     Additional Details
    Elapsed Time: 97 ms. 
     Test Steps
     Attempting to find the SPF record using a DNS TEXT record query.
      The Microsoft Connectivity Analyzer wasn't able to find the SPF record.
     Additional Details
    No records were found.
    Elapsed Time: 97 ms. 

  • Send Email Procedure

    Hello,
    I've tried to run the code below (to send an email), but I keep getting an error msg. (ORA-03113:end of file on communication channel).
    Any thoughts on how to overcome this error?
    ========CODE==================
    CREATE OR REPLACE PROCEDURE HSS_KOL.SP_MSViolation_Email AS
    --Decalaration Area
    sender VARCHAR2(300);
    cc_to VARCHAR2(2000);
    subject VARCHAR2(300);
    mailhost VARCHAR2(200);
    mail_conn utl_smtp.connection;
    msg VARCHAR2(2000);
    crlf VARCHAR2(2) := chr(13)||chr(10);
    v_seID NUMBER;
    v_msID NUMBER;
    v_mgrID NUMBER;
    v_msEmail VARCHAR2(150);
    v_mgrEmail VARCHAR2(150);
    v_location VARCHAR2(150);
    v_CntDate DATE;
    v_mgrRec CLOB;
    v_mgrCmt CLOB;
    v_cntSpend NUMBER;
    --Cursor Declaration Area
    CURSOR cur_ViolationInfo IS
    SELECT SE_INFO.SE_ID, SE_INFO.KOL_ID, SE_INFO.Med_SCIENTIST_ID MS_ID, SE_INFO.EXCHANGE_DATE, KOL.FIRST_NAME || ' ' || KOL.LAST_NAME OL,
    SE.MANAGER_COMMENT, SE.MANAGER_RECOMMENDATION, MS.EMAIL email
    FROM SE_INFO, SE, KOL, MED_SCIENTIST MS
    WHERE SE_INFO.SE_ID = SE.SE_ID
    AND SE_INFO.KOL_ID = KOL.KOL_ID
    AND SE_INFO.MED_SCIENTIST_ID = MS.MED_SCIENTIST_ID
    AND (UPPER(SE.OFFLABEL_VIOLATION) = 'YES' OR UPPER(SE.AE_VIOLATION) = 'YES');
    i_ViolationInfo cur_ViolationInfo%rowtype;
    BEGIN
    --Loop thru Violations
    FOR i_ViolationInfo in cur_ViolationInfo LOOP
    v_msEmail := i_ViolationInfo.email;
    v_msID := i_ViolationInfo.MS_ID;
    mailhost := 'localhost';
    sender := '[email protected]';
    v_CntDate := i_ViolationInfo.Exchange_Date;
    v_seID := i_ViolationInfo.SE_ID;
    --Get the Mgr. Email so we can cc him
    SELECT DISTINCT email
    INTO v_mgrEmail
    FROM SE_INFO, REPORT_STRUCTURE RS, MED_SCIENTIST MS
    WHERE MS.MED_SCIENTIST_ID IN (SELECT REPORT_TO FROM REPORT_STRUCTURE)
    AND SE_INFO.SE_ID = v_seID;
    --Find out if there's a spend location
    SELECT COUNT(EXP_CITY)
    INTO v_cntSpend
    FROM SPENDING
    WHERE SPENDING.SE_ID = v_SEID;
    --if not, leave location null
    IF v_cntSpend <1
    THEN v_Location := ' ';
    ELSE --get the spending location into the variable
    SELECT SPENDING.EXP_CITY || ', ' || SPENDING.EXP_STATE
    INTO v_Location
    FROM SPENDING
    WHERE SPENDING.SE_ID = v_SEID;
    END IF;
    subject := 'Your manager has found a violation in your SE(s)';
    cc_to := v_mgrEmail; -- Managers email;
    msg := 'From: ' || sender || crlf ||
    'Subject: ' || subject || crlf ||
    'To:' || v_msEmail || crlf ||
    'CC:' || cc_to || crlf || '' ||crlf
    || 'Dear ' ||crlf || crlf
    || 'Here are the details of the violation: ' || crlf
    || 'Contact Date' || ' ' || v_CntDate || crlf
    || 'Location' || ' ' || v_Location|| crlf
    || 'Please take corrective action soon';
    mail_conn :=utl_smtp.open_connection(mailhost);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, v_msEmail);
    utl_smtp.rcpt(mail_conn, cc_to);
    utl_smtp.data(mail_conn, msg);
    utl_smtp.quit(mail_conn);
    v_msID := 0;
    v_CntDate := null;
    v_msEmail := null;
    v_seID := 0;
    cc_to :='';
    END LOOP;
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    utl_smtp.quit(mail_conn);
    raise_application_error(-20001, 'Failed to send mail due to the following error:' || sqlerrm);
    WHEN OTHERS THEN
    utl_smtp.quit(mail_conn);
    raise_application_error(-20002, 'The following error has occured:' ||TO_CHAR(sqlerrm));
    END;
    /

    An ORA-03113 is symptom of an error and is in itself a totally meaningless message for determining the error.
    An ORA-03113 is created by the client driver - it's not an error returned to the client by the server. This client error message simply says that the client has discovered that the Oracle Server Process that was servicing it, can no longer be communicated with.
    Why?
    The usual reason is that the Oracle Server Process that was servicing that client session crashed. When it did so, it took the "communication channel" down with it. This now results in an ORA-03113 on the client when the client attempts to "talk" to its server.
    When an Oracle Server Process crashes, there should be traces of that - a message in the instance's alert log file recording the crash and specifying what the trace/dump file name is that was created for this crashed process.
    Find that message and post your problem, with that message (full error details) in the [url http://forums.oracle.com/forums/forum.jspa?forumID=61]Database - General forum.

  • MacBookPro, V.10.5; Firefox 3.6.10; cannot send email "connection problem" - switched to "classic mail" sent no problem ... ?

    MacBookPro, OS x (10.6.5); Firefox 3.6.10; problem recently came up - no changes to system ... "cannot send mail due to connection problem" - When problem with Firefox came up, I could send mail with Thunderbird ... today (third day w/problem) I switched to Firefox "classic mail" and sent mail with no problem

    a day or two later, this problem went away ... -?-

  • Can't send email--new problem with this iPod

    My juno email was sending spam I was informed.  I changed my password on the email and now I can't send any email on my juno accts.  Sometimes I can receive email but now I can't send.  HELP!

    Try:
    iOS: Unable to send or receive email
    I would try deleting the account on the iPod and reentering all settings

  • ODI send email with latest error file attachment

    We have kick-out/error file with the format *err.txt. Whenever error occurs the same gets overwritten by the latest file. We are attaching this error file on the completion of the job. If error file generates, everything is fine. But, on the successful run, I mean when there are no error file generation, it attaches the previous run error file.
    Anyone of you help me how to handle this situation. Is there any way to validate the file generation date before attaching the file.
    Thanks in advance
    Edited by: user12958295 on Oct 30, 2012 7:42 AM

    Hi,
    Thanks for the response.
    As of now we are following that as a workaround. However our client wants to avoid the manual work of delete/move/renaming the error file.
    Is it possible to check the file generated date with sysdate for attaching the error file by odisendmail.
    Thanks!
    BRM

  • Cannot send emails thru roadrunner

    i spoke to time warner and got their server names but still cannot send emails. no problem receiving them but if i am not on my roadrunner wifi i can't send emails on my iphone. could their be a second server i need to set if i am outside of their service? thanks

    Maybe this will help... http://discussions.apple.com/thread.jspa?messageID=13124872&#13124872

  • Problem in sending email ??

    Hi Guys
    we are facing a strange problem. We have a lot os programs which sends emails from SAP. Since this week the system is not sending any emails. Once the program is executed the program generates the emails which we can see in the SOST transaction. It is NOT in ERROR but still it is not sent to the inbox( internet).
    All the messages are staying in the queue with the message 711. When i check the long text of this message it says
    <i>Message transferred by node to communication system
    Message no. XS711
    Diagnosis
    The node has passed the message to its communication system.
    System Response
    Processing was ended normally.
    Additional information on the node used (in the system language of the node):
    Procedure
    No action is necessary. The message will shortly reach the recipient.
    </i>
    But we have waited for one complete day and the emails are still in the queue. Any idea what is missing. I also tried to select the unsent emails and Force send it but it still did not work. I then executed the RSCONNECT program to send all the emails still it did not work.
    Any idea????????
    ~Suresh

    Hi Suresh,
    As you are saying that the mail functionality was working fine last week and not working during this week that means there must be something changed. May be you have not applied support pack but basis may have changed system parameters, or check with the batch jobs if they are working fine.
    Regards,
    Atish

  • ODI send mail problem

    Hi,
    i am trying to send mail via ODI send mail package and getting error below,
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
    any advise pls
    thank you

    ODI is sending the email without a password which is the behavior of OdiSendMail.
    Where as your mail server is looking for a authenticated mail i.e. which has password , this is why you are getting this error.
    For OdiSendMail , use a mail server which does not requires an authentication
    Else use customized Jython mail sending procedure ... see details in ODIsendmail error

  • New problem-Unable to send email when on AT&T 2G or 3G only

    I have had a problem for the past two and a half days. As of about 11 am PDT on 3/16/10, I was no longer able to send email through my primary ISP email account (Speakeasy.net) from my iPhone when on AT&T's 2G or 3G network, but can if I'm on a WiFi network. I have had my iPhone 3G for about 18 months and this email account has functioned perfectly that whole time. I contacted Speakeasy's fabulous tech support and learned that EVERY Speakeasy iPhone user has the same problem. Apparently it is a problem with AT&T's servers. There is an issue with the "reverse DNS" response and AT&T's servers aren't responding in time or at all so the request to send mail (or verify the identity of the sender or Speakeasy's mail server - I'm not that much of a techie to totally get this) so the request times out. Speakeasy says that AT&T is aware of it and there is nothing they, Speakeasy, can do. I've spoken to AT&T about it twice, and they say they are moving it up the tech ladder and someone is supposed to get back to me within 48 hours. That deadline will come up soon.
    The odd thing is that I can continue to send mail from my backup Gmail account while on the 2G or 3G network. Unfortunately it isn't very convenient at all, and that begs the question as to why this is happening in the first place.
    At least I know it isn't just me, but I do wonder what other ISPs are affected by it. Hotmail? Earthlink? Astound?
    I am running the current versions of all software involved. And since I know it isn't just me, and that there's nothing I can do about it, that is cold comfort.
    I have to wonder where Apple's servers come into the outgoing email process as I understand all mail goes through (in some order or other) Apple servers, AT&T servers, and the subscriber's ISP.
    Is anyone else having this trouble? Apple-what can you do? I'm not getting the service from AT&T that I am paying for and I'm not a happy camper at this point.
    Thanks.

    Mail does not go through Apple servers at all unless you are subscribing to MobileMe, so this is not an Apple issue and they cannot help you. Also, this is a user-to-user site, you aren't speaking to anyone from Apple here. You have done what you can by contacting Speakeasy and AT&T, as you stated your deadline is not up yet. If it passes contact AT&T. You can also contact AT&T customer service and ask for a credit to your account.

  • I cannot send email on my iMac from Mac Mail.  The account shows that it is offline.  I've recently updated to Yosemite.  I can, however, receive email.  What can I do to fix this problem?

    I cannot send email on my iMac.  I have recently updated to Yosemite.  I don't know if that is the problem or not.  However, I can receive email on all of my email accounts, but cannot send.  It shows that my accounts are offline.  How do I fix this?

    Have you received any tips on how to fix the problem yet?

  • Having problem to send email with POP account ...

    Hi,
    I didn't have that problem before upgrading to my new 3GS iPHone. I have 3 email accounts on my iPhone: POP (videotron.ca), GMail and MobileMe. They all work fine except my POP account.
    From the POP account I can receive my email but I cannot send any. Funny enough, my emails are sent when the account is desactivated from my «Mail, contacts and Calendar» preferences on my iPhone.
    Can somebody help me ? Regards.
    Robert

    Hi Robert,
    I upgraded with the Iphone 3Gs a week ago and got the same problem with Videotron. The problem is with videotron as usual. If you want to be able to send email from your Iphone just go to Gmail, open an account FREE with them and then use this account to send Email...Work perfectly OK with me. Then of course you will have to phone videotron to make sure your account is fully available when you go on there Web site open the read email and be able to read your email if not solve the problem with them by phone. unless you will be able to send email easily with gmail and mather of fact it is free.
    Hope this will help from Quebec to Quebec!!!

  • Cannot Send Email Notification Using Stored Procedure.

    Hi Friends,
    I tried to execute this job scheduler...
    begin
    dbms_scheduler.create_job(
    job_name => 'ILMS_JOB_SCHEDULE'
    ,job_type => 'PLSQL_BLOCK'
    ,job_action => 'begin ilms.check_reminder(); end; '
    ,start_date => SYSTIMESTAMP
    ,repeat_interval => 'FREQ=DAILY'
    ,enabled => TRUE
         ,end_date => NULL
    ,comments => 'Ilms job schedule for notification.');
    end;
    However, since the effect is too long I rescheduled the frequency to be every one minute in this set attribute...
    BEGIN
    DBMS_SCHEDULER.SET_ATTRIBUTE(
              name => 'ILMS_JOB_SCHEDULE'
              ,attribute => 'repeat_interval'
              ,value => 'FREQ=MINUTELY;INTERVAL=1'
    DBMS_SCHEDULER.DISABLE('ILMS_JOB_SCHEDULE');
    DBMS_SCHEDULER.ENABLE('ILMS_JOB_SCHEDULE');
    END;
    Check Reminder is the stored procedure invoked by job scheduler to check values in database columns before sending email notification to the respective recipients' email address and also the format of the email notification to be sent to the recipients...
    CREATE OR REPLACE PROCEDURE check_reminder AS
    NO number;
    CURSOR emp_cur is
    select * from pergerakan_ks where TASK_FLAG=7 and TASK_STATUS='InProgress';
    emp_rec emp_cur%rowtype;
    email_to varchar2(200);
    default_email varchar2(200);
    mesg varchar2(4000);
    no_kes varchar2(100);
    subj varchar2(4000);
    kpi number;
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    BEGIN
    default_email:='@abc.com.my';
    FOR emp_rec in emp_cur
    LOOP
    if emp_rec.PKS_TKH_TERIMA is null then
    dbms_output.put_line('count day ' || round(sysdate - to_date(emp_rec.pks_tkh_hantar)) || crlf || crlf);
    if round(sysdate - to_date(emp_rec.pks_tkh_hantar)) >3 then
    email_to:=emp_rec.pks_penghantar_id||default_email;
    select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    dbms_output.put_line('update old pergerakan pks_id : '||emp_rec.pks_id);
    update pergerakan_ks set task_status='Done' where pks_id=emp_rec.pks_id;
    dbms_output.put_line('insert new pergerakan ks : ');
    insert into pergerakan_ks(pks_id,pks_ks_id,pks_km_id,pks_penghantar_id,pks_tkh_hantar,
    pks_penerima_id,pks_tkh_terima,task_name,task_owner,task_status,task_flag,fb_id)
    values(pks_id_seq.nextval,emp_rec.pks_ks_id,emp_rec.pks_km_id,
    emp_rec.pks_penghantar_id,sysdate,
    null,
    null,emp_rec.task_name,
    emp_rec.pks_penghantar_id,
    'InProgress',6,emp_rec.fb_id);
    commit;
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    end if;
    if emp_rec.PKS_TKH_TERIMA is not null then
    dbms_output.put_line('emp_rec.pks_km_id ' || emp_rec.pks_km_id || crlf);
    select c.KM_KPI into kpi from keluar_masuk_ks c where c.KM_ID = emp_rec.pks_km_id;
    no := round(sysdate - to_date(emp_rec.pks_tkh_terima))-kpi;
    dbms_output.put_line('count day - kpi' || no || crlf);
    dbms_output.put_line('kpi ' || kpi || crlf);
    if no = 1 then
    email_to:=emp_rec.pks_penghantar_id||default_email;
    select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    email_to:=emp_rec.task_owner||default_email;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    e_mail_message(email_to,email_to,subj,mesg);
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    if no = 3 then
    select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
    email_to:=emp_rec.task_owner||default_email;
    subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
    dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    end if;
    END LOOP;
    END;
    E_mail_message is the stored procedure invoked by the check_reminder to tell scheduler information of the connection and the email address of the recipients...
    CREATE OR REPLACE procedure
    e_mail_message
    from_name in varchar2,
    to_name in varchar2,
    subject in varchar2,
    message in varchar2
    is
    l_mailhost VARCHAR2(64);
    l_from VARCHAR2(64);
    l_to VARCHAR2(64);
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    l_mail_conn UTL_SMTP.connection;
    mesg VARCHAR2( 4000 );
    BEGIN
    select a.SERVER into l_mailhost from email_setting a where a.SERVER is not null;
    select a.USERNAME into l_from from email_setting a where a.SERVER is not null;
    --UTL_SMTP.open_data(l_mail_conn);
    mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
    'From: <'||l_from||'>' || crlf ||
    'Subject: ' ||subject|| crlf ||
    'To: '||to_name || crlf || '' || crlf ;
    mesg:=mesg||message;
    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, to_name);
    UTL_SMTP.data(l_mail_conn, mesg);
    UTL_SMTP.quit(l_mail_conn);
    END;
    I tried to execute to execute the e_mail_message procedure but received this error. Also, no notification sent to the email address...
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 241
    ORA-06512: at "ILMS.E_MAIL_MESSAGE", line 33
    ORA-06512: at line 13
    Please help so that I can receive the email notification into my email...thanks in advance for your time..

    user13281540 wrote:
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 241
    ORA-06512: at "ILMS.E_MAIL_MESSAGE", line 33
    ORA-06512: at line 13This is not an Oracle error - this is the mail server saying "+hey, I don't like that e-mail address you are supplying, I'm not accepting it!+".
    If you look at RFC821 (Request For Comments memo 821 describes the SMTP specifications), you'll see that the sender and recipient needs to be supplied in the format +<[email protected]>+, e.g. +<[email protected]>+.
    I have found that not all SMTP servers are equal in this regard. Some may insist on the brackets around the address, some may not.
    You need to confirm the format of the addresses you use in the "+MAIL FROM+" and "+RCPT TO+" commands.. and ensure that these formats are accepted by your SMTP server - and if not, change your code to use an acceptable format.
    The easiest way to do this is using telnet - and interacting directly and manually with the server. SMTP is a clear text protocol and easy to use manually. Try it. It is the best way to test SMTP interaction and validate the approach and SMTP commands and arguments used by your code.

  • HT1430 Cannot send email from iPhone 4S ..it keeps saying smpt password is incorrect but it is correct and I receive email no problem

    Cannot send email from iPhone...keeps saying smpt password is incorrect but it is correct.. I recieve email no problem

    On my own, I discovered the following, which worked (one responder got the solution part correct for Google): For Yahoo, where I just use a standard login with no extra verification, I had to go into Yahoo and change my password. Once I did this, the new iPhone had no problem registering accepting my Yahoo account. I WAS, however, using the correct password and user name all along, for those who did not think that was the case. The problem is on the iPhone software side. For Google, I use a two step verification, and for that, one must go to Google Mail and obtain a specific, unique password, that is designed to work only on iPhones. Hope this helps anyone else with this dilemma.

  • On my iPad I have installed the update ios 7.0.4 and now I can't send emails from the mail app is it just me or a problem with the update?

    On my iPad I have updated the software to iOS 7.0.4 and now I can't send any emails from the mail app.  Is this me or the update?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

Maybe you are looking for