Package com.day.cq.mailer
Interface MailService
- 
- All Superinterfaces:
 MessageGateway<Email>
public interface MailService extends MessageGateway<Email>
TheMailServicecan be used to send emails. The mail service is already configured with a mail host, mail port and from address. These values can be overwritten in the supplied email object. This is a convenience to access an OSGI Service for aMessageGatewayof typeEmail- See Also:
 MessageGateway
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidsendEmail(Email email)Deprecated.since 5.4 useMessageGateway.send(Object)instead}- 
Methods inherited from interface com.day.cq.mailer.MessageGateway
handles, send 
 - 
 
 - 
 
- 
- 
Method Detail
- 
sendEmail
void sendEmail(Email email) throws EmailException
Deprecated.since 5.4 useMessageGateway.send(Object)instead}Send an email. The mail service is already configured with a mail host, mail port and from address. These values can be overwritten in the supplied email object.- Parameters:
 email- The email to sent.- Throws:
 EmailException- in case sending fails
 
 - 
 
 -