How to get more information in the response from the server "250 OK < additional info here >.

Hi all

I use javamail to send e-mail messages through an SMTP server that responds as follows when I finished sending my DATA:

250 OK < additional information here >

How can I get the text < additional information here > use javamail?

I use the javamail 1.4.3 release. Messages are sent using Transport.send (message mime, containers []).

Thank you very much for your help.

Best regards
Antonio

You will need to manage the object yourself (see the FAQ for examples,
(or the smtpsend.java demo program), and then use the SMTPTransport.getLastServerResponse)
method (see the javadocs and the demo program).

Tags: Java

Similar Questions

  • How to get more information about the user using SecurityContext ADF?

    Hello.

    In my application I have a table use:

    CREATE TABLE ("ADM_USERS"

    ACTIVATE THE 'ID' NUMBER(*,0) NOT NULL,

    ACTIVATE THE 'U_NAME' VARCHAR2 (30 BYTE) NOT NULL,

    ACTIVATE THE "U_PASS" VARCHAR2 (255 BYTE) NOT NULL,

    VARCHAR2 (30 BYTE) "NAME."

    VARCHAR2 (30 BYTE) 'NAME')

    I configured the WebLogic environment using the the "reading- SQL only the authentication provider ' and then I configured ADF Security as ADF authentication -> Forms -authentication.

    I connect the user using the method of ""doLogin " and all that working properly. "


    public String doLogin() {}

    String _username =;

    Byte [] pw = _password.getBytes ();

    FacesContext fctx = FacesContext.getCurrentInstance ();

    HttpServletRequest request = (HttpServletRequest) () .getRequest () fctx.getExternalContext;

    try {}

    Topic topic = Authentication.login (new URLCallbackHandler (UN, pw));

    ServletAuthentication.runAs (object, request);

    String loginUrl = "/ adfAuthentication?success_url=/faces/Registry.jsf";

    HttpServletResponse response = (HttpServletResponse) fctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());

    sendForward (request, response, loginUrl);

    } catch (FailedLoginException fle) {}

    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, "Incorrect name or password","Incorrect name or password" "");

    fctx.addMessage (null, msg);

    } catch {} (the LoginException)

    reportUnexpectedLoginError ("LoginException", the);

    }

    Returns a null value.

    }

    securityContext.userName returns the value of the 'U_NAME '.

    How to make more information on the user connected such as NAME, ID, first NAME?


    And the second question:

    How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?


    Concerning

    Darek


    securityContext.userName returns the value of the 'U_NAME '.
    How can I get more information about the user logged as NAME, first NAME, ID?

    You can not.

    You need to query DB.

    How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?

    Record this value in UserData structure so it will be available in the model. http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html

    Then use as default expression for your objects of entity attributes (something like: adf.userSession.userData.yourUserDataVar).

    Dario

  • How to get more information about the users in oracle 11g

    Hi all

    I need to know more information on users in oracle 11g.

    1. how to check when user times last connection to the database.
    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also
    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?
    4. how to check while he was reset his password, the last time.

    Please correct me if am wrong. Thank you

    Concerning

    1. how to check when user times last connection to the database.

    AUDIT

    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also

    Check the profile of this user and attr.

    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?

    SQL> select EXPIRY_DATE from dba_users ;
    
    EXPIRY_DA
    ---------
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    23-MAY-13
    24-SEP-11
    24-SEP-11
    24-SEP-11
    

    check
    EXPIRY_DATE in dba_users is null

    4. how to check while he was reset his password, the last time.

    SELECT SYS PTIME. THE USER$;

  • Get more information about the last error in Oracle

    Hi all

    There is a newspaper in a live system where it is possible to see every minute the following error:

    Scan incident [48073]: failed, err = [1858]

    I know that the error may occur primarily when:
    1 try to insert caracter field into a numeric column
    2. use to misuse the function to_date()


    I need more information about this error, it may be the cause of the error in the system and why. Is it possible to see more information about past errors in Oracle? For example, if a query generates an error... is it possible to see in Oracle, the error and the query that caused the error?

    Hope you can help me.

    Thanks in advance.

    Hello

    Your error has been detected by the repository of auto diagnosis, lack of gather incident details correctly. There are a couple of metalink notes apparently relevant, then I would say that you start with the connection a SR with Oracle (for reference, they refer to a bad installation of oracle or a corruption of the oracle software)

    Niall

  • AF:table how to get selectedRow components on the server side

    Experts of hell,

    Is it possible to get the components of the selected line on the side server, getSelectedRowData, gives me data and all the different connections but no components.

    But, I can do JavaScript client-side

    Shooting double click event on af:Table

    var table = event.getSource ();
    rwKeySet = event.getCurrentTarget () .getSelectedRowKeys ();
    for {(rowKey in rwKeySet)
    firstRowKey = rowKey;
    break on the first selection key corresponding
    break;
    }

    cell_1 = table.findComponent ("inputTextOne", firstRowKey);
    cell_2 = table.findComponent ("inputTextTwo", firstRowKey);
    cell_3 = table.findComponent ("inputTextThree", firstRowKey);

    and call methods of ADF InputText side of client, I can do the same on the server side

    Side server even if passing cell_1, cell_2, cell_3 using serverListener it as a unique inputText (which is on the jspx), so at the client side only af:inputTexts inside the af: column renered aside with an Id separated for each line (for DOM)
    as

    1st row: input type = 'text' id = ' table1:inputTextOne:1: I'm glad. "
    second row: input type = 'text' id = ' table1:inputTextOne:2: I'm glad. "
    third row: input type = 'text' id = ' table1:inputTextOne:3: I'm glad. "

    but calling server-side inputText.getClientId () always gives table1:inputTextOne

    any help is appreicated the

    Thank you

    In addition, you need more queued to a custom event.

  • I use the order Analysis Toolkit and want to get more information on the compensation of the "Reference Signal Processing', which is rare in books, the site, and samples installed with the Toolbox.



  • I get threatening and abusive emails to a windows live user, how can I get more information about this user to report.

    e-mails in danger

    I get threatening and abusive emails to a windows live user, how can I get more information about this user to report.

    The information is provided in the source of the message. In OE, Windows Mail and WLMail, Ctrl + F3 reveals this.

  • How can I get more information

    189 > 13 FEB 03:53:36 10.172.255.8 - 1 DHCPCLIEN [81238496]: dhcp_prot.c (769) 29839% unable to acquire an IP address on the Service Port. DHCP server has failed

    not sure to get plenty of the latter, what interface or source mac or same port...

    How can I get more information

    Hello

    The service port is the release of the Group's management port. She is set to DHCP by default. Page 503 ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/powerconnect-7048_Reference%20Guide_en-us.pdf

  • We get an error "could not create a new partition or find existing. "For more information, see the Setup log file" error message "while trying to install Windows 8

    * Original title: 8 victory moved - Error Message: failed to create new partition...

    I have Win XP on my Dell Dimension 5150, which is the dual boot with Linux Mint 12 Lisa and this is my favorite of the bunch.

    I bought the DVD of 8 Pro Windows by an Australian retailer.

    Win XP is on a 39 GB partition with other application files. I had to delete several files to get the free space necessary to WIN 8 and finally finished by formatting the partition and passes for a COMPLETE new installation.

    Unfortunately, I now get the "failed to create new partition or find existing. For more information, see the Setup log file"error message. I can't find a Setup log file that I do a boot from the DVD.

    I tried to delete all external drives and other USB devices, including my Modem but my Wired USB keyboard/mouse.

    Two internal HARD drives are as follows:
    Disk 0 Partition 1-110 GB - system (LINUX)
    Disk 0 Partition 2 - 3.5 GB - logical

    Disk 1 Partition 1 - 47 MB - OEM (reserved) [DellUtility]
    Disc 1 2:Win - 39.1 GB - System Partition
    1 3 disk partition: DATA - 39,1 GB - logical
    Disk partition 1 4:OfficeProgs - 19.5 GB - logical
    Partition on drive 1 logical - 39.1 GB - 5:PROJECTS
    etc to score 8 with 9 MB of unallocated space.

    I have tried both 64 and 32 discs with the same result.

    As I have now is no longer no matter what Windows on my computer, what's the next step? If any ;-)

    Hello

    I solved the problem. It seems that you can not install on a secondary partition with in an earlier version of windows. You must restart the computer and run the installation from a dvd or other media.  Once you get the installation running you should be able to install on another partition without any problems.

    Nice day

  • Apps appear with a cross mark on the start screen, gets the message while trying to execute: "the application is unable to open. Verify that the windows store for more information on the application"

    Bottom right, angle of Windows apps tiles a cross mark appeared. And the apps that have this brand are not running.

    By clicking this message appears "the application cannot open. Verify that the windows store for more information on the application".
    But the windows store does not open also.
    We hope to get a solution soon.

    Hello

    We will perform the steps and check.

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    You can also clear the cache to store and see if it helps.

    (a) on the screen, pressWindows key + R to open the Run dialog box.

    (b) type WSReset.exe and pressenter.

     

    Hope this information helps.

  • I bought the photo Illustrator and ask the Adobe site plan for individuals with credit cards, but to date I have not received the confirmation email. How can I contact for more information on the good end of the order?

    Hello 11/18/2015 I bought Illustrator photo and ask the Adobe site plan for individuals with credit cards, but to date I have not received the confirmation email. How can I contact for more information on the good end of the order?

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • How to get a list of the tables more fragmented in Oracle?

    Is there a SQL on how to get a list of the tables more fragmented in the Oracle DBMS?

    Update the statistics on the table and try this, you should see very fragmented tables upstairs with high wasted_space.

    select table_name,round((blocks*8),2) "size (kb)" ,
                                round((num_rows*avg_row_len/1024),2) "actual_data (kb)",
                                (round((blocks*8),2) - round((num_rows*avg_row_len/1024),2)) "wasted_space (kb)"
    from dba_tables
    where (round((blocks*8),2) > round((num_rows*avg_row_len/1024),2))
    order by 4 desc
    

    I changed the query a little because the ORDER BY will not work if we concat | ' Ko ' with the column because this makes the output a character column data.
    And added a WHERE condition to see that these tables where the total size is greater than the actual size of data.

    Published by: zahid79 on July 23, 2010 13:40

  • This application has requested the execution to terminate in an unusual way. For more information, contact the application support team.

    Original title:

    What is c?  (see below)

    Please explain the following message (is it important?) If Yes, how can I install it?

    If this is not the case, how can I remove it?
    "Error X Runtime!
    ... S program (x 86) AskPartnerNetwork\Toolbar\Updater\TBNnotifier.exe
    This application has requested the execution to terminate in an unusual way.
    For more information, contact the application support team.
    Advice & information please.
    My first question would be: do you want to TBNotifier that is bound to the Ask toolbar? These puppies were probably installed with Java or a Java Update.
     
    If you don't want them, remove them in programs and features, and restart. If you still get this notification, run these tools one at a time. If removes one of them, you do not need to run the rest.
     
     
    Delete Adware & puppies with these tools. Check the updates first and then analyze with each of them at a time until your machine is clean.
     
     

    Malwarebytes (download the free version)
    https://www.Malwarebytes.org/free/
    When offered, uncheck the box: activate the free trial version of Malwarebytes Anti-Malware bonus.
     
     
     

    HitmanPro (30 days free trial)
    http://www.SurfRight.nl/en/hitmanpro
     
     
     
     

    Some reading:
     
     

     
  • How to get local values using the API of Java OLAP?

    http://download.Oracle.com/docs/CD/E14072_01/OLAP.112/e10794/overview-summary.html#Vals

    The third part of a unique value is the local value. In the previous example, the local value is CY2001, which is the identifier for the year 2001 in the overall scheme. Java Oracle OLAP API has the classes and methods that you can use to get the local values of dimension members. See the descriptions of the classes MdmPrimaryDimension and MdmDimensionMemberInfo for more information on the unique values and the.

    How to get local values for a dimension or hierarchy or a level using Java OLAP API?

    I can not find how...

    For example, I would like to get the list of members for each level (in my application: countries, States, cities)

    Thanks in advance,
    JP

    The following code assumes that you have an object MdmPrimaryDimension, dimension and a sense of routine, dumpCursor(), that takes an oracle.olapi.data.Source object.

    Find the objects of metadata
    Hierarchy of MdmLevelHierarchy = dimension.getDefaultHierarchy ((MdmLevelHierarchy));
    MdmAttribute localValue = dimension.getLocalValueAttribute ();
    The list of levels of = hierarchy.getLevels ();

    Print the members of each level
    for (MdmHierarchyLevel level: levels)
    {
    System.out.println ("Level" + level.getName ());
    System.out.println ();
    Source querySource = localValue.getSource () .joinHidden (level.getSource ());
    dumpCursor (querySource);
    }

    In general, it is more common to want to print descriptions of members. For this, you can replace

    MdmAttribute localValue = dimension.getLocalValueAttribute ();

    with

    MdmAttribute valueDesc = dimension.getValueDescriptionAttribute ();

    How would you say

    Source querySource = valueDesc.getSource () .joinHidden (level.getSource ());

    For the "description" and "local value".

    Source querySource = localValue.getSource () .join (valueDesc.getSource ()) .joinHidden (level.getSource ());

  • How to get Firefox to check the compatibility of the addon first, then ask me if I want to continue the update of Firefox?

    How to get Firefox to check the compatibility of the add-on first, then ask me if I want to continue the update of Firefox? The update process currently only told me that an add-on has been disable after you apply the update to Firefox. Options > Advanced Options > switch to the update tab, "Warn me if this turns off one of my modules," doesn't seem to work.

    delores51

    This is an add-on that does this.

    https://addons.Mozilla.org/en-us/Firefox/addon/is-it-compatible/

    More specifically, what modules are always appear as incompatible after a Firefox updated? Firefox 10, extensions that are made properly shouldn't be a problem, with a few exceptions.

    Extension that contains a binary code must be compiled for each new version of Firefox. These modules are usually installed by applications on security Norton, McAfee, ZoneAlarm, etc..

Maybe you are looking for