Click here to Skip to main content
12,691,231 members (30,307 online)
   

Java

 
GeneralRe: Webpage saver -- help Pin
cubocik16-Jan-13 1:38
membercubocik16-Jan-13 1:38 
GeneralRe: Webpage saver -- help Pin
Richard MacCutchan16-Jan-13 1:51
mvpRichard MacCutchan16-Jan-13 1:51 
QuestionHow to Record Audio at client Side? Pin
Mrugrajsinh13-Jan-13 8:19
memberMrugrajsinh13-Jan-13 8:19 
Questioncode error Pin
Member 975139812-Jan-13 13:47
memberMember 975139812-Jan-13 13:47 
AnswerRe: code error Pin
Richard MacCutchan13-Jan-13 0:35
mvpRichard MacCutchan13-Jan-13 0:35 
QuestionRegarding Maven and Jenkins Pin
sivaKrishna joga2-Jan-13 23:47
membersivaKrishna joga2-Jan-13 23:47 
AnswerRe: Regarding Maven and Jenkins Pin
Richard MacCutchan3-Jan-13 1:12
mvpRichard MacCutchan3-Jan-13 1:12 
GeneralRe: Regarding Maven and Jenkins Pin
sivaKrishna joga3-Jan-13 1:23
membersivaKrishna joga3-Jan-13 1:23 
GeneralRe: Regarding Maven and Jenkins Pin
Richard MacCutchan3-Jan-13 2:06
mvpRichard MacCutchan3-Jan-13 2:06 
GeneralRe: Regarding Maven and Jenkins Pin
sivaKrishna joga3-Jan-13 2:13
membersivaKrishna joga3-Jan-13 2:13 
GeneralRe: Regarding Maven and Jenkins Pin
Richard MacCutchan3-Jan-13 2:58
mvpRichard MacCutchan3-Jan-13 2:58 
GeneralRe: Regarding Maven and Jenkins Pin
sivaKrishna joga3-Jan-13 3:16
membersivaKrishna joga3-Jan-13 3:16 
AnswerRe: Regarding Maven and Jenkins Pin
April Fans3-Jan-13 16:39
memberApril Fans3-Jan-13 16:39 
Questionjava TLS Sending Email Pin
renishkhunt2-Jan-13 19:52
memberrenishkhunt2-Jan-13 19:52 
import javax.mail.*;
import javax.mail.Message;
import java.util.*;
import javax.mail.internet.*;

public class Sendemail {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
            final String username="username";
            final String password="password";
            Properties prop=new Properties();
            prop.put("mail.smtp.auth", "true");
            prop.put("mail.smtp.host", "smtp.gmail.com");
            prop.put("mail.smtp.port", "587");
            prop.put("mail.smtp.starttls.enable", "true");
        
            Session session = Session.getDefaultInstance(prop,
		  new javax.mail.Authenticator() {
			protected PasswordAuthentication getPasswordAuthentication() {
				return new PasswordAuthentication(username, password);
			}
		  });
          try {
 
			Message message = new MimeMessage(session);
			message.setFrom(new InternetAddress("myemail@gmail.com"));
			message.setRecipients(Message.RecipientType.TO,
				InternetAddress.parse("receiveremail@gmail.com"));
			message.setSubject("Testing Subject");
			message.setText("Dear Mail Crawler,sNo spam to my email, please!");
                       
			Transport.send(message);
 
			System.out.println("Done");
 
		} catch (MessagingException e) {
			e.printStackTrace();
		}
            
    }
}




Please Help Someone..
    I have Exception On this code

javax.mail.MessagingException: 502 5.5.1 Unrecognized command. nw9sm29708787pbb.42

	at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:2080)
	at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1910)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:652)
	at javax.mail.Service.connect(Service.java:317)
	at javax.mail.Service.connect(Service.java:176)
	at javax.mail.Service.connect(Service.java:125)
	at javax.mail.Transport.send0(Transport.java:194)
	at javax.mail.Transport.send(Transport.java:124)
	at sendemail.Sendemail.main(Sendemail.java:44)



