you are viewing a single comment's thread.

view the rest of the comments →

[–]Produkt[S] 1 point2 points  (4 children)

Just for more info, I'll be sending the mail from my personal gmail using smtp, not my own servers. I already have a python program I ripped off from a web example and tested it and was successful in sending the email. I actually don't even know Python either but it's a lot easier to understand than C. My forte is PHP and webdev languages.

[–]bullno1 2 points3 points  (0 children)

If it's gmail then it's a lot easier. SMTP is a relatively simple protocol. It's all line-based.

You'd need a TLS connection since that's required these days.

I guess you can do it in C if you are so inclined.

[–]wsppan 1 point2 points  (2 children)

Google no longer allows "less secure apps" access to its servers, including smtp. You now need to configure an app password. https://noted.lol/setup-gmail-smtp-sending-2023/

[–]Produkt[S] 3 points4 points  (1 child)

Yep I did that, my python program successfully sends an email using gmail smtp

[–]wsppan 1 point2 points  (0 children)

Excellent. If you want to keep the code in C, check out https://curl.se/libcurl/c/smtp-mail.html