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.
SMTP not working
- cogier
- Site Admin
- Posts: 1126
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: SMTP not working
Try changing m.From and m.User to your email address. e.g.
m.From = "me@yahoo.com"
m.User = "me@yahoo.com"
Re: SMTP not working
That was my first thought too.