Hello,
How long should the email sent via SMTP protocol take using Zoho? With my testing, it's usually between 10-20 seconds for it to arrive in the recipient email. Here's the test script that I use in Windows Powershell:
- $From = "my@email-domain.com"
- $To = "send-to@some-mail.com"
- $Subject = "This is the subject of the email"
- $Body = @"
- <html>
- <head>
- <h1> testing SMTP speed </h1>
- </body>
- </html>
- "@
- $SMTPServer = "smtppro.zoho.eu"
- $SMTPPort = 587
- $SMTPUsername = "my-username"
- $SMTPPassword = "some-password"
- $Email = New-Object System.Net.Mail.MailMessage
- $Email.From = $From
- $Email.To.Add($To)
- $Email.Subject = $Subject
- $Email.Body = $Body
- $Email.IsBodyHtml = $true
- $SMTPClient = New-Object System.Net.Mail.SmtpClient($SMTPServer, $SMTPPort)
- $SMTPClient.EnableSsl = $true
- $SMTPClient.Credentials = New-Object System.Net.NetworkCredential($SMTPUsername, $SMTPPassword)
- # Measure the time taken to send the email
- $start = Get-Date
- $SMTPClient.Send($Email)
- $end = Get-Date
- $duration = $end - $start
- Write-Output "Email sent in $($duration.TotalSeconds) seconds"
- Email sent in 10.9296771 seconds
This is not too bad, but when I use it in my web application, it is a bit too slow from the user's perspective. Is there anything that can be done to speed it up? Maybe some config tweaks? Is this being throttled intentionally to prevent potential spamming? Does that depend on the plan I'm on with Zoho?