mssandeepkamath / mime-smtp-mail-service-api

Spring Boot Mailing API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailing API

An SMTP mailing api supporting Multi Threading and Freemarker(.ftl) Templates.

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/

About

Spring Boot Mailing API


Languages

Language:FreeMarker 77.4%Language:Java 22.6%