Jump to content

Babulu Help Seskondamma


Recommended Posts

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

  • chinni005

    19

  • k2s

    4

  • dennis

    4

  • ChampakDas

    2

Popular Days

Top Posters In This Topic

Posted

[CODE]
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "993");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "993");

Session session = Session.getDefaultInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("xxxx","xxx");
}
});

Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("[email protected]"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("[email protected]"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler," +
"\n\n No spam to my email, please!");

Transport.send(message);

System.out.println("Done");


RequestDispatcher disp = request.getRequestDispatcher("employeeregistration.jsp");
request.setAttribute("msg","check email for confirmation");
disp.forward(request,response);

}
}
[/CODE]

sSc_hidingsofa sSc_hidingsofa [quote name='dennis' timestamp='1352867452' post='1302793365']
nee code paste chey mama
[/quote]

Posted

[quote name='Hava5' timestamp='1352866454' post='1302793219']
I'm trying to use Java Mail API and trying to send email using [email protected] I'm trying to send it over port 25 n 465 but I'm getting sending failed error


Caused by: javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException:

hepl pls
[/quote]
[quote name='Hava5' timestamp='1352867491' post='1302793374']
[CODE]
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "993");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "993");

Session session = Session.getDefaultInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("[email protected]","Rajasekhar5");
}
});

Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("[email protected]"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("[email protected]"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler," +
"\n\n No spam to my email, please!");

Transport.send(message);

System.out.println("Done");


RequestDispatcher disp = request.getRequestDispatcher("employeeregistration.jsp");
request.setAttribute("msg","check email for confirmation");
disp.forward(request,response);

}
}
[/CODE]

sSc_hidingsofa sSc_hidingsofa
[/quote]code lo emo port 993 undi.... nuvu emo 25 lo pamputhava ?? :3D_Smiles:

Posted

actually port number 465 undhi... na system lo 993 undhanu SMTP port number nenu chage chusa code lo ayina not working

Posted

[quote name='k2s' timestamp='1352867803' post='1302793444']
code lo emo port 993 undi.... nuvu emo 25 lo pamputhava ?? :3D_Smiles:
[/quote]
kaadhu vayya..! naaku em seyyalo ardham kaaka anni ports try sesthunna.. port 25 telnet ankunta adhi connection sesk sesthunte not established antundhi


Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying fe80::1...
telnet: connect to address fe80::1: Connection refused
telnet: Unable to connect to remote host

Posted
sSc_hidingsofa home work[quote name='mtkr' timestamp='1352867804' post='1302793445']
req aa.. ordr aaaa..... carry out aaa...!!!!
[/quote]
Posted

nenu try chesthunna.. meeru soosi ardham ayithe naku seppandi pls

Posted

id password theseyi...though not a regular one...your name might be revealed
[quote name='Hava5' timestamp='1352867491' post='1302793374']
[CODE]
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "993");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "993");

Session session = Session.getDefaultInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication[color=#ff0000][b]("[email protected]","XXXXXXXX");[/b][/color]
}
});

Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("[email protected]"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("[email protected]"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler," +
"\n\n No spam to my email, please!");

Transport.send(message);

System.out.println("Done");


RequestDispatcher disp = request.getRequestDispatcher("employeeregistration.jsp");
request.setAttribute("msg","check email for confirmation");
disp.forward(request,response);

}
}
[/CODE]

sSc_hidingsofa sSc_hidingsofa
[/quote]

Posted

[quote name='GatisKandis' timestamp='1352868140' post='1302793516']
id password theseyi...though not a regular one...your name might be revealed
[/quote]
k2s qoute sesindu :3D_Smiles:

Posted

[quote name='GatisKandis' timestamp='1352868140' post='1302793516']
id password theseyi...though not a regular one...your name might be revealed
[/quote]
[quote name='Hava5' timestamp='1352868441' post='1302793559']
k2s qoute sesindu :3D_Smiles:
[/quote]

@3$% @3$% @3$% nenu chuskola, Gatis chepethe malli velee code chusa; its 2 late now

Posted

[quote name='aragorn' timestamp='1352869265' post='1302793650']
@3$% @3$% @3$% nenu chuskola, Gatis chepethe malli velee code chusa; its 2 late now
[/quote]
@~` @~`

Posted

465 port number use cheste naaku bagane pani chestundhi gaa..test mail kooda vachindhi

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package javaapplication1;

import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;


/**
*
* @author XXX
*/
public class SendEmail {

public static void main(String args[]) throws MessagingException{

Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");

Session session = Session.getDefaultInstance(props,
new javax.mail.Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("[email protected]","password");
}
});

Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("[email protected]"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("[email protected]"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler," +
"\n\n No spam to my email, please!");

Transport.send(message);

System.out.println("Done");


// RequestDispatcher disp = request.getRequestDispatcher("employeeregistration.jsp");
// request.setAttribute("msg","check email for confirmation");
//disp.forward(request,response);


}
}

Posted

@ dennis bro nuvesina code lo user name password mask chy

×
×
  • Create New...