Endpoint:
base_url/api/mail
Request Body:
{
"name":"Student_Name",
"usn": "Student_USN",
"url":"System_url",
"to" : ["email_id_1","email_id_2","...","..."],
"from" : "from_mail",
"type":1,
"subject" : "Leave Note Upload or SAP Issue Ticket Raised"
"content":"any_content"
}
Note: type 1 for Leave note template, 2 for SAP issue template
Current Email Limits:
Up to 150 messages per hour.
Up to 99 recipients per message.
Template example:
Modifications:
Set environment variables:
smtp_mailing_spring_boot_api/src/main/resources/application.properties
spring.mail.username=${google_user_name}
spring.mail.password=${google_password}
Customize templates:
smtp_mailing_spring_boot_api/src/main/resources/templates/