Send Email on some date

Hi experts
I need a FM to send a external email on some particular date.
Thanks
Bijal

Sample code
DATA : l_atch_name(50) TYPE c.
CONCATENATE text-022 sy-datum '.xls' INTO l_atch_name.
Fill the document data.
DESCRIBE TABLE t_message LINES g_w_cnt.
gd_doc_data-doc_size = ( g_w_cnt - 1 ) * 255 + STRLEN( t_message ).
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'CHANGEPOINTERS'.
gd_doc_data-obj_descr = text-016.
gd_doc_data-sensitivty = 'F'.
Populate the attachment table
CLEAR t_attachment.
REFRESH t_attachment.
APPEND LINES OF t_attach TO t_attachment.
Attachment
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = 'XLS'.
t_packing_list-obj_descr = l_atch_name.
t_packing_list-obj_name = 'TEST'.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
LOOP AT s_email.
t_receivers-receiver = s_email-low.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
ENDLOOP.
Call the FM to post the message to SAPMAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = t_packing_list
contents_txt = t_message
contents_bin = t_attachment
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Store function module return code
gd_error = sy-subrc.

Similar Messages

  • Problems Receiving Emails and some data on WIFI since latest software update.

    Problems Receiving Emails and some data on WIFI since latest software update. 
    My blackberry torch will not receive emails on wifi since the latest software update, I've tried numerous wifi networks and several handsets, even had them replaced and received a brand new. Still the same problem. 
    When turning off the wifi network on the torch, the phone will stall for 5-10min while it tries to communicate with the network (vodafone) to receive outstanding emails and data. 
    Can someone please inform Blackberry and get a quick fix on this

    Sounds like you have Do NOt Disturb turned on.
    settings - do not disturb - off

  • TS3899 Sending emails from some WI-FI locations

    I can send and receive emails in most WI-FI's yet once in a while I have trouble sending emails from some WI-FI locations, even though I can receive all emails and everything else works 100% too.  If I leave this WI-Fi and if I were to go to an Apple store for example, it will then send all emails in Outbox that will not send from this WI-FI . 
    What setting prevents sending emails from the few WI-FI!s that emails do not work.

    You're welcome.
    Please answer the question - is the account's SMTP server authenticated with the account's user name and password?
    Regardless, this has nothing whatsoever to do with the iPhone and once again, receiving email and sending email with an email client are completely separate processes. All ISPs block the use of SMTP servers that are outside of their network or not provided by the ISP being used for your internet connection at the time unless the SMTP server is authenticated. This is part of an overall effort to prevent spam eminating from the ISP's domain. Rarely if ever is there any restriction on receiving email regardless the ISP being used for your internet connection.
    The email account provider associated with the few wi-fi networks with the problem may restrict the sending of email with any SMTP server regardless if the SMTP server is authenticated.

  • I have not been able to send email for some time but now i have stopped being able to recieve email.

    i have not been able to send emails for some time but in the last two days ive stopped being able to receive, the message says 'username or password incorrect' ive checked all the settings, ive deleated accout and set up again, ive rebooted phone. i tried to sync with pc but this also fails any ideas

    That is correct, They don't seem to know about Mac, never got a single scrap of help from  them.  Try recreating your account from scratch, delete the account, (write down all your settings first) and add an account, see if that works, and if it does, delete the first account to prevent things doubling up on you.  I think that's what I did, it was quite a while ago.  Hope this helps, or gets you pointed in the right direction.  Maybe go to At&t and try creating another account, and if ti works, delete the first.
    One other tihing I did was to reset Safari, as AT&T uses the net, that's about all I can remember, like I said it was awhile ago.

  • Send email including the data field into the html message body

    Hi all,
    I would like to send an email to each recipient once only, and including a data field into the html body message. I am not sure how to achive that with my current stored procedure.
    USE [CallManager]
    GO
    /****** Object: StoredProcedure [dbo].[PersonalCallsReminder] Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    -- Email Users
    declare @email varchar(max)
    declare mycursor cursor FAST_FORWARD for
    SELECT dbo.HumersStaffExtension.email
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email,
    dbo.HumersStaffExtension.res_id
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'CallsManagement',
    @recipients = @email ,
    @body_format = 'HTML',
    @subject = 'Personal Calls Reminder',
    @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
    body {
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    .auto-style1 {
    background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>
    <table style="width: 800px">
    <tr>
    <td>Dear,<br />
    <br />
    Please review your phone bills and submit your personal calls using the following link:<br />
    <a href="http://companyxyz/personalcalls/">Personal Calls</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>Kindly be informed that the deadline to process new bills is on the
    <span class="auto-style1">15th of each month</span>.</strong></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td>For assistance, please contact <a href="mailto:[email protected]">[email protected]</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    FETCH NEXT FROM mycursor
    INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Changing the query to the following:
    SELECT TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
    dbo.Calls_Mobile_Header.ExtractDate
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    ORDER BY dbo.HumersStaffExtension.email
    Will provide me with the following results:
    email ExtractDate
    [email protected]
    July-2014
    [email protected]
    August-2014
    [email protected]
    July-2014
    [email protected]
    August-2014
    Is it possible to send email to [email protected] once only including in the html message body the ExtractDate field results for July-2014 and August-2014? 
    I appreciate any assist on the issue.
    Thank you in advance.

    Refer the below code highlighted in bold.
    USE [CallManager]
    GO
    /****** Object:  StoredProcedure [dbo].[PersonalCallsReminder]    Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:  <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     -- Email Users
    declare @email varchar(max),@date datetime
    declare @temp table (email varchar(50), extractDate datetime)
    insert into @temp
      SELECT     TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
      FROM         dbo.Calls_Mobile_Header INNER JOIN
             dbo.HumersStaffExtension ON
             dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
      GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
             dbo.Calls_Mobile_Header.ExtractDate
      HAVING      (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
      ORDER BY dbo.HumersStaffExtension.email
    declare mycursor cursor FAST_FORWARD for SELECT DISTINCT email from @temp
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
        DECLARE @date nvarchar(200)
        SELECT @date=Stuff((SELECT ',' + [extractDate]
                  FROM   @temp  where email = @email
                  FOR xml path('')), 1, 1, '')
           EXEC msdb.dbo.sp_send_dbmail
                @profile_name = 'CallsManagement',
                @recipients = @email ,
                @body_format = 'HTML',
                @subject = 'Personal Calls Reminder',
                @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
     body {
     font-family: "Times New Roman", Times, serif;
     font-size: 11pt;
    .auto-style1 {
     background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>Extract Date : ' + @date + '</div>
    <div>
     <table style="width: 800px">
      <tr>
       <td>Dear,<br />
       <br />
       Please review your phone bills and submit your personal calls using the following link:<br />
       <a href="Personal">http://companyxyz/personalcalls/">Personal Calls</a></td>
      </tr>
     </table> 
     <br/>
     <table style="width: 800px">
      <tr>
       <td><strong>Kindly be informed that the deadline to process new bills is on the
       <span class="auto-style1">15th of each month</span>.</strong></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
      <tr>
       <td>For assistance, please contact <a href="[email protected]:[email protected]">[email protected]</a></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
     <tr>
     <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
     </tr>
     </table>
    </div>
    </body>
    </html>
          FETCH NEXT FROM mycursor
          INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Regards, RSingh

  • Reminder Workflow does not recalculate new date to send email, if due date is changed

    I created a basic reminder workflow using due date, and status column. it works well.
    Let's say, I want to send a reminder email 2 days prior to the due date.
    I used Add -2 to due date and set a variable
    then used Pause variable
    if status is not equal to completed
    then send email
    And I have this set to initiate when a new item is created, and modified.
    However, if the due date is changed, it does not recalculate the new date to send the reminder email.  Help!

    Hi MonalisaM,
    The in-progress workflow instance will be unable to re-start itself when list item is modified, but I think you can design workflow with using the second workflow to update the list item one filed, then this update triggers
    the first workflow again.
    Stop this reminder workflow (first workflow) when due date is changed, then this will trigger the second workflow to change another custom column(e.g. Flag), then the first workflow will be triggered due to this custom column
    Flag value changed by second workflow, I mean the second workflow is used to upadate this custom list item one filed(e.g. Flag) in order to trigger the reminder workflow(first workflow).
    You can read the following article for more information to understand how to make the first workflow re-start by using second workflow.
    http://sharepoint713.blogspot.com/2011/09/sharepoint-designer-workflow-to-send.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • Why I can't send emails to some address and also i...

    Hello!
    Why I can't send  email using my ovi mail account to some email address and also i can't send email using Thunderbird? So what is the problem?
    I can't send email to any address using Mozilla Thunderbird. Every time show "Login to server mail.ovi.com failed." but Thunderbird download my ovi account email without any problem. how do i fix this error. I don't know where to post this matter!

    Yahoo has messed with their stuff lately (honestly they've been messing with their servers for months)
    One thing would be if you guys wanted to use the yahoo mail app, or there have been other users posting solutions that they say work for them
    https://discussions.apple.com/message/27906475?ac_cid=tw123456#27906475
    https://discussions.apple.com/message/27894621?ac_cid=tw123456#27894621
    These have applied to people not able to get mail but changing the settings may help you and your wife. (My yahoo is still working so I haven't needed to try any of these)
    I've noticed with my Yahoo that they've changed their login protocols. For example 'stay signed in' is always clicked and the push is for people to merge multiple accounts to access their multiple yahoo from one account/sign in instead of signing out/in to access different accounts. I'm wondering if that change is what's messing with the protocols needed for iOS mail to work. But no one really knows for sure (and neither Apple or Yahoo will comment on the issue)
    About all users can do is find work arounds that work for them.
    If these don't work or if you don't want to use the yahoo mail app, you might try using safari to go to yahoo.com and access your mail that way.

  • Sending emails from some accounts in Mail.

    I have IMAP accounts in Mail connected to two different hosting accounts.
    All of the accounts in Mail can receive emails but the email connect to one hosting account can't send emails from Mail.
    As its' one email account that won't send I'm assuming it's that account's SMTP settings.
    My ISP have told me that SSL needs to be deselected. If I try to deselect it it selects straight away.
    To stop this I'm using the custom port 587.
    I have Authentication set to password.
    The connection Doctor shows everything connected.
    I have read all posts about this but still can't get this to work.
    Can ANYONE offer any advice how I might get this to work.
    I've used Macs for 15 years but I'm seriously thinking about moving to PC now.

    And, you have tried this then?

  • Sending email for some pages of a report

    Hi!
    I would like to know, is it possible to send via email some pages of a SAPScript.
    I've created a report, with SAPScript output. The report is collecting a lot of data, and is grouping the data by customer.
    So at the end of the report run, I have 5 pages, with a grouping like this:
    1. Customer A / Deliveries 1,2,3
    2. Customer B / Deliveries 4,5
    3. Customer C / Deliveries 6,7,8,9
    4. Customer D / Deliveries 10
    5. Customer E / Deliveries 11,12
    In the B, D customer master data exist an email address, so I have to send the 2nd page to the email address of B (for example [email protected]) and the 4th page to the email address of D (f.e.: [email protected]).
    How can I solve this?
    Thanx
    Tamá

    Hi!
    The following coding provides the SAPScript list, now. This is what I would like to extend with the email sending.
    The table it_fuvar contains the data of the customers and deliveries. I think I have to enter the email sending between the END_FORM and START_FORM function modules.
    My problems are:
    - is the OTF ready and convertable to PDF at this moment (after an END_FORM)?
    - if it is, then how identify it to convert  and how to send the converted PDF via attachment?
      DESCRIBE TABLE it_fuvar LINES fcount.
      IF fcount = 0.
        WRITE:/ 'Nincsen nyomtatható adat.'.
        EXIT.
      ENDIF.
      SET LANGUAGE sy-langu.
      CLEAR wa_itcpo.
      MOVE 'X' TO wa_itcpo-tdimmed.
      MOVE 'X' TO wa_itcpo-tdnewid.
      MOVE sy-repid TO wa_itcpo-tdsuffix2.
      MOVE sy-title TO wa_itcpo-tdtitle.
    * open form
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          OPTIONS       = wa_itcpo
          dialog        = 'X'
          form          = gc_formname
          language      = sy-langu
        EXCEPTIONS
          canceled      = 1
          device        = 2
          form          = 3
          OPTIONS       = 4
          unclosed      = 5
          mail_options  = 6
          archive_error = 7
          OTHERS        = 8.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      MOVE 1 TO fcount.
      SORT it_fuvar.
      LOOP AT it_fuvar INTO wa_fuvar.
        AT NEW vstel_bez.
    * spedit&#337;r címadatok kiírása a scriptbe
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window = 'M_SPEDIT'
            EXCEPTIONS
              OTHERS = 1.
    * cím, téma, számlázási cím kiírása a scriptbe
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window = 'M_INFO'
            EXCEPTIONS
              OTHERS = 1.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              element = 'M_SZALLITASI_CIM'
            EXCEPTIONS
              OTHERS  = 1.
        ENDAT.
        AT NEW tknum.
          SUM.
    * kocsik (transzportok) kiírása a scriptbe
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              element = 'M_KOCSI'
            EXCEPTIONS
              OTHERS  = 1.
          fcount = fcount + 1.
        ENDAT.
    *   print item line
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            element = 'M_ARUFOGADO'.
        AT END OF vstel_bez.
    * footer
          MOVE 1 TO fcount.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window  = 'M_BOTTOM'
              element = 'NEW_PAGE'.
          CALL FUNCTION 'END_FORM'
            EXCEPTIONS
              unopened                 = 1
              bad_pageformat_for_print = 2
              spool_error              = 3
              codepage                 = 4
              OTHERS                   = 5.
          IF sy-subrc <> 0.
          ENDIF.
    * EMAIL SEND???
    * EMAIL SEND???
    * EMAIL SEND???
          CALL FUNCTION 'START_FORM'
            EXPORTING
              form        = gc_formname
              language    = sy-langu
            EXCEPTIONS
              form        = 1
              format      = 2
              unended     = 3
              unopened    = 4
              unused      = 5
              spool_error = 6
              codepage    = 7
              OTHERS      = 8.
          IF sy-subrc <> 0.
          ENDIF.
        ENDAT.
      ENDLOOP.
      CALL FUNCTION 'CLOSE_FORM'
        EXCEPTIONS
          OTHERS = 1.
    Thanx
    Tamá

  • How to send emails to some mail ids in Pro*c program

    Hi all,
    I am using the pro*c code.I just need to send some messages through mail to some email id's.How can i achieve this?Can i get the source code for this?
    Thanks in advance!!!
    Ramya.

    Salut Yacson, et un accueil chaleureux dans les forums!
    Your question might get a better answer in one of the Server forums, like this one...
    http://discussions.apple.com/forum.jspa?forumID=711
    But might see these 3 for clues...
    http://discussions.apple.com/thread.jspa?messageID=6847070
    http://discussions.apple.com/thread.jspa?threadID=1430961
    http://discussions.apple.com/thread.jspa?threadID=2165968&tstart=30

  • Send email when report data updated on report server

    Hii all
    please clear me what this triggers functions from me??
    i want to send report email to boss when report data updates on server
    i have used this but neither subscription shows last run time nor email get sent.
    how can i do this??  
    Dilip Patil..

    Hii all
    please clear me what this triggers functions from me??
    i want to send report email to boss when report data updates on server
    i have used this but neither subscription shows last run time nor email get sent.
    The so-called "trigger" is nothing than "when the snapshot has been updated". In other words: it's not the actual data that has changed but a new
    snapshot has been created, which in turn has it's own schedule.
    The wording "trigger" is a bad choice since when it has been introduced and has irritated many people since then.
    For a custom solution check this thread:
    Triggering Data Driven Subscriptions in SSRS
    Andreas Wolter (Blog |
    Twitter)
    MCM - Microsoft Certified Master SQL Server 2008
    MCSM - Microsoft Certified Solutions Master Data Platform, SQL Server 2012
    www.andreas-wolter.com |
    www.SarpedonQualityLab.com

  • Can't send email on users in some new country Internet domains

    I have following messaging server:
    #imsimta version
    Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
    libimta.so 6.2-3.04 (built 01:43:03, Jul 15 2005)
    Last few says I have noticed that I can't send emails on some of international country Internet domains like [email protected] or [email protected] which are relatively new internet domains registered in year 2006.
    I am receiving following message:
    Server Response: '550 5.1.2 unknown host or domain: [email protected]
    After some investigation I find out that I can't send emails also on domain [email protected] which is also domain registered after year 2006.
    Obviously I have problem because this internet domains are new and messaging server can't recognize any new internet domain after 2005.
    DNS server is working fine I can make domain lookup and probably I have to add this domains somewhere in the LDAP or in some config file.
    Problem is that I don't know where I have to add them.

    The Sun Messaging server only accepts messages for known top level domains. The list of known top-level domains is defined in the file "......./config/internet.rules"
    The lists is updated via Sun Messaging server patches.

  • Sending email from web forms (Forms 6i)

    Does anyone know how to send email using Outlook from web forms? I can get it working with client server but not with web forms.
    Thanks,
    Darcea Klein
    null

    Many ways to send a email:
    1. use Web.Show_Document(v_url, '_blank') to call a .asp or .php or .cgi page which can send email, attaching some message.
    2. use utl_smtp built_in in Oracle 8i, you can save this procedure in database, then call this procedure in your web form.
    PROCEDURE SEND_EMAIL (sender IN VARCHAR2,
    recipient IN VARCHAR2,
    message IN VARCHAR2)
    IS
    mailhost VARCHAR2(30) := 'smtp.aaaaa.com';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
    -- Handle the error
    END;
    GOOD LUCK

  • How to send email when resubmission ends?

    Hi experts,
    In my workflow the users want to receive reminder on specific date.
    So when the step arrive to the workplace, the users make resubmission and the step transferred to RESUBMISSION folder.
    On Resubmission date I have to send email to some users.
    The Resubmission date coming must be also the terminating event for the Task.
    There actions must be performed only when Resubmission date coming
    and not if user performs "End Resubmission" manually.
    How can I do this?
    Can anyone help me?
    Thanks,
    Nina.

    Hi Nina,
       You can use dead line monitoring to solve the resubmission problem. I am explaining the scenario I used it for.
    I had to re execute the  agent resolution after a certain date is passed and there were some more conditions to be checked before that. When you activate deadline a new output option is available called "Dead Line Passed". In this output you can use process control type step for making current work item obsolete, this will give control a new output called "Processing obsolete" in this branch you can call send email step and loop back and re submit the work item to who ever you want same person. In my case it has to be next level in approval hierarchy so I just added one level and looped back to decision step for new agent resolution.
    I hope this makes sense. If you give exact scenario I may work out a prototype or simple steps.
    Warm Regards,
    Anuj Nagpal

  • Error sending mail to some domains

    Hi,
    i'm have some problems with my out going email settings. (OCS10G-R1 on Linux RH 3 update 5)
    am receiving emails from any where but i can't send emails to some domains.
    and here is some examples:
    domain/ send to/ receive from
    yahoo.com/ ok/ ok
    hotmail.com/ ok/ ok
    gmail.com/ ok/ ok
    sofrecom.com.ar/ not working/ ok
    cpsps.org.ar/ not working/ ok
    and i cann't figure out the reasone.
    i didn't find any errors regarding the sent emails to the unreachable hosts in the log file.
    the problem is that after i send the message, i get a failiure delivery message
    From: "Mail Delivery Subsystem" <[email protected]>
    To: <[email protected]>
    and the name Attachments if "Anonymous" file
    this info
    inal-Recipient: rfc822; [email protected]
    Action: failed
    Status: 5.5.5
    Last-Attempt-Date: Tue, 26 Sep 2006 18:02:14 -0300
    Diagnostic-Code: SMTP;
    555 5.5.4 Unknown RCPT TO:<> parameter:
    Remote-MTA: dns; mail.sofrecom.com.ar
    or other file "Anonymous"
    Final-Recipient: rfc822; [email protected]
    Action: failed
    Status: 5.5.5
    Last-Attempt-Date: Tue, 26 Sep 2006 18:10:28 -0300
    Diagnostic-Code: SMTP;
    555 5.5.4 Unknown RCPT TO:<> parameter:
    Remote-MTA: dns; mail-hosting.fibertel.com.ar
    did somebody have the same problem?
    Can I help me?

    I am also facing same problem here...I am using OCS 10g on HP-UX 11.23 v2 platform..Mail receiving is OK from all external domains, but mail sending is not happening to all the external domains..Means I can send mail to gmail.com domain but while I am sending mail to yahoo.com or rediffmail.com it fails.After some time I am receiving Mailer Daemon Failure Message :
    Could not deliver mail: see transcript for details
    Mail Delivery Subsystem [[email protected]]
    Original message (id 241455) received at Tue, 05 Aug 2008 17:35:41 +0530
    from [email protected]
    Message was not delivered to the following addresses:
    <[email protected]>
    Previously I have sent mails to those domains, But now it is not working.
    Anybody please help...
    Thanks a Lot in advance.

Maybe you are looking for

  • Order Testing for Price changes

    Is there a easy way to enter and test the orders instead of entering them online for pricing changes?

  • No Music drop down on store page

    I live in Cape Town and just downloaded the iTunes software for the first time on my pc but there is no "music" drop down at the top of the store page just Home, Appstore, Podcasts and Itunes U, thereforeI have no way of finding the downloadable sing

  • Exporting schema from 11g to 10g

    how can i export full schema(suppost scott) from 11g to 10g both are on different machines and i dont know much about db side, if any body can suggest some queries. thanks and regards Abbas

  • Need help with Premiere 6.5 using IEEE1394 firewire and Canopus ADVC110

    I have been using Premiere 6.5 for over 10 years now and had to replace the Pinnacle DV 500 card with a Canopus ADVC 110 and firewire when Windows XP had its Service Pack 2 downloaded. Recently for no apparent reason the Premiere Capture Window is sh

  • Objects for Planning User in BI7

    Hi All, Can any body please advise, what all objects are required in a Role for a Planning User. Also, what mandatory things to be maintained in RSECADMIN..! Thanks a lot. Venkat