Atozed Forums

Full Version: Send email error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
 
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.