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.
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
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.