app/features/email/ses/SimpleEmailServiceImpl.java
/**
     * Simplified sendEmail allowing for singular from, to, cc and bcc email addresses.
     *
     * @param from     Sender email address as a String
     * @param toEmail  Recipient email addresses as a String
     * @param ccEmail  CC recipient email addresses as a String
     * @param bccEmail BCC recipient email addresses as a String
     * @param subject  Email subject as a String
     * @param body     Email message body as a String
     * @param file     File attachment
     * @param asHtml   Message body as HTML or Plain Text
     * @throws EmailMessagingException
     */
Simplified sendEmail allowing for singular from, to, cc and bcc email addresses.
Simplified sendEmail allowing for singular from to cc and bcc email addresses .
public void sendEmail(String from, String toEmail, String ccEmail, String bccEmail,
                          String subject, String body, File file, boolean asHtml)
            throws EmailMessagingException {
        String[] ccEmailArray = (ccEmail == null) ? null : new String[]{ccEmail};
        String[] bccEmailArray = (bccEmail == null) ? null : new String[]{bccEmail};
        sendEmail(from, new String[]{toEmail}, ccEmailArray, bccEmailArray, subject, body, file, asHtml);
    }
public void sendEmail ( String from , String toEmail , String ccEmail , String bccEmail , String subject , String body , File file , boolean asHtml ) throws EmailMessagingException { String [ ] ccEmailArray = ( ccEmail == null ) ? null : new String [ ] { ccEmail } ; String [ ] bccEmailArray = ( bccEmail == null ) ? null : new String [ ] { bccEmail } ; sendEmail ( from , new String [ ] { toEmail } , ccEmailArray , bccEmailArray , subject , body , file , asHtml ) ; }
Simplified sendEmail allowing for singular from, to, cc and bcc email addresses.
Simplified sendEmail allowing for singular from to cc and bcc email addresses .