← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2034: minor change

 

------------------------------------------------------------
revno: 2034
committer: Bharath <Bharath@Bharath-PC>
branch nick: trunk
timestamp: Wed 2010-06-23 19:43:36 +0530
message:
  minor change
modified:
  local/in/dhis-in-services/dhis-in-service-scheduler/src/main/java/org/hisp/dhis/mail/MailService.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 'local/in/dhis-in-services/dhis-in-service-scheduler/src/main/java/org/hisp/dhis/mail/MailService.java'
--- local/in/dhis-in-services/dhis-in-service-scheduler/src/main/java/org/hisp/dhis/mail/MailService.java	2010-06-23 10:17:56 +0000
+++ local/in/dhis-in-services/dhis-in-service-scheduler/src/main/java/org/hisp/dhis/mail/MailService.java	2010-06-23 14:13:36 +0000
@@ -19,11 +19,13 @@
 public class MailService
 {
 
+// To - Do
+// Need to get this info from properties file.
     public static final String MAIL_SERVER = "smtp.gmail.com";
 
-    public static final String USERNAME = "hisptransfer@xxxxxxxxx";
+    public static final String USERNAME = "abc@xxxxxxxxx";
 
-    public static final String PASSWORD = "hispindia@09";
+    public static final String PASSWORD = "xyz";
 
     public String sendEmail()
     {
@@ -32,8 +34,8 @@
 
         try
         {
-            String fromAddress = "hisptransfer@xxxxxxxxx";
-            String toAddress = "akashjindal.in@xxxxxxxxx";
+            String fromAddress = "abc@xxxxxxxxx";
+            String toAddress = "def@xxxxxxxxx";
             String subject = "This is a test Message";
             String message = "Hello Hows u?";
 
@@ -74,12 +76,12 @@
 
         try
         {
-            String fromAddress = "hisptransfer@xxxxxxxxx";
-            String toAddress = "suneelkumar.chevvu@xxxxxxxxx";
+            String fromAddress = "abc@xxxxxxxxx";
+            String toAddress = "def@xxxxxxxxx";
             String subject = "This is a test Mail with attachment";
             // String message = "Hello Hows u?";
 
-            String fileAttachment = "c:/HP_OrgUnits.xls";
+            String fileAttachment = "c:/samp.xls";
 
             // Get system properties
             Properties properties = System.getProperties();
@@ -100,7 +102,7 @@
             MimeBodyPart messageBodyPart = new MimeBodyPart();
 
             // fill message
-            messageBodyPart.setText( "Hi from Bharath with attachment" );
+            messageBodyPart.setText( "Hi with attachment" );
 
             Multipart multipart = new MimeMultipart();
             multipart.addBodyPart( messageBodyPart );