Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send email error
#1
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
 
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)