C
C#2d ago
Jorge1970

✅ 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.
No description
4 Replies
canton7
canton72d ago
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
Jorge1970
Jorge1970OP2d ago
Ahh ok, thanks a lot. Regards.
canton7
canton72d ago
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
Jorge1970
Jorge1970OP2d ago
Ok, thanks a lot.

Did you find this page helpful?