import { sendEmailViaSMTP } from './sendEmailViaSMTP';

export const smtpEmailService = {
  async sendEmail({ sender_id, recipient_email, recipients, subject, htmlBody, body, attachments = [], clientId }) {
    const to = recipient_email || recipients;
    
    return await sendEmailViaSMTP({
        sender_id,
        recipient_email: to,
        subject,
        htmlBody: htmlBody || body,
        attachments
    });
  }
};
