Subversion Repositories SmartDukaan

Rev

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

Rev 11432 Rev 11434
Line 36... Line 36...
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;
40
			int i=0;
-
 
41
			boolean add =false;
41
			for(String str:recipients){
42
			for(String str:recipients){
42
				if(str.equalsIgnoreCase("rajveer.singh@saholic.com") || str.equalsIgnoreCase("rajveer.singh@shop2020.in")){
43
				if(str.equalsIgnoreCase("vikram.raghav@shop2020.in") || str.equalsIgnoreCase("vikram.raghav@saholic.com")){
43
					recipients[i]="anikendra.das@shop2020.in";
-
 
44
					break;
44
					add=true;
45
				}
45
				}
46
				i++;
46
				i++;
47
			}
47
			}
-
 
48
			if(add){
-
 
49
				recipients[i]="anikendra.das@shop2020.in";
-
 
50
			}
48
			Message msg = prepareMessage(recipients, subject, from, password);
51
			Message msg = prepareMessage(recipients, subject, from, password);
49
			//Create the multi-part object to hold the text and attachment parts
52
			//Create the multi-part object to hold the text and attachment parts
50
			Multipart multipart = new MimeMultipart();
53
			Multipart multipart = new MimeMultipart();
51
			// create the message part 
54
			// create the message part 
52
			MimeBodyPart messageBodyPart = new MimeBodyPart();
55
			MimeBodyPart messageBodyPart = new MimeBodyPart();