mind serializer and weblog
[ start | index | login ]
start > source-changed-Mail

source-changed-Mail

Created by case. Last edited by case, 4 years and 329 days ago. Viewed 300 times. #1
[edit] [rdf]
labels
attachments

Reason

Currently (0.4a) SnipSnap does not support authenticated mail delivery for lost-password emails. The used mail server has changed now to only accept such authticated smtp mails and therefore code was updated.

Updated org.snipsnap.util.mail.Mail

I introduced two new config properties for the smtp authentication settings.

static class PopupAuthenticator extends Authenticator {
	public PasswordAuthentication getPasswordAuthentication() {
		AppConfiguration config = Application.get().getConfiguration();
		return new PasswordAuthentication(
			config.getProperty("app.mail.smtp.user"),
			config.getProperty("app.mail.smtp.password"));
	}
}

[...]

public Mail() { Properties props = new Properties(); AppConfiguration config = Application.get().getConfiguration(); [...] if (null != mailhost) { props.put("mail.smtp.host", addr.getHostName()); props.put("mail.smtp.auth", "true"); Authenticator auth = new PopupAuthenticator(); session = Session.getDefaultInstance(props, auth); // session.setDebug(true); // Verbose! } }

no comments | post comment
Quick Links
WhatIsThis about?
Midlets (mobile apps)
TimeLine
Charley a dog's life
MovieReview
Impressum
Project (internal)

Logged in Users: (2)
… and 4 Guests.

< October 2008 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
262728293031

Icon-Snip more changes...

Blogs
>>++ vox.machina ++
>>Zitate - Sprüche - Aphorismen
>>Wil Wheaton
>>Mathematische Kleinigkeiten
>>William Gibson
>>instant-thinking
>>Over heard in NY

nearby  sites
link=http://www.mozilla.org/products/firefox/central.html
link=http://www.nutellausa.com/
link=http://snipsnap.org
link=http://www.amazon.de/exec/obidos/registry/wishlist/ref=cs_nav_top_2/028-7651535-0049343
RSS Feed RSS Feed
post to del.icio.us

Stats: 1179 snips by 16 users
created 5 years and 265 days ago

Powered by
>>SnipSnap 1.0b2-uttoxeter
with SnipScale 1.1.0



This work is licensed under a
>>Creative Commons License.

SEARCH