Email notification program to send reminders

Hi all
For infotype 0019, Monitoring of task, have to develop a Email notification program to send reminders. Do any body have code or any idea how to approach.
rgds
AJ

Hi aj,
1. Infotype 0019 will only store data. It won't send any email.
2. For this purpose, we can develop one program,
   (which will everyday run in background)
3. This program will read the data from infotype 0019,
    based upon the date.
   It will fetch the required records,
   and send email based upon the type of notification and content.
regards,
amit m.

Similar Messages

  • Email notification is not send to contact person in SRM 7.0

    Hi Friends,
            I am in SRM 7.0 and SP03. I am using program '/SAPSRM/OFFLINEAPPROVALSEND' to send notification to approver. 
                 Email notification is not sending to contact person in SRM 7.0 after all approvers approved the shopping cart. I even enabled checkbox 'Approval of application object' for Contact person (in most cases, the creator of the document) in the SPRO-SAP Supplier Relationship Management-SRM Server-Cross Application Basic Settings-Business workflow-Process-Controled Workflow-Business Process Configuration-Define Recipient of Notifications. Am i missing something or is it how SRM 7.0 Build. I knew that this functionality is there in SRM 5.0 by activate the security level in the user settings(SU01), I also know that this setting will not work if we use Process control workflow. Any input on this..
    John.

    Hi Masa,
       Thanks for your input. I maintained the below entries but still it is not working. creator is not still receiving approved Email once the shopping cart is fully approved.
    1 .SPRO-SAP Supplier Relationship Management-SRM Server-Cross Application Basic Settings-Define Transaction Types -
        BUS2121 - SHC - Event Schema as SC.
    2. I enabled all four check boxes in this path Define Recipient of Notifications - approve shopping cart - contact person ( in most
        cases, the creator of the document ) .
    But I don't know how to maintain or what to maintain for Define Event Schema. This will be highly appreciate if you share your great experience on this..
    Hi Masa,
       I got approved Email after 10 mins. I don't know is this how the standard email send to requestor any idea how to change this? I found the Standard task that mail is sending
    Document 1000001212 approved
    WF-BATCH
    to:
    XXXXXXX
    08/12/2009 03:35 PM
    Show Details
    Document 1000001212 approved
    The document 1000001212 of type BUS2121 was approved.
    Technical information:
    Event:#APPROVAL_PROCESS_DOC_APPROVED
    SubCat:#APPROVAL_RESULT_NOTIFIC_NEW
    The following messages have been triggered by the system:
    You can view the document directly. Choose the following link :
    Login
       I am facing another issue that the Email is having a PORTAL link (Login text above is basically a link), when i click and after login into portal a pop up is displayed 'The specified transaction mode is not allowed with respect to workflow status of current document'. any idea about this issue?
    John

  • Alert email notification does not send

    Hi,
    I have a problem with outgoing email alert notification.alert email just sent to site owner group with full access permission, but I config send alert me on list that send email immediately to all users of this site.
    could anyone help me to resolve this issue?

    As I know, you can only configure user/email address for 'Send Alerts To'.
    SharePoint Group is not allowed in subscribe alert screen. 
    How did you configure alert? can you explain a bit here.
    Please check if all your user has email address in their profile? 
    please 'Propose as answer' if it help you, also vote this as helpful if you like this reply.

  • Sending Email Notification to User's of PO Approval Workfow .

    Hi ,
    I have copied the standard Workflow template for PO Approval Workflow from WS20000075 to Customized one.
    Standard Behaviour :
    According to SPRO COnfiguration , agents are picked according to REL Strategy and corresponding Rel code.
    For Eg : if REL Strategy = 1 and Associated Release Code is from 1 2 3 4 5 then it is 5 level approval.
    all the setting are done correct .i am using default rule for agent determination i.e 20000027. which is working correct.
    My requirement is before sending the Workitem to SAP Inbox for release , Email notification should be send to approver
    for Eg : if Rel Strategy = 1 and Rel code = 1 then listed user should get Email Notification to his outlook about the PO, once he releases it , next User should recieve the Email Notification till all the Overall release.
    *Scot settings are maintained .
    i have tried diferent ways to find the solution but dint suceed in finding the solution , neither was able to find the solution for this case in SDN threads .
    Request you to share your knowledge . Points are guaranteed.
    Thanks in Advance
    chitis

    Hello,
    "I just want to send the Subject line as the Notification to the Email Id and not the workitem from SAP , workitem needs to be executed from Inbox .can it be achieved ?"
    The subject line will be: "you have new workitems in your inbox". Simple and to the point. The text of the workitem will be in the contents of the email. If you want anything fancier then you will have to add a sendmail step to every decision step in every workflow. Not worth it.
    "Secondly , do i need to maintain the Email ID of the user in SU01 for this?"
    Yes, that's where it reads the email address. It has to get it from somewhere.
    "What all the prerequisites for this config ?"
    Search for Extended Notifications in this forum.
    regards
    Rick Bakker
    hanabi technology

  • How to prevent specific email notification in document library?

    I've got the following scenario:
    If metadata is changed for a document in my library I want email notifications to be send out. If the document itself is changed (which happens by a background workflow) the email notification (for changed elements) shouldn't be send out. When I'm talking
    about notifications I mean user alerts which have been created for personal use.
    When you use SPListItem.SystemUpdate() you can prevent the update mechanism to be executed. Is there something similar for SPFolder.Files.Add()? 
    I've looked into writing an SPAlertHandler like this but I don't know how to catch this specific case.
    If I execute Folder.Files.Add with DisableEventFiring, will the notification be send out anyway? I would be very thankful for any advice.
    Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

    Chitra,
    you can have one record per affiliate in the custom table with Standard Text name and no of days and in your program based on the text name and no of days you should able to send notification also for locking the PO from approval the work item can be deleted(by program) so that the approver can no longer approve the PO.
    Thanks,
    Suresh

  • Email notification for each order created by dealer

    Hi expert,
    My user request to have simple notification from email when everytime dealer finish creating their order. Email notification will be send to difference person depending on which dealer appoint to them. In my order setting there is no output type maintain yet.Can anybody help me...
    thanks

    Dear Sujiana,
    you will find all the necessary steps in TA VOK2.
    in TA VOK2 -> you will find all steps you have to do.
    Define condition type
    Define condition table
    Define access sequence
    Define output determ. procedure
    You could use output medium 5 (external send) and processing routines e.g.:
    Program                 RVADOR01
    Form Routine          ENTRY
    Form                      RVORDER01
    dispatch time: send immediately.
    Best regards,
    Andreas

  • Approval workflow - email notification

    Hi,
    I was run out of idea how to complete my assigned job, need oracle expert to help on email notification workflow.
    Currently I am working on workflow enhancement with oracle application E-Business Suite for our company.
    My job is to add in new approval process to approve Bank Details transaction through AME.
    For this Bank Details transaction, the existing approval process is will only route to HR.
    Now my job is to add Admin & Manager approval, which mean once the transaction is submitted and the approval processes are as below:
    Admin --> Manager --> HR
    But this approval process will fall into 2 scenarios as below criteria.
    Scenario1: If the selected Bank Name from List Of View (LOV) not "Other Bank" then the approval process is Manager --> HR
    Scenario2: If the selected Bank Name from LOV is "Other Bank" (once Other Bank selected, user will need to enter the new Bank Name) then the approval process is Admin --> Manager --> HR
    Once Admin approve, Admin will add the new Bank Name into LOV.
    Both scenarios will auto trigger email notification to the approver once there is pending for Admin and Manager approval.
    For scenario1, our email process package able to send out email notification to the manager.
    But for scenario2, email notification not send to Admin. FYI, our Admin is a group of persons assigned to Admin group.
    My doubt here is how to let this email notification able to send out to Admin group?
    Hopefully anyone of oracle workflow expert could help me as soon as possible.
    Thanks.

    Hi Mike,
    According to your post, my understanding is that you wanted to use workflow to send emails to the approvers when a task process completed in SharePoint Designer 2010.
    First, when you add the “Start Approval Process” action to create the workflow in SharePoint Designer 2010, you can click on “these users” to set the task process participants and you can choose “One at
    a time (serial)” or “All at once (parallel)” to set how the tasks will
    be created.
    Then, if you want to send an email to the approver when a single task process completed, you can click on “Approval” in the
    “Start Approval Process” step to edit the task process and click on “Change the behavior of a single task” in the “Customization”
    to add the “Send a Task Notification Email” action in “When a Task Completes” section as below:
    And if you want to send emails to the all approvers when all tasks are completed, you can click on “Approval” in
    the “Start Approval Process” step to edit the task process and click on “Change the behavior of the overall task process” in
    the “Customization” to add the “Send an Email” action in “When the Task Process Completes” section as below:
    If you want to use the approval workflow to update the content approval status, then you can add the “Set Workflow Variable” action to set “Variable: EnableContentApproval” to “Yes” after you add the “Start
    Approval Process” action in the workflow, and it should be added above the step “Start Approval Process”.
    Please refer to the link below to add the “Set Workflow Variable” step in the workflow:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b5bebacf-4bb9-4e43-84d7-6eb2714f071d/is-there-an-option-to-set-content-approval-status-according-to-approval-process-workflow?forum=sharepointcustomizationprevious
    Best Regards,
    Victoria
    Victoria Xia
    TechNet Community Support

  • SharePoint Foundation 2013 installed on Windows Server 2012 not sending out email notification

    I have a server where i installed SP Foundation 2013 on top of Windows Server 2012. I have configured the SMTP as well as the outgoing SMTP in Central Administration
    of SharePoint. When i create an alert on a document library, its did not sent any email notification on the changes made to the document in the document library. So, i created a workflow to send out email using SPD2013. The workflow run, but it cannot sent
    out email with error saying that outgoing email is not configured correctly. I have checked with another server which i installed SP foundation 2013 on top of Windows Server 2008 R2 - its sending out email just fine using same configuration and outgoing SMTP.
    I need help to resolve this issue or at least the cause of the problem.
    Any help is greatly appreciated.

         
    Try below:
    http://social.technet.microsoft.com/wiki/contents/articles/13771.troubleshooting-steps-for-sharepoint-alert-email-does-not-go-out.aspx
    Go to Central Admin ---->Operations----->outgoing email settings and verify that SMTP server is mentioned correctly 
    2) Test the connectivity with the SMTP server.
    In order to do that follow these steps:
      Open  cmd
      telnet <SMTP server name> 25 ( We connect smtp server to the port 25)  
                     you should see a response  like this 220 <servername> Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at date and time
                     Beware that different servers will come up with different settings but you will get something
                     If you dont get anything then there could be 2 possible reasons, either port 25 is blocked or 
                     the smtp server is not responding.
      For testing response from your server
                       For testing response say ehlo to it.
                            Type :
                                        ehlo <servername>
                            output:
                                        250 <servername> Hello [IP Address]
      Now a test mail can be sent from that SharePoint server. 
                          Now we need to enter the From address of the mail.
                          Type :
                           mail from: [email protected]
                           output:
                           250 2.1.0 [email protected]….Sender OK
     It's time to enter the recepient email address.
    Type : rcpt to: [email protected]
    output:
    250 2.1.5 [email protected]
     Now we are left with the data of the email. i.e. subject and body.
    Type : data
    output:
    354 Start mail input; end with <CRLF>.<CRLF>
    Type:
    subject: this is a test mail
    Hi
    This is test mail body
    I am testing SMTP server.
    Hit Enter, then . and then Enter.
    output:
    250 2.6.0 <<servername>C8wSA00000006@<servername>> Queued mail for delivery
    Type: quit
    output:
    221 2.0.0 <servername> Service closing transmission channe
    3)  Check alerts are enabled for your web application
          verify if the windows timer service is running or not.
          Run this stsadm command to check that
          Stsadm.exe -o getproperty -url http://SharePoint-web-App-URL -pn alerts-enabled
         This should return <Property Exist="Yes" Value="yes" />
         If you don’t get this, Enable alerts by:
         stsadm.exe -o setproperty -pn alerts-enabled -pv "true" -url http://SharePoint-web-App-URL
          If its already enabled, try turn off and turn on it back.
    4)  Check the Timer job and Properties
           Go to
           MOSS 2007:  Central Administration > Operations > Timer Job Definitions (under Global Configuration)
           In SharePoint 2010: Central Administration > Monitoring > Review Job Definitions 
           Check whether the "Immediate Alerts" job is enabled for your web application. check these properties:
                       job-immediate-alerts
                       job-daily-alerts 
                       job-weekly-alerts
           stsadm.exe -o getproperty -url "http://Your-SharePoint-web-App-URL" -pn job-immediate-alerts
           The expected output is:
           <Property Exist="Yes" Value="every 5 minutes between 0 and 59"/>.  
           If you don’t get this, run the following command to set its value.
           stsadm.exe -o setproperty -pn job-immediate-alerts -pv “every 5 minutes between 0 and 59" -url http://Your-SharePoint-web-App-URL
    5)  Check whether the account is subscribed for alerts and it has a valid email account. This should be the first thing to check if the problem persists for some users not for      all.
    6)  Then check if at all those users have at least read permission for the list. Because the first mail should go out for every user without security validation but the next ones       won't be delivered unless the user has at least read
    permission.
    7)  If it is happening for one user, can also try to delete and re add the user in the site.
    8)  Most importantly , you should try this one.
          Run this SQL query to the content db < Select * from Timerlock>
          This will give you the name of the server which is locking the content database and since when.
          In order to get rid of that lock 
          Go to that server which is locking the content db and then restart the windows timer service.
          within some time it should release the lock from content db, if not then at the most stop the timer job for some time
          Once the lock will be released then try to send some alerts
          You will surely get the email alert.
    I found this is the most probable reason for alert not working most of the time. We should start troubleshooting with above steps before coming to this step for any alert email issue but from step 1 to step 7 are best for new environments or new servers.
    If the issue is like this ,alert was working before and suddenly stopped working without any environmental change then above conditions in step 1-7 should be ideally fine.
    Even after this if it is not working, then you can try these few more steps too
    9)  Try re-registering the alert template:
    stsadm -o updatealerttemplates -url http://Your-SharePoint-Web-App-URL -f  "c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\alerttemplates.xml" -LCID 1033
    10)  Try to clear the configuration cache
    If this helped you resolve your issue, please mark it Answered

  • Email notification sending problem

    Anyone can help me regarding my email notification sending.
    I have a program developed in netbeans which sends an email notification. Using the jar file generated when building/compiling the program, i created a batch file to run the jar. When i tried transferring the jar file to another pc, the program runs but the email sending does not. Im wondering which i need to check on for the file to run in another pc.

    What are the symptoms of 'email sending does not'?
    Have you access to the mail server on this second machine?

  • Program to send Workflow Approval Notifications to Outlook (RSWUWFMLEC)

    Hi,
    We recently upgraded from SRM 4.0 to 7.0. We used RSWUWFMLEC to extract approval work items and send email notifications to Outlook. Can we use same RSWUWFMLEC or is there a different program/process for this in SRM 7.0. For some reason RSWUWFMLEC is not working for SRM 7.0 approval work items.
    Thank You
    Vineela

    Hello Vineela,
    Check SAP help for SRM 7.0 release regarding offline approval:
    [Offline Approval|http://help.sap.com/saphelp_srm70/helpdata/en/31/47c6cb8e9249f2bc29444212e4704a/content.htm]
    Regards.
    Laurent.

  • Send email notification when the baseline and actual values are different in project

    Hi
    I am working with MS Project 2013 and Project Server 2013.
    I need to the send email notification to the program manager (or to a user) whenever the project manager changes the task finish date for a task. Comparison should happen with the baseline finish and the difference needs to be updated to the Program Manager
    over mail.
    How to configure/customize email notification for changes in MPP.
    Please suggest.
    Regards,
    Sudhir

    If you are not having developer skills it will be complicated for you.
    You need to create event handler by code, as in the below link:
    http://msdn.microsoft.com/en-us/library/office/gg615466%28v=office.14%29.aspx
    Then compare your values and finally send email by code.
    Twitter : @MShoubaki | http://jo.linkedin.com/in/mshoubaki

  • Send email notification reminder

    Hi All,
    We have a policies document library with 10 columns out of which "Policy Owner" and "Expiry Date" are the two columns.
       1. The requirement is to send two times email notification to the document owner
        a. Before One month of expiry date and
        b. Before one week of expiry date
       2. I have to create a view which should show the policy documents which are going to expire in one month comparing with "Expiry Date" coulumn
    Can some one please help me on this.
    MercuryMan

    Hi there,
    This can be achieved using SPD workflow. create one more column which will be updated once monthly reminder email sent. and the other email will send once that column set to Yes or some value.
    Create a workflow variable so with reference to expiry date it will be pause after first reminder and send another reminder before a week
    Here are some ref link
    http://social.technet.microsoft.com/Forums/en-US/0112eb9b-e9b8-4d04-8cf3-9bff91005193/reoccuring-email-reminders-in-workflow-2010?forum=sharepointadminprevious
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3211ee00-92de-47f1-b611-4c9609f92ab7/how-do-i-set-sharepoint-2010-to-send-a-reminder-email-a-month-after-a-date-already-listed?forum=sharepointdevelopmentlegacy 
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Send email notification when a concurrent request completes with Error

    {color:#0000ff}I need to setup the system such that when a concurrent request completes with the status "Error", generate/send email notification to an application user. Please advice if you know how to configure the system to accomplish this.
    Note: If the concurrent request completes with status "Normal" or "Warning", do not send/generate email notification to the application user.
    Thanks.
    {color}

    We do what amOx does. I made a concurrent program that calls a sql script, and emails me of errored jobs. It is more convenient than logging in each day. I ran this twice daily, and the sql checks for the previous 12 hour time slice (ie - twice a day run).
    ..colin

  • 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.

  • Cannot send email notification to more than one people

    Hi everyone,
    Hope anyone could help me to solve this. I want to send email notification to two people. First to the staff to alert him that his claim is ready. And also to his supervisor that the claim has been disbursed. Below is the PL/SQL procedure, check_claim being used..
    CREATE OR REPLACE PROCEDURE TEST.check_claim AS
    NO number;
    CURSOR emp_cur is
    select * from emp where dept=7 and status='active';
    emp_rec emp_cur%rowtype;
    email_to varchar2(200);
    default_email varchar2(200);
    mesg varchar2(4000);
    subj varchar2(4000);
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    BEGIN
    default_email:='@phantom.com';
    FOR emp_rec in emp_cur
    LOOP
    if emp_rec.claim_status ='Y' then
    email_to:=emp_rec.staff_id||default_email;
    subj:='Claim No'||emp_rec.claim_id;
    mesg:='Your claim has been disbursed. Please check.';
    email_to:=emp_rec.staff_hod||default_email;
    subj:='Claim'||emp_rec.claim_id;
    mesg:='Claim No'||emp_rec.claim_id||' has been disbursed';
    e_mail_message(email_to,email_to,subj,mesg);
    e_mail_message(email_to,email_to,subj,mesg);
    end if;
    END LOOP;
    END;
    The first email_to is to be sent to staff_id and the second email_to is to be sent to staff_hod.
    The PL/SQL procedure then called the e_mail_message procedure shown below for the connection information..
    CREATE OR REPLACE procedure
    TEST.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;
    However, the email notification only being sent to the supervisor / head of department. The staff concerned does not receive any email notification. Please help. Thank you for your time...

    from wht i see
    email_to:=emp_rec.staff_id||default_email;
    subj:='Claim No'||emp_rec.claim_id;
    mesg:='Your claim has been disbursed. Please check.';
    email_to:=emp_rec.staff_hod||default_email;  -- wrongit should be
    email_to:=emp_rec.staff_id||default_email;
    subj:='Claim No'||emp_rec.claim_id;
    mesg:='Your claim has been disbursed. Please check.';
    email_to:= email_to || ' , ' ||  emp_rec.staff_hod||default_email;

Maybe you are looking for