dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15671
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5741: Email message sender, set from-name
------------------------------------------------------------
revno: 5741
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-01-17 10:18:53 +0100
message:
Email message sender, set from-name
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/EmailMessageSender.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/EmailMessageSender.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/EmailMessageSender.java 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/message/EmailMessageSender.java 2012-01-17 09:18:53 +0000
@@ -57,6 +57,7 @@
private static final int SMTP_PORT = 587;
private static final String FROM_ADDRESS = "noreply@xxxxxxxxx";
+ private static final String FROM_NAME = "DHIS2 Message [No reply]";
private static final String SUBJECT_PREFIX = "[DHIS2] ";
private static final String LB = System.getProperty( "line.separator" );
@@ -143,7 +144,7 @@
email.setSmtpPort( SMTP_PORT );
email.setAuthenticator( new DefaultAuthenticator( username, password ) );
email.setTLS( true );
- email.setFrom( FROM_ADDRESS );
+ email.setFrom( FROM_ADDRESS, FROM_NAME );
return email;
}