mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-09 23:36:08 +00:00
Introduce pluggable email and image upload
This commit is contained in:
14
src/main/java/com/openisle/service/EmailSender.java
Normal file
14
src/main/java/com/openisle/service/EmailSender.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.openisle.service;
|
||||
|
||||
/**
|
||||
* Abstract email sender used to deliver emails.
|
||||
*/
|
||||
public abstract class EmailSender {
|
||||
/**
|
||||
* Send an email to a recipient.
|
||||
* @param to recipient email address
|
||||
* @param subject email subject
|
||||
* @param text email body
|
||||
*/
|
||||
public abstract void sendEmail(String to, String subject, String text);
|
||||
}
|
||||
Reference in New Issue
Block a user