Skip to content

Anar-Framework/anar-lib-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Utility Library for Anar Framework

Usage Guide

		<dependency>
	               <groupId>af.gov.anar.lib</groupId>
	                <artifactId>anar-lib-mail</artifactId>
                        <version>${project.version}</version>
		</dependency>

To use MailBuilder Add mail.properties in resources file and add following properties

mail.protocol = smtp
mail.host = smtp.gmail.com
mail.port = 587
mail.debug = true
mail.smtp.auth = false
mail.smtp.starttls.enable = false
mail.username =
mail.password =

To use spring-mail add following properties in application.properties

# Gmail config
spring.mail.host=smtp.gmail.com
spring.mail.port=587
[email protected]
spring.mail.password=xxxx
spring.mail.properties.mail.smtp.auth = true
spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com
spring.mail.properties.mail.smtp.connectiontimeout = 60000
spring.mail.properties.mail.smtp.timeout = 60000
spring.mail.properties.mail.smtp.writetimeout=5000

Documentation

Refer to this repository Wiki section. https://github.com/Anar-Framework/anar-lib-mail/wiki

Releases

No releases published

Packages

No packages published

Languages