azure with SMTP

nadir semil 1 Reputation point
2020-06-24T04:01:48.817+00:00

Hi Guys,

Am using azure VM and I have outlook email i wanna use with it. I want to use the smtp details for my site' contact page form to post to email address. via phpmailer. Data doesnt post. error :

This page isn’t working
mydomain.com is currently unable to handle this request.
HTTP ERROR 500

Any help would be appreciated

Thanks
Nadir

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,562 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. nadir semil 1 Reputation point
    2020-06-26T04:04:25.013+00:00

    Okay I got an update. The form actually post now but email not received. I have use my outlook email with smtp.office365.com as SMTP with phpmailer.
    Does anyone has a way around this?

    Thanks

    0 comments No comments

  2. Krish G 2,331 Reputation points
    2020-06-26T05:52:03.367+00:00

    Hello @nadir semil , there is restriction of outbound SMTP connection from VM. Please refer Troubleshoot outbound SMTP connectivity issues in Azure .

    If it helps, please consider accepting as answer which can help other community members with similar queries.