mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	add error for hello func
This commit is contained in:
		@@ -100,7 +100,10 @@ func sendMail(settings *setting.Mailer, recipients []string, msgContent []byte)
 | 
				
			|||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	client.Hello(hostname)
 | 
					
 | 
				
			||||||
 | 
						if err = client.Hello(hostname); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// If not using SMTPS, alway use STARTTLS if available
 | 
						// If not using SMTPS, alway use STARTTLS if available
 | 
				
			||||||
	hasStartTLS, _ := client.Extension("STARTTLS")
 | 
						hasStartTLS, _ := client.Extension("STARTTLS")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user