Atozed Forums
Send email error - Printable Version

+- Atozed Forums (
+-- Forum: Indy (
+--- Forum: Indy General Discussion (
+--- Thread: Send email error (/thread-983.html)

Send email error - sorinh - 03-07-2019

I try to send an email using IdSMTP and IdMessage.
I define all the settings:
When I try to send to my email and define:
Msg.Recipients.EMailAddresses := '' its work ok
 When I try to send to my Gmail email and define:
Msg.Recipients.EMailAddresses := ''  
Its raise an error "Relaying not allowed"

Thanks, Sorin

RE: Send email error - kudzu - 03-07-2019

Because of spam most mail servers will not take and relay mail to other servers unless you are logged in or have other rules that identify you as an authorized sender. You need to check the policy of your mail server but most likely adding login credentials will fix this.