Fix sending error due to mixed case in sender address

This commit is contained in:
Michal Horejsek
2021-01-22 10:30:31 +01:00
parent 25a8c1962b
commit b3a64892fe
4 changed files with 44 additions and 0 deletions

View File

@ -75,6 +75,7 @@ func (c *SMTPClient) SendCommands(commands ...string) *SMTPResponse {
for _, command := range commands {
command = strings.ReplaceAll(command, "[userAddress]", c.address)
command = strings.ReplaceAll(command, "[userAddress|capitalize]", strings.Title(c.address))
tstart := time.Now()