Subversion Repositories SmartDukaan

Rev

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

Rev 10298 Rev 11432
Line 35... Line 35...
35
	public GmailUtils(){
35
	public GmailUtils(){
36
	}
36
	}
37
 
37
 
38
	public void sendSSLMessage(String recipients[], String subject, String message, final String from, final String password, String filename) throws MessagingException {
38
	public void sendSSLMessage(String recipients[], String subject, String message, final String from, final String password, String filename) throws MessagingException {
39
		try {
39
		try {
-
 
40
			int i=0;
-
 
41
			for(String str:recipients){
-
 
42
				if(str.equalsIgnoreCase("rajveer.singh@saholic.com") || str.equalsIgnoreCase("rajveer.singh@shop2020.in")){
-
 
43
					recipients[i]="anikendra.das@shop2020.in";
-
 
44
					break;
-
 
45
				}
-
 
46
				i++;
-
 
47
			}
40
			Message msg = prepareMessage(recipients, subject, from, password);
48
			Message msg = prepareMessage(recipients, subject, from, password);
41
			//Create the multi-part object to hold the text and attachment parts
49
			//Create the multi-part object to hold the text and attachment parts
42
			Multipart multipart = new MimeMultipart();
50
			Multipart multipart = new MimeMultipart();
43
			// create the message part 
51
			// create the message part 
44
			MimeBodyPart messageBodyPart = new MimeBodyPart();
52
			MimeBodyPart messageBodyPart = new MimeBodyPart();