// validateLine checks to see if a line has CR or LF as per RFC 5321.
validateLine checks to see if a line has CR or LF as per RFC 5321.
// validateLine checks to see if a line has CR or LF as per RFC 5321 .
func (s smtpClient) validateLine(line string) errors.Error {
	if strings.ContainsAny(line, "\n\r") {
		return ErrorSMTPLineCRLF.Error(nil)
	}
	return nil
}
func ( s smtpClient ) validateLine ( line string ) errors . Error { if strings . ContainsAny ( line , " \n \r " ) { return ErrorSMTPLineCRLF . Error ( nil ) } return nil }
validateLine checks to see if a line has CR or LF as per RFC 5321.
validateLine checks to see if a line has CR or LF as per RFC 5321 .