mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add SUBJECT_PREFIX mailer config option (#6605)
* Add SUBJECT_PREFIX mailer config option * Add space between subject prefix and subject (Change from Gogs) Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -21,6 +21,7 @@ type Mailer struct {
 | 
			
		||||
	FromEmail       string
 | 
			
		||||
	SendAsPlainText bool
 | 
			
		||||
	MailerType      string
 | 
			
		||||
	SubjectPrefix   string
 | 
			
		||||
 | 
			
		||||
	// SMTP sender
 | 
			
		||||
	Host              string
 | 
			
		||||
@@ -65,6 +66,7 @@ func newMailService() {
 | 
			
		||||
		CertFile:       sec.Key("CERT_FILE").String(),
 | 
			
		||||
		KeyFile:        sec.Key("KEY_FILE").String(),
 | 
			
		||||
		IsTLSEnabled:   sec.Key("IS_TLS_ENABLED").MustBool(),
 | 
			
		||||
		SubjectPrefix:  sec.Key("SUBJECT_PREFIX").MustString(""),
 | 
			
		||||
 | 
			
		||||
		SendmailPath: sec.Key("SENDMAIL_PATH").MustString("sendmail"),
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user