Install PHPMailer in Azure Web App

Microsoft

I want to install PHPMailer (https://github.com/PHPMailer/PHPMailer) in Azure Web App in order to send message to my SMTP server from my php app uploaded to Azure Web App. All emails will be sent to single SMTP host. Is it possible to install PHPMailer to Azure Web App?

2 Replies

@Pawel Partyka, as far as I know, Microsoft restricts using smtp on Azure and the best recomendation is to use one of the managed solutions offered by the platform such as send grid. Although if you run a subscription on production, you might find interesting following this doc: https://docs.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity#recom...

 

Concerning the application itself, i don't see you having any problems on deploying it.  

@Pawel Partyka 

 

Just agreeing with @Carlos Oliveira on this one. I would recommend using the managed SendGrid service. You can send up to 25,000 emails / free / mo. and we've had a lot of success using it. We've also sent using Office 365 SMTP. I personally haven't used PHPMailer, but you're likely going to run into a few roadblocks sending directly through an App Service on the SMTP port(s).