AnswerRe: java TLS Sending Email Pin
Phat (Phillip) H. VU2-Jan-13 23:08
memberPhat (Phillip) H. VU2-Jan-13 23:08 
GeneralRe: java TLS Sending Email Pin
renishkhunt3-Jan-13 0:26
memberrenishkhunt3-Jan-13 0:26 
GeneralRe: java TLS Sending Email Pin
Phat (Phillip) H. VU3-Jan-13 1:12
memberPhat (Phillip) H. VU3-Jan-13 1:12 
GeneralRe: java TLS Sending Email Pin
Phat (Phillip) H. VU3-Jan-13 21:09
memberPhat (Phillip) H. VU3-Jan-13 21:09 
QuestionGeneric BST helpp!! Pin
yanikaA2-Jan-13 5:23
memberyanikaA2-Jan-13 5:23 
QuestionJSF Pin
rkpandey201331-Dec-12 1:20
memberrkpandey201331-Dec-12 1:20 
AnswerRe: JSF Pin
Richard MacCutchan31-Dec-12 1:54
mvpRichard MacCutchan31-Dec-12 1:54 
AnswerRe: JSF Pin
Richard MacCutchan7-Jan-13 7:31
mvpRichard MacCutchan7-Jan-13 7:31 
QuestionJSF with Tiles Pin
gurpreetsingh201531-Dec-12 1:12
membergurpreetsingh201531-Dec-12 1:12 
AnswerRe: JSF with Tiles Pin
rkpandey201331-Dec-12 1:21
memberrkpandey201331-Dec-12 1:21 
AnswerRe: JSF with Tiles Pin
Richard MacCutchan31-Dec-12 1:54
mvpRichard MacCutchan31-Dec-12 1:54 
QuestionAnnotation Pin
Vijay Kumar Jaiswal30-Dec-12 19:20
groupVijay Kumar Jaiswal30-Dec-12 19:20 
AnswerRe: Annotation Pin
TorstenH.30-Dec-12 22:35
memberTorstenH.30-Dec-12 22:35 
AnswerRe: Annotation Pin
Phat (Phillip) H. VU2-Jan-13 23:14
memberPhat (Phillip) H. VU2-Jan-13 23:14 
AnswerRe: Annotation Pin
April Fans3-Jan-13 16:44
memberApril Fans3-Jan-13 16:44 
AnswerRe: Annotation Pin
muthu shankar7-Jan-13 5:30
membermuthu shankar7-Jan-13 5:30 
AnswerRe: Annotation Pin
April Fans16-Jan-13 22:58
memberApril Fans16-Jan-13 22:58 
QuestionCan some one port this java code to c#? Pin
Danish Samil26-Dec-12 0:28
memberDanish Samil26-Dec-12 0:28 
AnswerRe: Can some one port this java code to c#? Pin
TorstenH.28-Dec-12 0:56
memberTorstenH.28-Dec-12 0:56 
GeneralRe: Can some one port this java code to c#? Pin
Danish Samil30-Dec-12 23:46
memberDanish Samil30-Dec-12 23:46 
Questionwhy I have to use Pin
demo 225-Dec-12 18:47
memberdemo 225-Dec-12 18:47 
AnswerRe: why I have to use Pin
Richard MacCutchan25-Dec-12 22:29
mvpRichard MacCutchan25-Dec-12 22:29 
AnswerRe: why I have to use Pin
TorstenH.28-Dec-12 0:54
memberTorstenH.28-Dec-12 0:54 
GeneralRe: why I have to use Pin
demo 21-Jan-13 18:53
memberdemo 21-Jan-13 18:53 
QuestionJava Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
100,00121-Dec-12 10:02
member100,00121-Dec-12 10:02 
AnswerRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
Richard MacCutchan22-Dec-12 0:03
mvpRichard MacCutchan22-Dec-12 0:03 
GeneralRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
TorstenH.22-Dec-12 2:23
memberTorstenH.22-Dec-12 2:23 
GeneralRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
Richard MacCutchan22-Dec-12 2:31
mvpRichard MacCutchan22-Dec-12 2:31 
GeneralRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
TorstenH.22-Dec-12 2:42
memberTorstenH.22-Dec-12 2:42 
GeneralRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
Richard MacCutchan22-Dec-12 2:53
mvpRichard MacCutchan22-Dec-12 2:53 
GeneralRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
100,00122-Dec-12 14:12
member100,00122-Dec-12 14:12 
GeneralRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
Richard MacCutchan23-Dec-12 0:30
mvpRichard MacCutchan23-Dec-12 0:30 
AnswerRe: Java Netbeans Error Regarding Arraylist in BufferedWriter Method Pin
TorstenH.22-Dec-12 2:19
memberTorstenH.22-Dec-12 2:19 
Questionjava Pin
quest4knowledge21-Dec-12 7:46
groupquest4knowledge21-Dec-12 7:46 
AnswerRe: java Pin
Richard MacCutchan21-Dec-12 23:50
mvpRichard MacCutchan21-Dec-12 23:50 
AnswerRe: java Pin
April Fans22-Dec-12 22:15
memberApril Fans22-Dec-12 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170117.1 | Last Updated 17 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid