Showing 3 of 21 total issues
Function SendEmail
has 64 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func SendEmail(outgoingEmail Outgoing) bool {
email_html, err := ioutil.ReadFile(configs.EmailsDir + outgoingEmail.Template)
from := mail.Address{configs.SMTPname, configs.SMTPfrom}
to := mail.Address{"", outgoingEmail.Email}
subj := outgoingEmail.Subject
Function SendEmail
has 9 return statements (exceeds 4 allowed). Open
Open
func SendEmail(outgoingEmail Outgoing) bool {
email_html, err := ioutil.ReadFile(configs.EmailsDir + outgoingEmail.Template)
from := mail.Address{configs.SMTPname, configs.SMTPfrom}
to := mail.Address{"", outgoingEmail.Email}
subj := outgoingEmail.Subject
Function SetSMTPInfo
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func SetSMTPInfo(host string, port string, user string, password string, fromName string, fromAddress string, emailsDir string){