Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1264 → Rev 1265

/kickup/trunk/src/ak/kickup/core/model/Event.java
151,7 → 151,7
 
/**
*
* @hibernate.property column="estart"
* @hibernate.property column="start"
*/
public Date getStart()
{
165,7 → 165,7
 
/**
*
* @hibernate.property column="estop"
* @hibernate.property column="stop"
*/
public Date getStop()
{
/kickup/trunk/src/ak/kickup/core/mail/Messages.java
16,7 → 16,7
 
public abstract class Messages
{
public static final String HOST = "localhost";
public static final String HOST = "192.168.10.1";
public static final String CHARSET = "windows-1251";
 
public static void send(String from, String to, String subject, String body)
25,6 → 25,7
try {
Properties props = new Properties();
props.put("mail.smtp.host", HOST);
props.put("mail.smtp.localhost", "26th.net");
 
Session session = Session.getInstance(props, null);
MimeMessage msg = new MimeMessage(session);
39,6 → 40,7
Transport.send(msg);
}
catch(Exception ex) {
ex.printStackTrace();
throw new UserException("ak.kickup.core.mail.send.error");
}
}