SMTP not working

Post

Posted
Rating:
#1 (In Topic #180)
Avatar
Enthusiast
sadams54 is in the usergroup ‘Enthusiast’
You guys are great, helped me solve last problem easy. now this one please.  I get an error using smtpclient that says "unable to send recipients, sender rejected" using the code below..

  Dim M As New SmtpClient
  
  m.Host = "smtp.mail.yahoo.com"
  m.To.Add("mail@txt.att.net")
  m.Port = 465
  m.From = "Kitchen Timer"
  m.Subject = "This is a test"
  m.Body = "Testes"
  m.User = "user"
  m.Password = "password"
  m.Encrypt = Net.SSL

  m.Send
  
the mail info is correct and authenticates. Any good help appreciated.
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
Try changing m.From and m.User to your email address. e.g.

Code (gambas)

  1. m.From = "me@yahoo.com"
  2. m.User = "me@yahoo.com"
Online now: Yes Back to the top

Post

Posted
Rating:
#3
Avatar
Regular
jornmo is in the usergroup ‘Regular’
That was my first thought too.

Online now: No Back to the top
1 guest and 0 members have just viewed this.