✅ How to send Email or SMS message text
Hi.
How could I send an Email or SMS message text using C#?. I tried with next code but doesn't work. I am using my GMail account. Thanks in advanced.

4 Replies
Gmail will insist that you authenticate with them. You will need to generate an app password for that
There are other services that will let you send mass emails and smss. For example, mailchimp for email and twilio for sms, but there are many others
Ahh ok, thanks a lot. Regards.
Once upon a time you could send an email to anyone from anywhere, but the spammers put a stop to that
You'll probably also need to use encryption for Gmail, either connecting on a tls port or using starttls. Read their docs. Note that the built in SmtpClient is a bit limited there, and MS now recommend MailKit
Ok, thanks a lot.