1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sys.service.impl;
17
18 import javax.mail.MessagingException;
19
20 import org.kuali.rice.core.api.mail.MailMessage;
21 import org.kuali.rice.krad.exception.InvalidAddressException;
22 import org.kuali.rice.krad.service.impl.MailServiceImpl;
23
24 public class DevelopmentMailServiceImpl extends MailServiceImpl {
25 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(DevelopmentMailServiceImpl.class);
26
27 @Override
28 public void sendMessage(MailMessage message) throws InvalidAddressException, MessagingException {
29 LOG.info( "*********************** EMAIL SEND *****************************");
30 LOG.info( "FROM : " + message.getToAddresses() );
31 LOG.info( "TO : " + message.getFromAddress() );
32 LOG.info( "CC : " + message.getCcAddresses() );
33 LOG.info( "BCC : " + message.getBccAddresses() );
34 LOG.info( "SUBJECT : " + message.getSubject() );
35 LOG.info( "MESSAGE : \n" + message.getMessage() );
36
37 LOG.info( "*********************** END EMAIL *****************************");
38 }
39 }