Subversion Repositories SmartDukaan

Rev

Rev 11278 | Rev 13016 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11278 Rev 11307
Line 115... Line 115...
115
	private Message prepareMessage(String[] recipients, String subject,
115
	private Message prepareMessage(String[] recipients, String subject,
116
			final String from) throws AddressException,
116
			final String from) throws AddressException,
117
			MessagingException {
117
			MessagingException {
118
		Properties props = new Properties();
118
		Properties props = new Properties();
119
		props.put("mail.smtp.host","localhost");
119
		props.put("mail.smtp.host","localhost");
-
 
120
		Session session = Session.getInstance(props, null);
120
		Session session = Session.getDefaultInstance(props,null);
121
		//Session session = Session.getDefaultInstance(props,null);
121
 
122
 
122
		Message msg = new MimeMessage(session);
123
		Message msg = new MimeMessage(session);
123
 
124
 
124
		//Set the from address
125
		//Set the from address
125
		InternetAddress addressFrom = new InternetAddress(from);
126
		InternetAddress addressFrom = new InternetAddress(from);