I need a program to send a mail when sap starts

I need a program to send a mail (external mail) each time sap start or something similar.
Does anybody know something about this ?
Thank you .

Hi,
this is not a perfect answer, but it may help you,
In SM04 transaction code, you will know which user is loged to SAP and which transaction is using, there we have a option to send the mails also
have a look at it, and try to solve your problem
Regards
Sudheer

Similar Messages

  • To send outbound mails from SAP

    Hi team,
    Here i need to configure email setting from SAP to any other email ID ( yahoo,gmail etc).For this configuration do i need to confgure any program or to genrate some RFC settings.
    Can some one guide me the process step by step what to be done to send outbound mails from SAP. Immediate help will be really appreciated.
    thanks in advance.

    Check note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    Markus

  • "Send e-mail when ownership is assigned" SharePoint 2013 task list

    I've found that the option to "Send e-mail when ownership is assigned" isn't available in SharePoint 2013 (enterprise) task lists. I've found that this functionality is now included the 'issue tracking' list template.
    I'm unsure why this very useful feature has been removed from the task list template. I’ve tried adding the task content type to an issue list; this works fine and the notification is sent. However, the new ‘task aggregation’ feature
    in mysite only picks up items in an task list, so those items stored in issue lists get ignored. Fairly frustrating. 
    I wonder whether anyone from MS can fill me in on when this feature has been removed? 

    Here's a way to enable it by PowerShell:
    http://bernado-nguyen-hoan.com/2013/04/26/enable-email-notifications-for-tasks-list-in-sharepoint-2013/
    Although this works, are we now expected to teach users who create Tasks and want to automatically notify all involved via e-mail Powershell skills? MS really needs to take a second look at this faux pas and bring the "Send
    e-mail when ownership is assigned" option back.

  • CCMS not sending e-mail when system is down

    I have installed solution manager 4.0 and configured it as a CEN to handle all CCMS alerts from our SAP systems (ECC5.0, BW, etc), these systems all have CCMS agents install and configured. The configurations work no problem. We get automatically notifications on a lots of events -- such as shortdumps, responses time, system log errors, etc. However, we never get e-mail notifications on following two situations:
    1. System down -- when one system is down, we can see it availability is going to 0% on solution manager but we did not get e-mail, I am using MTE class "Availability_SysPercent_ABAP",  it should send e-mail when it below 60%. But it never did even it's 0%. Also tried several other MTEs, but none of them work.  Is this because when system is down, CCMS not work any more or something else?
    2. Job cancel -- I am not what MTE class to use in order to send e-mail when some jobs are cancelled.
    Any help are greatly appreciated.
    Yujun Ran

    I don't know if this is correct but my Execution is "Any server" and it works.
    I assume you copied the same method for your central AR method. The person earlier who mentioned clients may have something. I don't use the CCMS_OnAlert_Email_V2 method so I'm not sure but I think the parameters need to have a user in 000 with an e-mail address in the user master in order to send. I don't think this is any different for the Central AR method which works for you so probably not the problem but double-check. I use the CCMS_Send_Alert_to_ALM_V2 method so my config will be a little different.
    Is SAP_CCMS_MONI_BATCH_DP scheduled in CEN? Mine is in the working client but again, not sure if it matters.
    Does the AR method you have assigned show up in RZ20>>Change mode>>View>>Method allocation?
    Is the send job in SAPCONNECT scheduled, I believe it behaves differently with local and central AR's.
    Message was edited by:
            David Hill

  • Sending a Mail to SAP inbox

    Hi all,
        I am using the following code to send the mail to SAP inbox,
      DATA : it_reclist TYPE TABLE OF somlreci1,
             wa_reclist TYPE somlreci1.
      DATA : wa_docdata TYPE sodocchgi1.
      DATA : it_message TYPE TABLE OF solisti1,
             wa_message TYPE solisti1,
             it_attach  TYPE TABLE OF sopcklsti1.
      LOOP AT it_super_uid INTO wa_super_uid.
        wa_reclist-receiver = wa_super_uid-usid.
        wa_reclist-rec_type = 'B'.
        APPEND wa_reclist TO it_reclist.
      ENDLOOP.
      wa_docdata-obj_langu  = sy-langu.
      wa_docdata-obj_name   = text-005.
      wa_docdata-obj_descr  = text-006.
      wa_docdata-sensitivty = 'F'.
      wa_message-line = text-007.
      APPEND wa_message TO it_message.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = wa_docdata
          put_in_outbox                    = 'X'
        COMMIT_WORK                      = ' '
        IMPORTING
        SENT_TO_ALL                      =
        NEW_OBJECT_ID                    =
        TABLES
          packing_list                     = it_attach
        OBJECT_HEADER                    =
        CONTENTS_BIN                     =
        CONTENTS_TXT                     =
        CONTENTS_HEX                     =
        OBJECT_PARA                      =
        OBJECT_PARB                      =
          receivers                        = it_reclist
        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.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF sy-subrc = 0.
        MESSAGE text-008 TYPE 'S'.
      ENDIF.
    Still i am not able to send the mail , its giving me exception 5. Please let me know how could i modify the code.
    Thanx,
    Girish.

    HI,
    The code below demonstrates how to send an SAP mail to a users inbox (SBWP)
    : Report  ZSAPTALK                                                   :
    : Author  SAPdev.co.uk                                               :
    : Description :                                                      :
    : Send mail message to SAP mail inbox.                               :
    :                     Please visit www.sapdev.co.uk for further info :
    REPORT ZSAPMAIL NO STANDARD PAGE HEADING.
    TABLES: DRAD,
            QINF,
            DRAW,
            SOUC,
            SOFD,
            DRAP.
    DATA: P_RETURN_CODE LIKE SY-SUBRC.
    data: d_username LIKE DRAP-PRNAM.
    mail declarations
    DATA : BEGIN OF NEW_OBJECT_ID.         " the newly created email object
            INCLUDE STRUCTURE SOODK.
    DATA : END OF NEW_OBJECT_ID.
    DATA : BEGIN OF FOLDER_ID.             " the folder id of the outbox
            INCLUDE STRUCTURE SOODK.
    DATA : END OF FOLDER_ID.
    DATA : BEGIN OF REC_TAB OCCURS 5.     " the table which will contain the
            INCLUDE STRUCTURE SOOS1.       " information on the destination
    DATA : END OF REC_TAB.
    DATA : BEGIN OF OBJECT_HD_CHANGE.      " the table which contains the
            INCLUDE STRUCTURE SOOD1.       " info for the object we will be
    DATA : END OF OBJECT_HD_CHANGE.        " creating
    DATA : OBJECT_TYPE LIKE SOOD-OBJTP.    " the type of object
    DATA : BEGIN OF OBJHEAD OCCURS 5.      " the header of the object
            INCLUDE STRUCTURE SOLI.
    DATA : END OF OBJHEAD.
    DATA : BEGIN OF OBJCONT OCCURS 0.      " the contents of the object
            INCLUDE STRUCTURE SOLI.        " i.e. the text etc
    DATA : END OF OBJCONT.
    DATA : BEGIN OF OBJPARA OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SELC.
    DATA : END OF OBJPARA.
    DATA : BEGIN OF OBJPARB OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SOOP1.
    DATA : END OF OBJPARB.
    DATA : BEGIN OF T_MAIL_TEXT OCCURS 0,  "Message table for messages to
            STRING(255),                   "user via mailbox
           END OF T_MAIL_TEXT.
    Parameter: p_uname like sy-uname.
    **START-OF-SELECTION
    START-OF-SELECTION.
        d_username = p_uname.
        PERFORM POPULATE_EMAIL_TEXT.
        PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
        PERFORM CREATE_AND_SEND_MAIL_OBJECT.
          FORM POPULATE_EMAIL_TEXT                                      *
          Inserts text for email message                                *
    FORM POPULATE_EMAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      APPEND T_MAIL_TEXT.
    adds failed list  on to end of success list.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Header1    Header2    Header3'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = '----
      APPEND T_MAIL_TEXT.
    ENDFORM.
    *&      Form  SETUP_TRX_&_RTX_MAILBOXES
      Ensure that the mailboxes of the sender (INTMGR) are set up OK
    FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    get the user no of the sender in order to add the mail to the
    user name's outbox for future reference
      SELECT SINGLE * FROM SOUC
               WHERE SAPNAM = SY-UNAME.    "SAP name of a SAPoffice user
      IF SY-SUBRC NE 0.
        "Error finding the SAPoffice user info for the user
        MESSAGE E064(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    *Get the outbox No for the sender from the user No where the folder
                                           " type is an outbox
      SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP   "Owner type from ID
                           AND OWNYR = SOUC-USRYR   "Owner year from the ID
                           AND OWNNO = SOUC-USRNO   "Owner number from the I
                           AND FOLRG = 'O'."Output box
      ENDSELECT.
      IF SY-SUBRC NE 0.
        " Error getting folder information for the user
        MESSAGE E065(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    ENDFORM.                               " SETUP_TRX_&_RTX_MAILBOXES
    *&      Form  CREATE_AND_SEND_MAIL_OBJECT
    FORM CREATE_AND_SEND_MAIL_OBJECT.
      FOLDER_ID-OBJTP = SOFD-FOLTP.        " the folder type ( usually FOL )
      FOLDER_ID-OBJYR = SOFD-FOLYR.        " the folder year ( usually 22 )
      FOLDER_ID-OBJNO = SOFD-FOLNO.        " the folder no.
      OBJECT_TYPE     = 'RAW'.             " the type of object being added
    build up the object information for creating the object
      OBJECT_HD_CHANGE-OBJLA  = SY-LANGU.  " the language of the email
      OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
    mail subject 'Mass Linking of QA, pass/fail'
      MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
      OBJECT_HD_CHANGE-DLDAT = SY-DATUM.   " the date of the email
      OBJECT_HD_CHANGE-DLTIM = SY-UZEIT.   " the time of the email
      OBJECT_HD_CHANGE-OBJPRI = '1'.       " the priority ( highest )
      OBJECT_HD_CHANGE-OBJSNS = 'F'.       " the object sensitivity
    F is functional, C - company sensitive
    object_hd_change-skips  = ' '.       " Skip first screen
    object_hd_change-acnam  = 'SM35'.    " Batch imput transaction
    object_hd_change-vmtyp  = 'T'.       " Transaction type
    add the text lines into the contents of the email
      CLEAR OBJCONT.
      REFRESH OBJCONT.
    free objcont.      " added this to delete the mail contents records
      LOOP AT T_MAIL_TEXT.
        OBJCONT-LINE = T_MAIL_TEXT-STRING.
        APPEND OBJCONT.
      ENDLOOP.
      CLEAR OBJCONT.
    build up the table of receivers for the email
      REC_TAB-RCDAT = SY-DATUM.            " the date to send the email
      REC_TAB-RCTIM = SY-UZEIT.            " the time to send the email
    the SAP username of the person who will receive the email
      REC_TAB-RECNAM = D_USERNAME.
    the user type of the person who will send the email ( USR )
      REC_TAB-SNDTP = SOUC-USRTP.
    the user year of the person who will send the email ( 22 )
      REC_TAB-SNDYR = SOUC-USRYR.
    the user number of the person who will send the email
      REC_TAB-SNDNO = SOUC-USRNO.
    the sap username of the person who will send the email
      REC_TAB-SNDNAM = SY-UNAME.
    get the user info for the receiver of the document
      SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
      IF SY-SUBRC NE 0.
        WRITE : / TEXT-001, D_USERNAME.    "usnam.
        EXIT.
      ENDIF.
    the user number of the person who will receive the email ( USR )
      REC_TAB-RECNO = SOUC-USRNO.
    the user type of the person who will receive the email ( USR )
      REC_TAB-RECTP = SOUC-USRTP.
    the user year of the person who will receive the email ( USR )
      REC_TAB-RECYR = SOUC-USRYR.
    the priority of the email ( highest )
      REC_TAB-SNDPRI = '1'.
    check for delivery on the email
      REC_TAB-DELIVER = 'X'.
    send express so recipient knows there is a problem
      REC_TAB-SNDEX = 'X'.
    check for a return receipt
      REC_TAB-READ = 'X'.
    the sap username of the person receiving the email
      REC_TAB-ADR_NAME = D_USERNAME.       "usnam.
    add this receiver to the internal table
      APPEND REC_TAB.
      CLEAR REC_TAB.
    call the function to create the object in the outbox of the sender
      CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
                OBJECT_TYPE                = OBJECT_TYPE
                OWNER                      = SY-UNAME
           IMPORTING
                OBJECT_ID                  = NEW_OBJECT_ID
           TABLES
                OBJCONT                    = OBJCONT
                OBJHEAD                    = OBJHEAD
                OBJPARA                    = OBJPARA
                OBJPARB                    = OBJPARB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                DL_NAME_EXIST              = 4
                FOLDER_NOT_EXIST           = 5
                FOLDER_NO_AUTHORIZATION    = 6
                OBJECT_TYPE_NOT_EXIST      = 7
                OPERATION_NO_AUTHORIZATION = 8
                OWNER_NOT_EXIST            = 9
                PARAMETER_ERROR            = 10
                SUBSTITUTE_NOT_ACTIVE      = 11
                SUBSTITUTE_NOT_DEFINED     = 12
                SYSTEM_FAILURE             = 13
                X_ERROR                    = 14
                OTHERS                     = 15.
      IF SY-SUBRC NE 0.
        MESSAGE A063(ZR53) WITH SY-SUBRC.
        EXIT.
      ENDIF.
    call the function to send the already created email to the receivers
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_ID                  = NEW_OBJECT_ID
                OUTBOX_FLAG                = 'X'
                OWNER                      = SY-UNAME
           TABLES
                RECEIVERS                  = REC_TAB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC EQ 0.
        MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
      ELSE.
        MESSAGE I036(ZR53) WITH D_USERNAME."      sy-subrc.
      ENDIF.
    ENDFORM.                               " CREATE_AND_SEND_MAIL_OBJECT
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Sample code to send a mail from SAP

    Hi guys
    could any one provide me with the
    sample code to send a mail from SAP with text as the main body of that mail via bcs classes

    Hi,
         Please go through this code: U can send mail;
    Tables : zchp_cust-info.
    DATA: OBJCONT LIKE SOLISTI1 OCCURS 5 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
    DATA: DOC_CHNG LIKE SODOCCHGI1.
    DATA: ENTRIES LIKE SY-TABIX.
    DATA: NAME(15).
    DATA: CON_NAME(20).
    DATA: req_num like zchp_cust_info.
    DATA: I_TAB_CHP LIKE ZCHP_CUST_INFO OCCURS 0 WITH HEADER LINE.
    *data: reno like ZCHP_CUST_INFO-req_num value .
    data input for the mail
    select * from zchp_cust_info
    appending table i_tab_chp where req_num = c_knumv.
    LOOP AT I_TAB_CHP.
    concatenate i_tab_chp-created_by i_tab_chp-req_num into CON_NAME.
    *WRITE: / con_name.
    ENDLOOP.
    Fill the document
    DOC_CHNG-OBJ_NAME = 'Refe'.
    DOC_CHNG-OBJ_DESCR = 'TESCRA Ref Number !'.
    DOC_CHNG-SENSITIVTY = 'P'.
    *OBJCONT = 'Tescra'.
    OBJCONT = CON_NAME.
    APPEND OBJCONT.
    OBJCONT = con_name.
    APPEND OBJCONT.
    DESCRIBE TABLE OBJCONT LINES ENTRIES.
    READ TABLE OBJCONT INDEX ENTRIES.
    DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).
    Fill the receiver list
    CLEAR RECLIST.
    RECLIST-RECEIVER = SY-UNAME.  " replace with <login name>
    RECLIST-REC_TYPE = 'B'.
    RECLIST-EXPRESS = 'X'.
    APPEND RECLIST.
    CLEAR RECLIST.
    RECLIST-RECEIVER = 'sapuser'.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    Send the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_TYPE  = 'RAW'
              DOCUMENT_DATA  = DOC_CHNG
              PUT_IN_OUTBOX  = 'X'
         TABLES
              OBJECT_CONTENT = OBJCONT
              RECEIVERS      = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
                   DOCUMENT_NOT_SENT          = 2
                  OPERATION_NO_AUTHORIZATION = 4
                   OTHERS                     = 99.
        CASE SY-SUBRC.
          WHEN 0.
            LOOP AT RECLIST.
              IF RECLIST-RECEIVER = SPACE.
                NAME = RECLIST-REC_ID.
              ELSE.
                NAME = RECLIST-RECEIVER.
              ENDIF.
              IF RECLIST-RETRN_CODE = 0.
                WRITE: / NAME, ': succesfully sent'.
              ELSE.
                WRITE: / NAME, ': error occured'.
              ENDIF.
            ENDLOOP.
          WHEN 1.
            WRITE: / 'Too many receivers specified !'.
          WHEN 2.
            WRITE: / 'No receiver got the document !'.
          WHEN 4.
            WRITE: / 'Missing send authority !'.
          WHEN OTHERS.
            WRITE: / 'Unexpected error occurred !'.
        ENDCASE.
    <b>Please provide points if the issue is solved.</b>
    Regards,
    Sunil

  • How to send External mail in sap HR workflow

    Hi experts,
         Anybody con tell me how  to send External mail in sap HR workflow ?
    Regards,
    Umesh.

    Hello,
    Check the workflow builder. There is a step type of "Send mail". Just put that into your workflow definition, and your workflow will send mail.
    Regards,
    Karri

  • How will we send smtp mail from SAP via Exchange

    Hi;
    We changed SAP OS between Windows and Linux and still 4.6c . Now we use linux OS.
    We used smtp mail at SAP via Exchange with 3.party (sendmail,indigomail etc.) But Now I dont know how will we send smtp mail from SAP.
    Please help me,
    Thanks for answers.
    Moderator message: not directly related to ABAP development, please have look in the Netweaver forums, also search for available information on sending emails.
    Edited by: Thomas Zloch on Nov 22, 2010 2:39 PM

    Hi,
    What is the nature of the URL you wish to include in the e-mail ?
    Is it fixed or dynamic ?
    Cheers
    Colin.

  • Problem sending externail mail from SAP

    I am facing problem in sending external mail from SAP. for ex: yahoo, hotmail like that. But, i can able to send the mails to my domain ids. I have configured both the SMTP and SAP internet gateway to send mails.
    But, i dont know what could be the problem in sending external mails.
    Is there any body to help me in this regard
    Regards,
    B.Sudharsan

    Hi Sudarsan,
    How are you trying to send an e-mail using ABAP or using actions or ?
    Enclosed link gives you a complete overview of the settings and the way to send an e-mail using ABAP ( if necessary).
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Reward points if it helps.
    Regards,
    Vamsi Krishna P.

  • How do I set-up Automator to open Mail when I start up Mac OS X?

    How do I set-up Automator to open Mail when I start up Mac OS X? Provided that this is how I would do it.

    You don't need Automator.
    Just add Mail to the login items in SystemPreferences>Accounts
    or
    If Mail is on the Dock, Ctrl-click the icon and select 'Open at Login'

  • After deleting an email address from Contacts is there any way of preventing it from popping up in the To: field of Mail when one starts to type in a contact name.

    After deleting an email address from Contacts is there any way of preventing it from popping up in the To: field of Mail when one starts to type in a contact name?

    if you are not on ios 6, then all you can do is wait.  if you have deleted the address from your contact list, then it will live on for a while in your 'recently used' addresses.  as you use new addresses, those older ones fall down the list, and eventually fall off altogether  (unless you use them again).  Have patience, it will go away.
    Or do the update....

  • Writing a program that sending e-mails , Please help

    Hello ,
    I want to write a program that gets
    the the user email (the server of the email , it's username and passowrd)
    and the reciver email , and the message , and sending the message from the
    user's email to the reciver email.
    But I want to write by myself a class that connects to the user's email
    and not to use Smtp classes....
    (I know how to use Sockets , etc...)
    But I actually dont know where to start from...
    Okay ,I know that first of all I need to get from ther user the server of his email , his username
    and his password.
    (I will take Gmail for example)
    So I create a Socket
    Socket mySocker = null;
    try
    mySocket = new Socket("smtp.gmail.com" , 465);
    } catch (UnknownHostException e) {
                System.err.println("Don't know about host : Gmail.");
                System.exit(1);
    } catch (IOException e) {
                System.err.println("Couldn't get I/O for the connection to: Gmail.");
                System.exit(1);
            }but from here , how do I connect the user's email with the password and the username that he gave me..?

    duffymo wrote:
    Gonen wrote:
    Hello ,
    I want to write a program that gets
    the the user email (the server of the email , it's username and passowrd)
    and the reciver email , and the message , and sending the message from the
    user's email to the reciver email.
    But I want to write by myself a class that connects to the user's email
    and not to use Smtp classes....Why not?
    (I know how to use Sockets , etc...)If you're going to connect to SMTP servers, you'll make a socket connection to the default port and then....send....SMTP commands....so.....it'll.....understand.....you.
    Geez, if you want to learn how to write SMTP from scratch this makes sense, but if you just want to send e-mail I'd reconsider and just download JavaMail.
    %I am not doing it becuase I need it , I am doing to train :)
    and do you have any list of SMTP commads or somthing like that??

  • Need to send a mail when job window time is over

    Hi ,
    select * from v$version;
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    ========
    I have created a job using dbms_scheduler.create_job with a 1 hour window ( created using dbms_scheduler.create_window ) .
    My job triggers a stored procedure . Now I have a send_mail code at the end of the stored procedure which sends a mail with plsql log as an attachment . When my job runs more than 1 hour the stored proc is getting stopped and not triggering the mail though I put the same code in exception block ( exception when others ) .
    CREATE OR REPLACE PROCEDURE my_sp
    AS
    BEGIN
    -- some code ---
    begin
    -- send mail --
    end
    EXCEPTION
    WHEN OTHERS
    THEN
    send mail ( Can I get this piece when window time is over )
    END;
    Is there any other way I can run the last piece of the proc (send_mail) .
    Thanks ,
    Mahesh

    Mahesh wrote:
    Folllowing below note .
    http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/scheduse008.htm
    but need to attach a file .
    SQL> desc utl_mail
    PROCEDURE SEND
    Argument Name               Type               In/Out Default?
    SENDER                VARCHAR2          IN
    RECIPIENTS               VARCHAR2          IN
    CC                    VARCHAR2          IN     DEFAULT
    BCC                    VARCHAR2          IN     DEFAULT
    SUBJECT               VARCHAR2          IN     DEFAULT
    MESSAGE               VARCHAR2          IN     DEFAULT
    MIME_TYPE               VARCHAR2          IN     DEFAULT
    PRIORITY               BINARY_INTEGER          IN     DEFAULT
    REPLYTO               VARCHAR2          IN     DEFAULT
    PROCEDURE SEND_ATTACH_RAW
    Argument Name               Type               In/Out Default?
    SENDER                VARCHAR2          IN
    RECIPIENTS               VARCHAR2          IN
    CC                    VARCHAR2          IN     DEFAULT
    BCC                    VARCHAR2          IN     DEFAULT
    SUBJECT               VARCHAR2          IN     DEFAULT
    MESSAGE               VARCHAR2          IN     DEFAULT
    MIME_TYPE               VARCHAR2          IN     DEFAULT
    PRIORITY               BINARY_INTEGER          IN     DEFAULT
    ATTACHMENT               RAW               IN
    ATT_INLINE               BOOLEAN           IN     DEFAULT
    ATT_MIME_TYPE               VARCHAR2          IN     DEFAULT
    ATT_FILENAME               VARCHAR2          IN     DEFAULT
    REPLYTO               VARCHAR2          IN     DEFAULT
    PROCEDURE SEND_ATTACH_VARCHAR2
    Argument Name               Type               In/Out Default?
    SENDER                VARCHAR2          IN
    RECIPIENTS               VARCHAR2          IN
    CC                    VARCHAR2          IN     DEFAULT
    BCC                    VARCHAR2          IN     DEFAULT
    SUBJECT               VARCHAR2          IN     DEFAULT
    MESSAGE               VARCHAR2          IN     DEFAULT
    MIME_TYPE               VARCHAR2          IN     DEFAULT
    PRIORITY               BINARY_INTEGER          IN     DEFAULT
    ATTACHMENT               VARCHAR2          IN
    ATT_INLINE               BOOLEAN           IN     DEFAULT
    ATT_MIME_TYPE               VARCHAR2          IN     DEFAULT
    ATT_FILENAME               VARCHAR2          IN     DEFAULT
    REPLYTO               VARCHAR2          IN     DEFAULT

  • Broke what didn't need fixing -- can't send e-mail

    I upgraded to Leopard yesterday, and have lost the ability to send e-mails. I talked to the guy at Cox this morning, and he says he's hearing this a lot lately -- that Leopard and Cox (and maybe others?) are having problems. Something about security, he thinks, but he's not with Apple so he doesn't know what they did with Leopard that "broke" what was working fine with Tiger/Panther/Wombat/whatever releases of OSX.
    It won't accept my password, and insists that my outgoing SMTP server is offline, while it still lets me receive mail.
    I'm fairly cheesed off by this, and REALLY hoping Apple's working on a fix for this.
    Had I known this sort of thing was possible, I wouldn't have upgraded. Grrr.
    Tony

    First, This is the most frustrating thing!! I am having the same problem as the others on this thread. I post to let apple know this is a real problem for a lot of people and it needs to be addressed ASAP. I can't send mail on either of my accounts on my macbook but I can send on both on the PowerMac.
    I have 4 macs on my network and the only one with this problem at this time is my MacBook Pro. I had this problem on my Power Mac a few months ago and finally fixed it by deleting my account in mail and re-creating. That has not worked this time. When I look a the 2 computers (the macbook and powermac) the mail accounts are setup exactly the same. I have tried every suggestion on this and other boards without success. Can't send any mail (told can't connect to server and/or accounts always offline and option to change grayed out. Have tried ports 25, 587 and 990 with no luck.
    I upgraded to Leo on the day it came out and did not start having a problem with mail on the macbook until this week. THERE IS SOMETHING WRONG WITH Leopard when it comes to mail, Safari and networking in general. I have had a number of very odd experiences since the upgrade. Not all of us are suddenly screwing up our email and only doing it since the install of Leo.
    Had this problem in Tiger once and had to change the port from 25 but that was all that was necessary.

  • Need to send Automated mail when releasing the Hold

    Hi Team,
    I have requirement to send the mail to customers when releasing the Hold Manually in OM.
    Kindly let me which event will trigger when releasing the hold manually.(Action -> Release Holds)
    Thanks
    Suresh.S.

    hi,Suresh
    There may be a way for your requirement.
    Achieved with form personliaze as follows(Not test):
    trigger event: post-query
    1.Check the holds which retrived at 2 is released or not.
    If released then send mail.
    2.Get current holds again.
    At the first time, 1 will not perform anything because of holds has not be got yet.
    Afterwards 1 will perform normally when release hold. (Action -> Release Holds)
    Regards,
    Leno
    Edited by: Leno Sun on 2013/05/10 0:36

Maybe you are looking for

  • Can't get my K8n Neo Platinium to boot, fast help plz!

    Hi! I just put all my new parts in my chassi and tryed to boot it but all i get the second i press the power button is a continued beep, not from the pc-speaker. And the cpu-fan wont start spinning! It may be a dumb question but is'nt the cpu fan sup

  • Recovering file pre-migration backup

    I am trying to recover a Themes file from inside my old iWeb application on my pre-migration MacBook Pro backup, however, in Time Machine the all pre-migration backups for the MacBook pro are shown on the right, but are grayed out and not accessible.

  • Creating multple triggers

    I have over 200 triggers declared in a .sql file, and When I attempt to run the entire file in sqldeveloper, instead of creating all the triggers, it only creates the first trigger, and uses the entire sql file as the body for the trigger. What am I

  • No setup cartridges in new printer purchase

    Hello, I was trying to setup the printer (HP OfficeJet Pro 8600, but could not find the setup cartridges needed for new printer.  I checked, there is retail sell of these cartridges.  What are my option? Thanks, Atik

  • System unresponsive after waking from sleep

    I've been looking at G4 dual 1.25ghz MDD, which for ages has been impossible to wake from sleep without a hard restart. Anyway, we've done a complete erase, reformat, re-install 10.4.11 which has cured the problem almost, but not entirely. The comput