0

I have a html bootstrap page, and it's being hosted by http://www.awardspace.com, which supports PHP. I upload everything with Filezilla, and I used a bootstrap template for my contact page. I followed the instructions that came with it, and I want the contact page to mail to [email protected]. When I go to the page (http://aviationsite.atwebpages.com/contact.html), and when I fill in every form, it says that the email has been send but I don't actually receive them. What am I doing wrong here?

2 Answers2

0

1. Gmail can block your email. Try to tempmail https://temp-mail.org/pl/ I have that same problem becouse postfix in my server not have good configuration.

2. Use smtp connection from any other mail account to send emails.

0

At first you should check your spambox if it isn't located over there you could try the following (I assume the bootstrap template will work but just to make sure)

<?php
$_POST['fromemail'] = $from;
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = "From: [email protected]";

mail($to, $subject, $message, $headers);
?> 

If that works you can try to change the "From: [email protected]"; to "From: $from" and then try

$message = $_POST['messagefield'];
$subject = $_POST['subjectfield'];

Hope this helps you out :)