Can cURL be used to send emails through a proxy

 ̄綄美尐妖づ 提交于 2021-02-07 09:50:51

问题


I would like to send mails from my localhost. I am connected to internet through my institute's proxy(HTTP) which requires authentication. Is it possible to use cURL to send mails, because so far i've seen it fetching webpages only. If not so, could you please specify any other alternatives? Any help is greatly appreciated!!

Thanks!


回答1:


If you need to send mails using a web interface, you can script curl to use the proxy and the web site: http://curl.haxx.se/docs/httpscripting.html

If you want to use SMTP, curl can do that too. It might however not be the best tool out there for sending emails.

I don't think anyone truly access SMTP through HTTP proxy even if I think you can for example tunnel through a HTTP proxy (with CONNECT) using curl if you really want to.



来源:https://stackoverflow.com/questions/5893301/can-curl-be-used-to-send-emails-through-a-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!