How can i send mail to the yahoo mail or gmail or something else

hello guys,
i want to know how to send mails to the yahoo or gmail or something else.i heard that we have to change some smtp address and some port number. can any body suggest me to get that.please help me
any replies will be appreciated greatly.

Hi chnaresh,
This is the code I use to send mail, it's not specific to gmail, but it works. The "props" object expects the usual mail properties, "mail.smtp.host", "mail.user" or "mail.smtp.user", as well as "mail.smtp.ssl" which you'd want to set to "true" if you're using gmail. It also expects "mail.smtp.passwd" or "mail.passwd" which my gut tells me is unsafe, but I'm not sure why.
Good luck,
radikal_3dward
public static int sendMail(final Properties props, String subject, String body, String to, String cc, String bcc, String from, File[] attachments, boolean toStdOut)
throws javax.mail.internet.AddressException, javax.mail.MessagingException, javax.mail.NoSuchProviderException
Session sess;
//props.setProperty("mail.debug", "true");
if(props.getProperty("mail.smtp.ssl") != null && props.getProperty("mail.smtp.ssl").equalsIgnoreCase("true"))
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
String portStr = ((props.getProperty("mail.smtp.port") != null) ? (props.getProperty("mail.smtp.port")) : "465");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.socketFactory.port", portStr);
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
sess = Session.getDefaultInstance(props,
new javax.mail.Authenticator()
protected PasswordAuthentication getPasswordAuthentication()
String userName = ((props.getProperty("mail.smtp.user") != null) ? props.getProperty("mail.smtp.user") : props.getProperty("mail.user"));
String passwd = ((props.getProperty("mail.smtp.passwd") != null) ? props.getProperty("mail.smtp.passwd") : props.getProperty("mail.passwd"));
if(userName == null || passwd == null)
return null;
return new PasswordAuthentication(userName , passwd);
else
String portStr = ((props.getProperty("mail.smtp.port") != null) ? (props.getProperty("mail.smtp.port")) : "25");
sess = Session.getInstance(props, null);
//sess.setDebug(true);
MimeMessage mess = new MimeMessage(sess);
mess.setSubject(subject);
StringTokenizer toST = new StringTokenizer(to, ",;");
while(toST.hasMoreTokens())
Address addr = new InternetAddress(toST.nextToken());
mess.addRecipient(Message.RecipientType.TO, addr);
if(from != null)
StringTokenizer fromST = new StringTokenizer(from, ",;");
InternetAddress[] fromAddrs = new InternetAddress[fromST.countTokens()];
for(int i = 0; fromST.hasMoreTokens(); i++)
fromAddrs[i] = new InternetAddress(fromST.nextToken());
mess.addFrom(fromAddrs);
if(cc != null)
StringTokenizer ccST = new StringTokenizer(cc, ",;");
while(ccST.hasMoreTokens())
Address addr = new InternetAddress(ccST.nextToken());
mess.addRecipient(Message.RecipientType.CC, addr);
if(bcc != null)
StringTokenizer bccST = new StringTokenizer(bcc, ",;");
while(bccST.hasMoreTokens())
Address addr = new InternetAddress(bccST.nextToken());
mess.addRecipient(Message.RecipientType.BCC, addr);
BodyPart messageBodyPart = new MimeBodyPart();
Multipart multipart = new MimeMultipart();
if(body != null)
messageBodyPart.setText(body);
multipart.addBodyPart(messageBodyPart);
if(attachments != null)
for(int i = 0; i < attachments.length; i++)
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(attachments);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(attachments[i].getName());
multipart.addBodyPart(messageBodyPart);
mess.setContent(multipart);
Address[] allRecips = mess.getAllRecipients();
if(toStdOut)
System.out.println("done.");
//System.out.println("Sending message (\"" + mess.getSubject().substring(0,10) + "...\") to :");
System.out.println("Sending message (\"" + mess.getSubject() + "...\") to :");
for(int i = 0; i < allRecips.length; i++)
System.out.print(allRecips[i] + ";");
System.out.println("...");
Transport.send(mess);
if(toStdOut)
System.out.println("done.");
return 0;

Similar Messages

  • 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 can i send mails from mac mail to a PC?

    When i send mails from my mac to a Pc (outlook) the mail arrive with a different format or including the mail as an atached document.
    How can i send mails from mac mail to a PC outlook with the same format?

    send it in "windows friendly format" when you click the paper clip for an attachment.

  • How can i send mails from SAP?

    how can i send mails from SAP?
    what are the configurations i have to do in SAP for that?
    pls give me a detail reply......
    if possible, pls give me the sample ABAP program for that.

    recently i have worked on a similar requirement here is the sample code for that
    REPORT ZDOC_AS_EMAIL_3.
    *& Report ZEMAIL_ATTACH *
    *& Example of sending external email via SAPCONNECT *
    TABLES: ekko.
    PARAMETERS: p_email TYPE somlreci1-receiver.
    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: l_t_objhead LIKE solisti1 OCCURS 1 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 10 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(2) TYPE c VALUE '0D', "OK for non Unicode
    *con_tab(2) TYPE c 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,
    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 = 'REPORT'.
    w_doc_data-obj_descr = ld_mtitle . "mail description
    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 1st attachment notification
    t_packing_list-transf_bin = 'X'.
    t_packing_list-head_start = 0.
    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.
    **Create 1st attachment notification
    *t_packing_list-transf_bin = 'X'.
    *t_packing_list-head_start = 0.
    *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.
    **Create 2nd attachment notification
    data: x type i.
    DESCRIBE TABLE t_attachment LINES X.
    append lines of it_attach to t_attachment.
    data: start type i,
          end type i,
          cal type i.
    start = X + 1.
    describe table t_attachment lines end.
    cal = end - start.
    t_packing_list-transf_bin = 'X'.
    t_packing_list-head_start = 0.
    t_packing_list-head_num = 1.
    t_packing_list-body_start = start.
    t_packing_list-body_num = end.
    *DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
    t_packing_list-obj_descr = 'Eng Change'. "ld_attdescription.
    t_packing_list-doc_type = ld_format.
    *t_packing_list-obj_name = 'Eng' .
    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
    object_header = l_t_objhead
    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.
    endform. " POPULATE_EMAIL_MESSAGE_BODY

  • How can i send mail

    Hello!
    how can i send mail
    Thanks, B

    Hy
    Hello!
    how can i send mailTake a closer look to the Java Mail Api, http://java.sun.com/products/javamail/
    Thanks, B\Robert

  • If i purchase a device through this official website,then how can i send warranty when the device have problem?

    if i purchase a device through this official website,then how can i send warranty when the device have problem?

    To purchase a device from the online US Apple Store you will need a US credit card with a valid US address and a valid US address to ship to. You cannot use a shipping forwarder.
    If you are in a different country you would have to return to the US to access your warranty.
    If you are in the US but not near an Apple Store you would start here for service: https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How can I get rid of Bing?  It was attached to something else I downloaded and now every time I click something, an ad pops up.

    How can I get rid of Bing?  It was attached to something else I downloaded and now every time I click something, an ad pops up.

    Click here and run the tool.
    (112348)

  • How can i send mail from my ipad to my email address on my computor

    how can i send e/mail from ipad to my main computor and recieve mail from my computot to my ipad, i joined iclouds with a e/mail address now nothing works

    You'd need to set that up with your mail provider
    For example, I use yahoo. Id' need to access yahoo via safari and their web interface and see what kind of forwarding or auto replies I can set up.
    The iPad mail app won't do it, it has to be done at the server level through your mail provider.

  • How can I send request to the server through XML using JSP

    How can I send XML request to the server using JSP and servlets

    Ajax may be the one way.

  • How can i send mail from the mail same mail account on which it was forward to my gmail account?

    I have added many accounts in my Gmail account and i've selected "Reply from the same address the message was sent to" in Gmail option. So whenever i reply to any mail, it automatically sends from the account on which i had received the mail.
    How can i get the same configuration in Apple mail?

    In the 'new message' window click the three line option button to 'Customize…' the window.
    Enable the 'From field' & click OK to save the new field settings. If these accounts are setup in Mail you can now select them when replying or sending new mail.
    Also check the 'Mail > Composing tab' preferences. There is an option to 'Send from selected mailbox' that may help if Mail is setup with all of the relevant email accounts.
    Otherwise you may need to log in to gmail on the web & reply from there. Apple Mail cannot understand how gmail & forwarding from other accounts is setup so it cannot try to reply from another account that isn't setup on the Mac.

  • How can I move mail from Gmail to another account?

    Mail.app in Mavericks is incompatible with Gmail. I use Gmail. I have about 2GB of mail, most of it in a few dozen archive folders, stored on Gmail, and (I think) duplicated locally on my Mac Mini.
    I think my best recourse is to switch to an email service provider that conforms to the IMAP standard (which Gmail does not). Assuming I find one, I will have both accounts, Gmail and the new one, in Mail.app. How can I move the mail from Gmail to the other account?
    In Mail.app in Mavericks, All Mail must be marked to show as a folder, and when I move a message from a folder in Gmail it will still be in the All Mail folder.
    When all folders are empty, including the Inbox, can I be sure that every message has been moved to the new account, even though every message is still in the All Mail folder?

    Mail.app in Mavericks is incompatible with Gmail. I use Gmail. I have about 2GB of mail, most of it in a few dozen archive folders, stored on Gmail, and (I think) duplicated locally on my Mac Mini.
    --> mine's working fine. I know there are issues, but it should work
    I think my best recourse is to switch to an email service provider that conforms to the IMAP standard (which Gmail does not).
    --> yes, it would be nice if they adhered to standards.  That said, mine works great.  So far.
    Assuming I find one, I will have both accounts, Gmail and the new one, in Mail.app. How can I move the mail from Gmail to the other account?
    --> If all you want to do is keep your history, make a local folder on your mac and drag all the mail messages there (both se4nt and incoming).  I am not sure what will happen if you later drag those into the new Xmail account
    When all folders are empty, including the Inbox, can I be sure that every message has been moved to the new account, even though every message is still in the All Mail folder?
    --> Dont look in "all mail". Open your inbox and look at each individual inbox.
    Good luck,. But first, try to fix your account.
    Grant

  • Can't send mail using gmail in Mail 2.1.3 (OSX 10.4.11)

    Hi, it seems like I can receive mail but I get the following error message when I try to send mail:
    Cannot send message using the server (null)
    The server response was: 5.7.0 From address is not one of your address
    I did set up the account information for outgoing mail server (smtp): smtp.gmail.com: username
    CAn anyone help me?

    Hi, did you set up according to these Standard instructions:
    http://mail.google.com/support/bin/answer.py?hl=en&answer=13287
    Especially the...
    Please note that if your client does not support SMTP authentication, you won't be able to send mail through your client using your Gmail address.
    Also, if you're having trouble sending mail but you've confirmed that encyrption is active for SMTP in your mail client, try to configure your SMTP server on a different port: 465 or 587.

  • Can't send mails from gmail

    I cannot send mails on my MAC book pro mail accounts, I get error messages that SMTP server cannot be contacted, all accounts are off line, even though mails are connected to the internet.

    If it's been functioning normally until now and you haven't changed anything, give it a few hours. Google was having mail problems last week too.

  • Can't send mail - says gmail server can't be found? was fine yesterday

    mac air wont send mail - says it cant connect the gmail server?

    it is also showing error 54:conection reset by peer ??

  • How can I send mail mail as different address using iCloud?

    I have setup Mail in OSX Lion to use my iCloud account ([email protected]) succesfully. When I compose a new message I would like to be able to send from an email address other than [email protected] (eg. [email protected] which is an email account I have set to forward to [email protected])
    In Mail > Preferences > iCloud (IMAP) > Email Address I have entered: '[email protected], [email protected]'
    which enables the "From" drop list. When I select  [email protected] and hit send, the message is not sent and Mail informs me that I have entered the wrong username and password. If I select [email protected] the message is sent without a problem.
    Why is this happening? What's the point of allowing me to select a different email address without being able to actually send email with that email address?
    Please help.

    Try looking at the following post...
    http://forum.java.sun.com/thread.jspa?threadID=329816

Maybe you are looking for