简体   繁体   English

Laravel电子邮件发送:SMTP还是Google开发人员APi?

[英]Laravel Email Sending : SMTP or Google developer APi?

I was trying to send email from my laravel application where i used google SMTP configuaration in my .env. 我试图从laravel应用程序发送电子邮件,在我的.env文件中使用google SMTP配置。 There is google developer API for sending Email also. 还有Google Developer API也可以发送电子邮件。 Which one is better to use for sending Email SMTP or Developer API from Laravel Application? 从Laravel Application发送电子邮件SMTP or Developer API最好使用哪一种?

Google Developer API (PHP) : https://developers.google.com/gmail/api/quickstart/php Google Developer API (PHP) : https Google Developer API (PHP) : //developers.google.com/gmail/api/quickstart/php

我认为,如果您只需要发送电子邮件,最好的选择是使用SMTP,但是,如果您需要同时创建和发送电子邮件,则需要能够管理邮箱,管理设置等。需要使用Developer API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM