phonepe #61

Merged
allentj merged 43 commits from phonepe into dev 2025-06-24 08:40:11 +00:00
Showing only changes of commit 4817424c71 - Show all commits

View File

@ -193,31 +193,3 @@ export async function sendEmailWithAttachmentUtil(
throw error;
}
}
// Additional utility function for sending simple emails without attachments
export async function sendSimpleEmailUtil(
toAddress: string,
subject: string,
message: string
): Promise<any> {
try {
const data: EmailRequest = {
to: toAddress,
html: message,
subject: subject,
text: stripHtml(message),
from: process.env.SES_FROM_EMAIL || 'support@fitlien.com',
replyTo: process.env.SES_REPLY_TO_EMAIL || 'support@fitlien.com'
};
const recipients = Array.isArray(data.to) ? data.to : [data.to];
const result = await sendSimpleEmail(data, recipients);
logger.info('Simple email sent successfully via SES');
return { success: true, result };
} catch (error) {
logger.error('Error sending simple email via SES:', error);
throw error;
}
}