fix syntax error
This commit is contained in:
		
					parent
					
						
							
								7b92dc3d9d
							
						
					
				
			
			
				commit
				
					
						fbb3486c95
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ type Message struct {
 | 
			
		|||
	To      []string
 | 
			
		||||
	From    string
 | 
			
		||||
	Subject string
 | 
			
		||||
	Reply-To string
 | 
			
		||||
	ReplyTo string
 | 
			
		||||
	Body    string
 | 
			
		||||
	Type    string
 | 
			
		||||
	Massive bool
 | 
			
		||||
| 
						 | 
				
			
			@ -64,7 +64,7 @@ func (m Message) Content() string {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	// create mail content
 | 
			
		||||
	content := "From: " + m.From + "\r\nReply-To: " + m.Reply-To + "\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
 | 
			
		||||
	content := "From: " + m.From + "\r\nReply-To: " + m.ReplyTo + "\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body
 | 
			
		||||
	return content
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -254,7 +254,7 @@ func NewHtmlMessage(To []string, From, Subject, Body string) Message {
 | 
			
		|||
	return Message{
 | 
			
		||||
		To:      To,
 | 
			
		||||
		From:    setting.MailService.From,
 | 
			
		||||
		Reply-To: From,
 | 
			
		||||
		ReplyTo: From,
 | 
			
		||||
		Subject: Subject,
 | 
			
		||||
		Body:    Body,
 | 
			
		||||
		Type:    "html",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue