Atozed Forums
Send email error - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Indy (https://www.atozed.com/forums/forum-8.html)
+--- Forum: Indy General Discussion (https://www.atozed.com/forums/forum-9.html)
+--- Thread: Send email error (/thread-983.html)



Send email error - sorinh - 03-07-2019

Hello
 
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 := 'myemail@zahav.net.il' its work ok
 
 When I try to send to my Gmail email and define:
Msg.Recipients.EMailAddresses := 'myemail@gmail.com'  
Its raise an error "Relaying not allowed"
 
Why?


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.