Subversion Repositories SmartDukaan

Rev

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

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