Developer Toolbox Send-Email

When I click OK to my SMTP email settings on the Developer
Toolbox, the message:
tNG_config.inc.asp cannot be found in local file list,
appears.
What does this mean?
I'm trying to create a connection between a form, a database
and an e-mail message.
Thank You

Günter,
Thank you for your input after spending all day trying to solve it.
Which I havent for the moment I am going to use a work around by either building an intermediate page where the user can confirm and make changes if necessary and send the email from the update trigger.
Or doing away with using the id field auto number as a job number by inserting a new field where I generate the unique number for the job number.
Regards Paul

Similar Messages

  • Developers Toolbox: MX Send Email php script generator

    Hi,
    I read Foundation PHP for Dreamweaver 8 (I have CS4
    Dreamweaver but it’s still a good book).
    In it, the author claims, that InterAKT has a product called
    “MX Send Email” in the MX Kollection 3 suite of
    Dreamweaver extensions, which automates the process of writing the
    php script to process and send web email form data from forms
    created in Dreamweaver, to the mail server. I went to their site
    and it re directs to Adobe, and Adobe claims that they acquired
    InterAKT a few years ago and included the above product in the
    Developers Toolbox.
    I downloaded the developers toolbox yesterday and for the
    life of me I can’t figure out where I could find it or how it
    works, it's very frustrating. Which makes me wonder if I should
    plunk down an extra 300 bucks for the developers toolbox,
    documentation is spotty at best – I can’t find any
    books or discussion forums on the developers toolbox on how to use
    this feature in the dev toolbox. No one seems to know anything
    about it on the Extensions forum. Can someone give me some info
    about this?
    It seems to me there should be a simple way to generate some
    PHP script for feedback forms created in Dreamweaver, especially
    with the Developers toolkit.My other alternative is to buy a third
    party extension to generate the scripts for 30 bucks, but if the
    toolkit has it somewhere, where is the documentation or tutorial on
    the adobe web site (which I dug for almost all day yesterday?
    The Dev Toolkit has an option to insert a Captcha image so I
    assume it's possible to do that too...
    Or, Are there any on line tutorials which instruct on how to
    create an email "Contact Us" form with Dreamweaver 4, which
    includes info on writing the php script to process form data and
    send it to mail server? If so can anyone direct me to it? Adobe has
    one for Dreamweaver CS 3 on their site - but even that section of
    the adobe site is not updated for CS4 and the tutorial even claims
    that the Developers toolbox is not yet compatible with DW CS4 yet,
    which contradicts the system requirements for the Dev Toolbox when
    one downloads it.

    Mr. Powers,
    Thanks for the info! BTW I really enjoyed reading your book a
    few years ago, it really helped me to learn Dreamweaver back then.
    I’m quite rusty now and trying to get back up to speed after
    not using it for a few years. Sorry to hear about the ADDT thingy.
    Thanks for the thread DWFAQ.info, I bookmarked the threads
    and will read them over the weekend. Thanks for the Dreamweaver
    Developer Toolbox link too! I had no idea that there was a Dev
    toolbox forum I was looking for it on the adobe site for two days,
    now I just noticed it has been included on the main index page, I
    don’t think it was posted there yesterday but maybe I missed
    it.
    Does anyone know if there are any books possibly in the works
    or being planned for the toolbox?
    Also I’m kind of curious now, are the mixed feelings
    about the toolbox because it (appears but I’m no expert), to
    be a bit less user friendly for the average web designer? Either
    that or just not enough documentation yet?
    I had never heard about the toolbox until I bought my CS4
    suite a few weeks ago. From above -
    quote:
    "what has now become Adobe Dreamweaver Developer Toolbox"
    - what
    was the toolbox? Is the toolbox the former InterAKT suite or
    extensions? Or was it a mix of theirs and/or other extension
    authors stuff? Did adobe buy up a few companies and add their own
    stuff to it and market it as the toolbox?
    When was the toolbox first released? Recently? Did Adobe
    create it out of the merger with InterAkt? I’ve been out of
    the web design loop for a few years, just trying to catch up on
    what’s been going on lately.

  • [b]How to Send Email Through Developer using Micrsoft Outlook[/b]

    Here is the Code to Send Email From Developer 2000 using Microsoft Outlook(Note :- Outlook should be configured)
    Steps:-
    1. First Add the Wrapper Procedures for Outlook Express from the OLE Importer Utility such as
    · OUTLOOK_ATTACHMENT
    · OUTLOOK_MAILITEM
    PROCEDURE SENDEMAIL(to_Person varchar2,subject varchar2,body varchar2) IS
    EmailApp ole2.obj_type;
    EmailItem Ole2.Obj _Type;
    EmailAttachment Ole2.Obj_Type;
    EmailAttach ole2. obj_Type;
    aa number(5):=1;
    begin
    EmailApp:=ole2.create_obj('outlook.application');
    EmailItem:=ole2. create_obj('outlook.mail item');
    EmailAttachment:=ole2.create_obj('outlook.Attachment');
    EmailItem:=Outlook_Application.create Item(Email App,Outlook_Constants.olmailitem);
    EmailAttach:=Outlook_Mail Item.Attachment(Email Item);
    Add attachment From Block
    Go_block('BLK_ATTACHMENT');
    FIRST_RECORD;
    LOOP
    Email Attachment:=OutLook_Attachment.ole_Add(EmailAttach,;BLK_ATTACHMENTS.attach,1,AA,ISPNAME);
    AA:=AA+1;EXIT WHEN:SYSTEM.LAST_RECORD='TRUE';
    NEXT_RECORD;
    END LOOP;
    Outlook_mailitem.OLE_to(EmailItem,TO_PERSON);
    Outlook_mailitem.subject(emailitem,SUBJECT);
    Outlook_mailitem.Ole_body(emailitem,MAIL.BODY);
    Outlook_mailitem.send(emailItem);
    End;

    Here is the Code to Send Email From Developer 2000 using Microsoft Outlook(Note :- Outlook should be configured)
    Steps:-
    1. First Add the Wrapper Procedures for Outlook Express from the OLE Importer Utility such as
    · OUTLOOK_ATTACHMENT
    · OUTLOOK_MAILITEM
    PROCEDURE SENDEMAIL(to_Person varchar2,subject varchar2,body varchar2) IS
    EmailApp ole2.obj_type;
    EmailItem Ole2.Obj _Type;
    EmailAttachment Ole2.Obj_Type;
    EmailAttach ole2. obj_Type;
    aa number(5):=1;
    begin
    EmailApp:=ole2.create_obj('outlook.application');
    EmailItem:=ole2. create_obj('outlook.mail item');
    EmailAttachment:=ole2.create_obj('outlook.Attachment');
    EmailItem:=Outlook_Application.create Item(Email App,Outlook_Constants.olmailitem);
    EmailAttach:=Outlook_Mail Item.Attachment(Email Item);
    Add attachment From Block
    Go_block('BLK_ATTACHMENT');
    FIRST_RECORD;
    LOOP
    Email Attachment:=OutLook_Attachment.ole_Add(EmailAttach,;BLK_ATTACHMENTS.attach,1,AA,ISPNAME);
    AA:=AA+1;EXIT WHEN:SYSTEM.LAST_RECORD='TRUE';
    NEXT_RECORD;
    END LOOP;
    Outlook_mailitem.OLE_to(EmailItem,TO_PERSON);
    Outlook_mailitem.subject(emailitem,SUBJECT);
    Outlook_mailitem.Ole_body(emailitem,MAIL.BODY);
    Outlook_mailitem.send(emailItem);
    End;

  • Tutorials on the Developer Toolbox?

    Are there some useful tutorials on the Developer Toolbox?
    I need to do two things.
    1: Insert the data into the database, upload the image into the database.
    2: Email the data and the image.
    Cheers

    Hi and welcome to the ADDT forums !
    1: Insert the data into the database, upload the image into the database
    ADDT provides an "Upload and resize images" behaviour
    (resizing is optionally of course) that´s associated with an insert or update transaction -- you´ll basically just need to provide a file field in your insert/update form and attach this behaviour to it. However, images are not stored "into the database" as BLOB, but are stored within the server´s file system.
    More information on this server behaviour is available in the ADDT help :: open the Control Panel and click the Help button. The related chapter is "Image manipulation : upload and resize images"
    2: Email the data and the image
    ADDT provides an "Send Email" behaviour
    (in several flavors BTW) which also allows attaching the file(name) that´s stored in a recordset.
    More information on this server behaviour is available in the ADDT help as well -- the related chapter is "Send Mail : Send E-Mail"
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How can I send email from my yahoo alias account in iPhone5 mail?

    How can I send email from my yahoo alias account in iPhone5 mail?
    I have 2 email accounts: [email protected] is an alias of [email protected]
    In my old iPhone3 I had these accounts set up so that I could send and receive email from both accounts. I did this using the following settings:
    ‘Other’ POP account info:
    Name: xyz
    Address: [email protected]
    Description: alias
    Incoming mail server:
    Host name: pop.mail.yahoo.com
    User name: [email protected]
    Password: password for yahoo account
    Server port: 995
    Outgoing mail server:
    SMTP: smtp.o2.co.uk (o2 is the name of my phone network)
    Server port: 25
    ‘Yahoo!’ account info:
    Name: xyz
    Address: [email protected]
    Password: password for yahoo account
    Description: Yahoo!
    Outgoing mail server:
    Primary server: Yahoo! SMTP server
    Server port: 465
    I’ve tried using the same settings in my new iPhone5, but it doesn’t work. I can receive mail to both accounts, and can send from the Yahoo account, but I cannot send mail from the alias account. When I try, it displays the message: “Cannot send mail. A copy has been placed in your Outbox. The recipient ‘[email protected]’ was rejected by the server”.
    I’ve tried to configure the POP alias account using combinations of ‘pop.mail.yahoo.com’, ‘pop.mail.yahoo.co.uk’, ‘apple.pop.mail.yahoo.co.uk’ and ‘apple.pop.mail.yahoo.com’, for the incoming host, and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server. None of these have worked.
    I’ve also tried setting it up using IMAP instead of POP without success. I tried configuring it using combinations of ‘imap.mail.yahoo.com’, ‘apple.imap.mail.yahoo.com’, ‘imap.mail.yahoo.co.uk’ and ‘apple.imap.mail.yahoo.co.uk’ for the incoming mail server and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server.
    Yahoo say that if I can't send Yahoo! Mail from my mail program, I may be accessing the Internet through an ISP that is blocking the SMTP port, and that if this is the case, I should try setting the SMTP port number to 587 when sending email via Yahoo!'s SMTP server. I don't think that this is the problem, but I tried it just to make sure - without success.
    I’ve also heard that the problem might have something to do with the SPF settings of my alias domain provider. I’m not too sure exactly what SPF settings are, or how to change them, but from what I can gather it seems unlikely that this is the problem given that I was able to send mail from my alias account on my old iPhone3.
    Any help much appreciated: how can I get my alias account to send emails in iPhone5 mail?
    Many thanks,
    Patrick

    A new development: I've tried sending emails from the alias several times over the past 24 hours, but in general I've deleted them if they haven't sent within about half an hour.
    However, one of the messages I left sitting in the outbox did send successfully in the end, but this took about an hour.
    So: perhaps my problem is not in fact that I am completely unable to send mail from my alias, but that I can only do so intermittently and extremely slowly, and by ignoring the "cannot send" message.
    Any help appreciated.

  • How to send email in labview in intranet network

    hii all...
    i am quite new to networking concept in labview...
    i want to develop a ayatem where on completion of particularevent an email will be sent to concerned person regarding the completion of task...ans the email should be autogenerated....meaning that on completion of task directly email should me send to concerned persion programatically......This system will work for office only...
    i have tried to send email by using outlook...but i m having doubts..
    1)when i send mail using outlook in labview it is shown in outbox(of outlook) but the sent mail i didnt receive in inbox.i have not created the account on outlook.is the problem is related to this?
    2)what server address should i give if i want to use SMTP vi's??
    plz help me regarding this...
    thanks....

    smercurio_fc wrote:
    Shruti G wrote:
     2)what server address should i give if i want to use SMTP vi's??
    The same server that Outlook connects to. Do you have an internal server or an external server (i.e., one provided by your ISP or perhaps your domain name hosting service)? If it's internal is it a POP server, or MS Exchange, or ... ?
    One relatively easy way to figure this out is to Google "MX Lookup".  Go to one of those sites and enter the name of your domain, e.g. "somecompany.com".  The MX lookup page will return the name and/or IP of the SMTP server for the domain.  The MX lookup retrieves DNS information for the domain that is used to route email between servers.

  • Can't Send email

    Hi all,
    Recently developed problem with Apple mail. I can get mail but can't send mail - I get this error message.
    ERROR
    This message could not be delivered and will remain in your Outbox until it can be delivered.
    The attempt to read data from the server “smtp.comtekmail.com” failed.
    I've reloaded the operating system, double checked all the acount settings. I have a laptop running 10.4 and have no trouble with the mail.
    Suggstions welcome.
    iMac   Mac OS X (10.3.9)  

    Hi sundance2548.
    I don’t really know what’s going on here, but...
    Mail Help has some articles devoted to sending problems, e.g. “I can't send email” or “I can't send email because the connection to the server on port 25 timed out”. You may want to take a look at them in case there is something there that applies to you.
    Something that usually works if you’re trying to use an outgoing (SMTP) server different from the one provided by your ISP (and in the case of .Mac in particular) is changing the outgoing server port to 587 instead of 25 in Preferences > Accounts > Account Information > Outgoing Server Settings.
    On the other hand, if the outgoing server that doesn’t work is the one provided by your ISP, the problem could be that you’re telling Mail to authenticate, but the outgoing server doesn’t actually require authentication because it can determine who you are by other means.

  • Send email works for one user and not another ?!

    Hi there
    Am Apex Newbie and am developing in-house helpdesk / ticket / call logging / issue tracker type system ..
    Am putting final bells and whistles on app like sending email on raising of a problem. This is being done via Apex_Mail using new Send Email page process attached to a button.
    I.e it's not being done via UTL_SMTP explicitly in a trigger or anything.
    Here's the problem for userA the sending of email works perfectly for userB it doesn't work .. does anyone have any suggestions as to what may be wrong ?
    I thought I read somewhere that UTL_SMTP wasn't granted publicly in Apex and had to be explicitly given to individual users but I may well be mistaken.
    Any help / suggestions gratefully received .. all I can think of doing is logging onto Apex Admin and looking at the mail queue and see if that will give me any clue but Apex Admin is not really my bag per se ?!
    Thanks in advance
    Wiggywig

    Hi,
    Can you see any error from Apex logs?
    Check mail queue and mail log
    http://download.oracle.com/docs/cd/E17556_01/doc/admin.40/e15521/adm_mg_service_set.htm#sthref348
    What email address you use in From field?
    Somehow I think this relates more to SMTP server policy about sender than Apex.
    Regards,
    Jari

  • When send email

    i am having internal table contains values.
    i want that output should be send as an email attachment to email id given in selection screen.
    but chinese can't diaplay rightly in attachment.eg:'批次; ','日期‘,and so on,all can't display rightly! . 
    please help me its urgent.thank you
    *& Report  YPD00010A
    *& DEVELOPER/DATE : SJDU / 12.06.2007
    *&          REPORT: display barcodes which can't be updated in the sta
    *&                  of x_ray
    REPORT YPD00010A no standard page heading
                    line-count 90
                    line-size 120 .
    selection-screen begin of block sel with frame.
    PARAMETERS:
    PA_WERKS LIKE YP043D-WERKS OBLIGATORY DEFAULT '8000',
    PA_MAIL like ys054-mailaddress MATCHCODE OBJECT ZMAILADDRESS,
    PA_MAIL1 like ys054-mailaddress MATCHCODE OBJECT ZMAILADDRESS,
    PA_ZBAT like YP043D-ZBAT OBLIGATORY MATCHCODE OBJECT ZZBAT.     "File
    selection-screen end of block sel.
    DATA: BEGIN OF Line1,
    ZBARCD LIKE yp043d-zbarcd,
    END OF Line1.
    DATA: ta_yp043d like Line1 occurs 0 with header line.
    data: begin of TAB,
            X(1) type x value '09',
          end of tab,
          C(10)  type c.
    class cl_abap_char_utilities definition load.
    c+5(1) =  cl_abap_char_utilities=>horizontal_tab.
    DATA:
      it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0 WITH HEADER
    LINE,
      it_attach  TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0 WITH HEADER
    LINE.
    data: p_email TYPE somlreci1-receiver .
    data: p_email2 TYPE somlreci1-receiver .
    DATA: TP_MAIL(255) TYPE C.
    DATA: TP_MAIL_MAIN(255)  TYPE C.
    DATA: TP_MAIL_TMP(255)  TYPE C.
    DATA:
      t_packing_list  LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
      t_contents      LIKE solisti1   OCCURS 0 WITH HEADER LINE,
      t_receivers     LIKE somlreci1  OCCURS 0 WITH HEADER LINE,
      t_attachment    LIKE solisti1   OCCURS 0 WITH HEADER LINE,
      t_object_header LIKE solisti1   OCCURS 0 WITH HEADER LINE,
      w_doc_data      LIKE sodocchgi1,
      w_cnt           TYPE I,
      w_sent_all(1)   TYPE C,
      gd_error        TYPE sy-subrc,
      gd_reciever     TYPE sy-subrc.
    DATA:COUNT1 TYPE I VALUE 0,
         COUNT2 TYPE I VALUE 0.
    INITIALIZATION.
      clear: ta_yp043d, it_attach, it_message.
      REFRESH: ta_yp043d, it_attach, it_message.
    START-OF-SELECTION.
      PERFORM GET_DATA.
      IF PA_MAIL <> ' ' OR PA_MAIL1 <> ' '.
              READ TABLE TA_YP043D INDEX 1.
               IF SY-SUBRC = 0 .
                pERFORM SEND_EMAIL.
               ENDIF.
    ENDIF.
    END-OF-SELECTION.
      PERFORM GET_WRITEDATA.
      TOP-OF-PAGE.
      PERFORM GET_HEADER.
    END-OF-PAGE.
    *&      Form  GET_HEADER                                               *
    *&      To display the header                                          *
    FORM GET_HEADER.
       data:
       tp_header(120)  type c.
      TP_HEADER  = '&#23665;&#19996;&#20844;&#21496;&#26465;&#30721;&#34920;'.
    WRITE:4 '&#31243;&#24207;&#24207;&#21495;:',10 'YPD00010', 42 tp_header,
    92 '&#26085;&#26399;:',102 SY-DATUM+0(4),
    106 '&#24180;',
         108 SY-DATUM+4(2),110 '&#26376;',112 SY-DATUM+6(2),114 '&#26085;',
         /92 '&#26102;&#38388;    :',SY-TIMLO,
         /3 '&#19978;&#20256;&#20973;&#35777;:',18 PA_ZBAT, 92  '&#39029;&#30721;    :', SY-PAGNO.
    ULINE.
    ENDFORM.
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_DATA .
    DATA:TP_ZBARCD LIKE YP043-ZBARCD,
         TP_ZBARCD1 LIKE YP043-ZBARCD,
         TP_ZVALS LIKE YP043D-ZVALS.
    SELECT ZBARCD INTO CORRESPONDING FIELDS OF TABLE ta_yp043d FROM YP043D
        WHERE WERKS = PA_WERKS AND ZBAT = PA_ZBAT
          AND ZUPDS = 'N' AND ZVALS = 'B' AND ZLVORM <> 'X'.
    ENDFORM.                    " GET_DATA
    *&      Form  GET_WRITEDATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_WRITEDATA .
    WRITE: /'&#30827;&#21270;&#26410;&#19978;&#20256;&#30340;&#26465;&#30721;&#26377;&#65306;'.
    SKIP.
    LOOP AT TA_YP043D.
    WRITE:TA_YP043D-ZBARCD,' '.
    ENDLOOP.
    ENDFORM.                    " GET_WRITEDATA
    *&      Form  SEND_EMAIL
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM SEND_EMAIL.
    READ TABLE TA_YP043D INDEX 1.
    IF SY-SUBRC = 0 .
    * Retrieve sample data from table ekpo
    *  PERFORM DATA_RETRIEVAL.
    * Populate table with detaisl to be entered into .htm file
      PERFORM BUILD_XLS_DATA_TABLE.
    * Populate message body text
      PERFORM POPULATE_EMAIL_MESSAGE_BODY.
    * Send file by email attached as .htm file
      PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                     TABLES it_message
                                            it_attach
                                      USING p_email
                                            '&#26465;&#30721;&#31995;&#32479;&#20986;&#24211;&#26377;&#38382;&#39064;&#30340;&#26465;&#30721;'
                                            'HTML'
                                            'WC_Document'
                                   CHANGING gd_error
                                            gd_reciever.
    *   Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
    ENDIF.
    ENDFORM.                    " SEND_EMAIL
    *&      Form  BUILD_XLS_DATA_TABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BUILD_XLS_DATA_TABLE .
    CONCATENATE '<' 'HTML' '>' INTO it_attach .
    APPEND it_attach.
    CONCATENATE '<' 'HEAD' '>' INTO it_attach .
    APPEND it_attach.
    CONCATENATE
    '<meta http-equiv=Content-Type content=' '"' 'text/html; charset= GB2312
    ''"' '>' INTO it_attach.
    APPEND it_attach.
    CONCATENATE '<' '/HEAD' '>' INTO it_attach .
    APPEND it_attach.
    CONCATENATE '<P style=''font-size:12.0PT''><B> &#25209;&#27425;&#65306;' pa_zbat
    '</B></P>' INTO it_attach SEPARATED BY
    CL_ABAP_CHAR_UTILITIES=>horizontal_tab.
    APPEND it_attach.
    CONCATENATE '<P style=''font-size:12.0pt''><B> &#26085;&#26399;&#65306;' sy-datum
    '</B></P>' INTO it_attach SEPARATED BY
    CL_ABAP_CHAR_UTILITIES=>horizontal_tab.
    APPEND it_attach.
    CONCATENATE '<P style=''font-size:12.0pt''><B>' '&#30827;&#21270;&#26410;&#19978;&#20256;&#30340;&#26465;&#30721;&#26377;&#65306; '
    '</B></P>' INTO it_attach SEPARATED BY
    CL_ABAP_CHAR_UTILITIES=>horizontal_tab.
    APPEND it_attach.
    *CONCATENATE '<P style=''font-size:12.0pt''><B>' ' ' ' </B></P>' INTO
    *it_attach.
    *APPEND it_attach.
    LOOP AT TA_YP043D .
    *CONCATENATE  '< style=''font-size:12.0pt''><B> ' TAB-ZBARCD  '</B>'
    CONCATENATE  '<B> ' TA_YP043D-ZBARCD '   </B>' INTO
    it_attach .
    APPEND it_attach.
    ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM POPULATE_EMAIL_MESSAGE_BODY .
    DATA: TP_TEST0(255) TYPE C,
    TP_TEST3(255) TYPE C,
    TP_TEST(255) TYPE C.
    TP_TEST = '&#24403;&#36718;&#32974;&#36827;&#34892;X&#20809;&#26426;&#25968;&#25454;&#19978;&#20256;&#26102;,&#26377;&#20123;&#26465;&#30721;&#22312;&#30827;&#21270;&#38454;&#27573;&#19981;&#23384;&#22312;&#36164;&#26009;'.
    TP_TEST0 = '&#35831;&#24744;&#26597;&#30475;&#24182;&#23613;&#24555;&#35299;&#20915;.'.
    CONCATENATE TP_TEST TP_TEST0 INTO TP_TEST3 SEPARATED BY ' , '.
      APPEND '&#23562;&#25964;&#30340;&#20808;&#29983;/&#22899;&#22763;,' TO it_message.
      APPEND ' ' TO it_message.
      APPEND TP_TEST3 TO it_message.
      APPEND '&#20855;&#20307;&#38382;&#39064;&#35831;&#26597;&#30475;&#38468;&#20214;.' TO it_message.
      APPEND ' ' TO it_message.
      APPEND '&#35874;&#35874;.' TO it_message.
      APPEND ' ' TO it_message.
      APPEND '&#26469;&#33258;,' TO it_message.
      APPEND SY-UNAME TO it_message.
    ENDFORM.                    " POPULATE_EMAIL_MESSAGE_BODY
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT                            *
    *&      Send email                                                     *
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES pit_message
                                              pit_attach
                                        USING p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     CHANGING p_error
                                              p_reciever.
      DATA:
        ld_error    TYPE sy-subrc,
        ld_reciever TYPE sy-subrc,
        ld_mtitle LIKE sodocchgi1-obj_descr,
        ld_email LIKE  somlreci1-receiver,
        ld_email2 LIKE  somlreci1-receiver,
        ld_format TYPE  so_obj_tp ,
        ld_attdescription TYPE  so_obj_nam ,
        ld_attfilename TYPE  so_obj_des ,
        ld_sender_address LIKE  soextreci1-receiver value
    '[email protected]',
        ld_sender_address_type LIKE  soextreci1-adr_typ,
        ld_receiver LIKE  sy-subrc.
        data: TMP_MAIL(40)  TYPE C.
    DATA: MAIN_EMAIL(40)  TYPE  C.
    DATA: TMP_POS TYPE I .
    DATA: ADD_EMAIL(40)  TYPE  C.
    DATA: L_POS TYPE I, R_POS TYPE I, MAIL_LEN TYPE I.
      ld_email               = p_email.
      ld_email2               = p_email2.
      ld_mtitle              = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    * Describe the body of the message
      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 it_message LINES t_packing_list-body_num.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_type   = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      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   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      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.
    TP_MAIL_MAIN = PA_MAIL.
    TP_MAIL = PA_MAIL1.
    if sy-subrc = 0 .
      t_receivers-receiver   = TP_MAIL_MAIN.
      t_receivers-rec_type   = 'U'.
      t_receivers-com_type   = 'INT'.
      t_receivers-notif_del  = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
    ENDIF.
    *READ FROM TP_MAIL LIST
    TP_MAIL_TMP = TP_MAIL  .
    WHILE SY-SUBRC = 0 .
      SEARCH TP_MAIL_TMP FOR ', ' .
      MAIL_LEN = STRLEN( TP_MAIL_TMP ) .
      IF SY-SUBRC = 0 .
        TMP_POS = sy-fdpos .
        ADD_EMAIL = TP_MAIL_TMP+0(TMP_POS) .
        R_POS = TMP_POS + 2 .
        L_POS = MAIL_LEN - TMP_POS .
        TP_MAIL_TMP = TP_MAIL_TMP+R_POS(L_POS) .
      ELSE.
        ADD_EMAIL = TP_MAIL_TMP .
      ENDIF.
      t_receivers-receiver   = ADD_EMAIL.
      t_receivers-rec_type   = 'U'.
      t_receivers-com_type   = 'INT'.
      t_receivers-notif_del  = 'X'.
      t_receivers-notif_ndel = 'X'.
      t_receivers-COPY      = 'X' .
      APPEND t_receivers.
    ENDWHILE.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                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.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.                    " SEND_FILE_AS_EMAIL_ATTACHMENT
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM                            *
    *&      Instructs mail send program for SAPCONNECT to send email       *
    FORM INITIATE_MAIL_EXECUTE_PROGRAM.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Message was edited by:
            shanjing du
    Message was edited by:
            shanjing du

    Try the following.
    You may need to add language parameter to  "CALL METHOD cl_document_bcs=>create_document",  or perhaps replace it with a call to the ADD_ATTACHMENT method or some other method of this class - there are public methods for text, MIME, office documents.
    ==================
    *& Report  ZLOCAL_EMAIL_TEST
      Test of ECC Send email using class CL_BCS
    REPORT  zlocal_email_test.
    DATA:
       l_obj           TYPE REF TO cl_bcs,
       l_recip         TYPE REF TO if_recipient_bcs,
       l_rec           TYPE REF TO cl_cam_address_bcs,
       sender          TYPE REF TO if_sender_bcs,
       note            TYPE  bcsy_text,
       line            TYPE soli,
       l_address       TYPE adr6-smtp_addr,
       l_result        TYPE os_boolean,
       l_sub           TYPE string,
       text            TYPE bcsy_text,
       document        TYPE REF TO cl_document_bcs.
    parameters: p_email like ADR6-SMTP_ADDR visible length 70,
                p_uname like sy-uname default sy-uname.
    START-OF-SELECTION.
    Create email instance
      l_obj = cl_bcs=>create_persistent( ).
    Build text of message
      APPEND 'Hello World' TO text.
      APPEND 'Hello World 2' TO text.
      APPEND 'Hello World 3' TO text.
      APPEND 'Hello World 4' TO text.
    Create the email document
      CALL METHOD cl_document_bcs=>create_document
          EXPORTING
            i_type        = 'RAW'
            i_subject     = 'subject line'
         I_LENGTH      =
         I_LANGUAGE    = SPACE
         I_IMPORTANCE  =
         I_SENSITIVITY =
             i_text        = text
         I_HEX         =
         I_HEADER      =
         I_SENDER      =
          RECEIVING
            result        = document.
    Add document to email object
      CALL METHOD l_obj->set_document
        EXPORTING
          i_document = document.
    Short form version
    CALL METHOD l_obj->set_document( document ).
    Build long subject line
      CONCATENATE 'Long subject' sy-abcde 'with still more'
                  'Long subject' sy-abcde 'with still more'
                  'Long subject' sy-abcde 'with still more'
        INTO l_sub SEPARATED BY space.
    Add long subject to the email
      CALL METHOD l_obj->set_message_subject
        EXPORTING
          ip_subject = l_sub.
    Get recipient address in correct format
      CALL METHOD cl_cam_address_bcs=>create_internet_address
        EXPORTING
          i_address_string = p_email
        RECEIVING
          result           = l_rec.
    Add recipient address to the email
      CALL METHOD l_obj->add_recipient
        EXPORTING
          i_recipient = l_rec
          i_express   = 'X'.
    Get Sender address in correct format
      CALL METHOD cl_sapuser_bcs=>create
        EXPORTING
          i_user = p_uname
        RECEIVING
          result = sender.
    Short form version of this method call
    sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender to the email
      CALL METHOD l_obj->set_sender
        EXPORTING
          i_sender = sender.
    Send the email
      CALL METHOD l_obj->send
    EXPORTING
       I_WITH_ERROR_SCREEN = SPACE
        RECEIVING
          result              = l_result.
    Required commit work.
      COMMIT WORK.

  • Hi all   report that sends email shows popup window needs to be supressed

    hi all
    i have developed a report that sends email as an attachement, but this report pops up a window in the end ( it says 'no of objext sent') and there i have to press enter, but my report is running in the background (scheduled report) and therefore there should be no pop ups in the report.
    question is how to avoid popup window in the following program.
    below is my code
    just enter your email id in the code and it will run anywhere.
    TABLES: ekko.
    *PARAMETERS: p_email   TYPE somlreci1-receiver
                                     DEFAULT '[email protected]'.
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
      ebeln(10) TYPE c,
      ebelp(5)  TYPE c,
      aedat(8)  TYPE c,
      matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
      Retrieve sample data from table ekpo
      PERFORM data_retrieval.
      Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using         " p_email
                                        'Example .xls documnet attachment'
                                          'XLS'
                                          'filename'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
       UP TO 1 ROWS
        FROM ekpo
        INTO TABLE it_ekpo.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
    CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
                con_tab TYPE x VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    class cl_abap_char_utilities definition load.
    constants:
        con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
        con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
             INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
        CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
                    wa_charekpo-aedat wa_charekpo-matnr
               INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using                  "p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver value '[email protected]',
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      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 it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      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   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      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.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'.
                   AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    thanx
    rocky

    hi rocky,
    pls comment the submit program form INITIATE_MAIL_EXECUTE_PROGRAM by default the email runs in background and there is no need to submit 'rsconn01'  it again to  that program where u actually get the pop-up...
    try it
    hope this helps
    regards,
    karthik

  • Sending email notifications in oim 11g approval flow dynamically

    Hi,
    I have 4 level approval workflow in oim 11g and developed custom composite to get all the approver ids and and assigning these ids into 4 variables.
    And used these variables in my custom 4 level sequential workflow. This workflow is working fine. Now I need to update this composite to send email notifications to the approver. So updated code to retrieve email ids and to store them in 4 more vairables. I cannot send all emails at a time thru the code. I need to send email only to the corresponding approver only when the flow reaches to that particular level.
    Subject and body will be same but the email address will vary.
    Can you please let me know the step by step process to implement notifications to these many levels.
    If you think, this is not correct approach (storing all email ids in variables and then sending notifications), please let me know correct approach.
    Thanks,
    Mary

    The way to do it would be to put your human task inside a while loop. This while loop would set a variable to the approver's userid and would continue till all the four approve it. In your human task you need just one approver and that would be the variable which the while loop sets.
    If you do it this way, then you can use the OOTB notification tab in the .task and select the 'Assignee' as the email notification receiver and you won't have to worry about getting the email ids as well.
    As for the current approach which you have, that is of using the sequential approvers in the human task, I haven't tried it, but just try setting the notification tab in the .task to 'Assignee' and event 'On Assignment'. That should do it as well.
    -Bikash

  • Send Email Notification when comment blog in Sharepoint 2010

    Hi,
    Anyone can help me, when i comment on the blog, then send email directly ?. According to this link http://www.sitefinity.com/devnet/forums/sitefinity-3-x/general-discussions/blog-comment-notification.aspx 
    Its make some development or modifications, beside that is there any other way to do that without making modifications? probably just setting up in sharepoint admin?
    Please advice,
    Regards

    Hi
    I just found out that the the blog comments are stored in a list
    htp://yoursite/Blog/Lists/Comments/AllComments.aspx
    So you can write a workflow to send an email when a new item is created in this list.

  • BPEL 10.1.2 & 10.1.3 bug: sending email witch attachments

    We would like to get the following (known)bug fixed or learn of a workaround:
    Metalink # 5445787:
    When BPEL sends emails with attachments which are opened by Outlook clients,
    the email body content will also be recongnised as attachment. The end-user
    will then receive an e-mail with 2 attachments and empty body text.

    Hi,
    The bug is being worked on by development. The best thing to do is to log a SR with Oracle Support and say you also need a fix for this bug. The amount of customers waiting for a specific bug fix has sometimes an effect on the priority it is given.
    ~ronen

  • Setup  E-mail settings in developer toolbox

    i want setup E-mail settings in developer toolbox.
    i use google apps for my site mail.
    and use easyphp for localhost.
    what is my "mail server" and other parameters?
    This
    question in Google Apps Discussion Group

    Try this:
    Email server settings (POP and SMTP)
    AT&T email server settings are needed if you intend to use an email program (e.g. Outlook) with your AT&T email accounts. The current settings are displayed in the table below. If you only use AT&T Webmail to access your AT&T email accounts, these settings are not needed and you can access your mail by logging in at https://login.yahoo.com/.
    If you signed up for a free att.net email account after 6/12/11, you will not be able to use an email program (e.g., Outlook) with your AT&T email account.
    Note: AT&T's POP/SMTP settings have recently changed to inbound.att.net and outbound.att.net. However, if you are using the old settings, they will continue to work.
    The following mail server settings will work with all AT&T email domains: @ameritech.net, @att.net, @bellsouth.net, @flash.net, @nvbell.net, @pacbell.net, @prodigy.net, @sbcglobal.net, @snet.net, @swbell.net, @wans.net.
    Email Program Settings Field:
    Enter:
    Incoming (POP)
    inbound.att.net
    Outgoing (SMTP)
    outbound.att.net(requires authentication)
    Incoming mail server:
    POP3
    Incoming/Outgoing User Name:
    Full AT&T email address, including domain (e.g., [email protected], [email protected])
    Incoming mail port #:
    995, secure connection (SSL) checked
    Outgoing mail port #
    465, secure connection (SSL) checked
    Note: When updating the secure server settings, check the SSL check box first and then update the port number if necessary.
    Message was edited by: Glenn Leblanc BTW: This comes directly from the AT&T help site. Go to help and search Email Server Settings. The reps should have suggested this.

  • Are socket needed to send emails?????

    hi guys,
    lets say i need to send an email notification everytime i finish doing a cetain task....do i need to create and use a socket to send these emails????
    thanks in advance for any help...
    lost and blur.
    Below are the codes to send email:
    (So are socket needed???)
    public void execute(String mailto, String mailcc, String mailsub, String mailbody){
    //session object inside the catch block also(in case of DCOException).
    DCOSession ds = null;
    try{
    ds = new DCOSession(); // Create new DCOSession object
    ds.login("erstest02"); // Log in as current Notes client user
    DCOMail dm = new DCOMail(); // Create new DCOMail object
    dm.setDcoSession(ds);// Pass DCOSession to mail
    //dm.setDebug(true);
    dm.setSendTo(mailto);
    dm.setCopyTo(mailcc);
    //dm.setBlindCopyTo();
    dm.setSubject(mailsub);
    dm.setBody(mailbody);
    //System.out.println("before mail sent");
    dm.send(); // Send the mail
    ds.logout(); // Log out of the session
    System.out.println("mail sent to "+mailto);
    }catch(DCOException e1){
    e1.printStackTrace();
    try{
    if(ds!=null){
    ds.logout(); //Log out of session even if exception is thrown
    }catch(Exception ee1){
    System.out.println("Exception thrown while trying to logout of session");
    ee1.printStackTrace();
    }catch(Exception e){
    e.printStackTrace();
    try{
    if(ds!=null){
    ds.logout(); //Log out of session even if exception is thrown
    }catch(Exception ee2){
    System.out.println("Exception thrown while trying to logout of session");
    ee2.printStackTrace();
    }

    lets say i need to send an email notification
    everytime i finish doing a cetain task....do i need
    to create and use a socket to send these emails????Yes, sockets are needed to send emails. However, you don't need to deal with them yourself. You can use the JavaMail API. It will hide those low level details from you and let you deal with concepts that are related to sending emails--addresses, contents, servers, etc.
    http://java.sun.com/developer/onlineTraining/JavaMail/

Maybe you are looking for

  • Oracle Payables - APXIIMPT  - Invalid Sequence rejections

    Hello Guys: My Business users are complaining that they are getting lot of rejections while running APXIIMPT ( Payable Open Interface Report for Invoices) due to invalid sequence error. We logged a TAR with oracle and I am not getting any where after

  • Can't mount iPhone in iTunes after reload of Mac OS-X 10.4.10

    Had to reload Mac Tiger yesterday and run Software Update several times. Running 10.4.10 and iTunes 7.4.2 -- Just checked to be sure! It looks like something needed was not loaded. iPhoto sees the iPhone just fine... its just iTunes that is blind and

  • SharePoint 2010 list to SQL 2008 table

    I would like export the data from SharePoint 2010 list to SQL 2008 table. At work we don't have SQL integration Services. What is the best way to export the data without copying and paste into the table? Any help will be appreciated. simam

  • TIFF images in Flash

    I have to load a TIFF and BMP images into an Image Editor I'm currently developing from an external link. Is there any way to do this? I'm getting pretty desperate and I have no clue of how to do it. Thanks, Horea

  • Hermine

    Hoe kan ik de organiser van adobe photoshop elements 5.0 overzetten naar adobe photoshop elements 8.0?