Hi
If the mail server of PHP doesn’t work.
There is a solution to use the 3rd platform to forward the mail, like https://formspree.io/ https://www.enformed.io
For enformed.io, you need to sign up a account to get the Token Key.
The HTML code of form :
<form class="forming" action="//www.enformed.io/Token Key" method="post">
<div class="form-group">
<input type="text" class="form-input" name="name" placeholder="Your name" />
</div>
<div class="form-group">
<input type="email" class="form-input" name="email" placeholder="Your email" style="margin-bottom: 20px;" />
</div>
<div class="form-group">
<textarea class="" name="message" placeholder="Your message" style="margin-bottom: 0;"></textarea>
</div>
<button type="submit" class="form-group">Send</button>
</form>