配置Azure VM以使用SendGrid SMTP [英] Configure Azure VM to use SendGrid SMTP

查看:95
本文介绍了配置Azure VM以使用SendGrid SMTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过其他一些文章,在我的应用程序代码上使用stmp服务器发送电子邮件在Azure VM上将工作。但是当我在Azure应用服务上看到SendGrid时,我想知道如何以这样的方式配置我的Azure VM:每当它收到任何
出站电子邮件查询时,它将直接使用SendGrid SMTP。所以我没有为我的VM上的每个应用程序配置SMTP auth,因为我有大量使用PHP默认邮件功能的应用程序。

I've seen some other articles that using stmp server on my application code for sending e-mails on Azure VM will work. But as I see SendGrid on Azure App Services I was wondering how can I configure my Azure VM in such a way that Whenever it receives any outbound e-mail query it will directly use SendGrid SMTP. SO that I don't have to configure SMTP auth for each application on my VM as I am having a ton of application using PHP default mail function.

任何帮助都将不胜感激。 

Any help would be appreciated. 

推荐答案

将SendGrid与运行Apps的VM一起使用vs在App服务中运行它们应该是相同的。配置每个应用程序以使用SendGrid的要求仍然存在。根据我的经验,你不能简单地将流量转发到sendgrid并使其工作
out。您需要配置每个应用以使用sendgrid。 

Using SendGrid with a VM running your Apps vs running them in an App service should be the same. The requirements to configure each app to use SendGrid would still be there. In my experience you cannot simply forward traffic to sendgrid and have it work out. You need to configure each app to work with sendgrid. 

https://docs.microsoft.com/en-us/azure/sendgrid-dotnet-how-to-send-email

您可以考虑直接联系SendGrid以查看是否有任何解决方法。我不知道有任何专家会比我更了解他们的产品。 

You might consider reaching out to SendGrid directly to see if there are any work around for this. I am not aware of any but the experts there would know their product better than I would. 


这篇关于配置Azure VM以使用SendGrid SMTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