在Linux上的C ++中使用SMTP发送邮件 [英] Send Mail using SMTP in C++ on Linux
问题描述
有人可以给我一个如何使用C ++程序发送邮件的示例吗?我遇到过一些程序,但它们的描述性不强.如果我需要更多选择,我还想知道那里还有哪些其他库.
Can someone give me an example of how to send a mail using a C++ program? I have come across some programs but they are not that descriptive. I would also like to know what other libraries are there if I need more options.
推荐答案
您可能对 libcURL 感兴趣.
这是一个很棒的多平台C库,它支持许多不同的协议,包括SMTP.
It's a great multi-platform C library which supports a lot of different protocols, including SMTP.
官方网页上包含示例和提示,可帮助您入门.
The official web page contains samples and tips to get you started.
此处可能会为您提供帮助.
Here is one that might help you.
如果您不想使用C接口,则存在C ++绑定(但我从未使用过).
Bindings exists for C++ (but I never used them) if you don't want to use the C interface.
这篇关于在Linux上的C ++中使用SMTP发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!