Siemka mam problem otóż zrobiłem formularz napisałem do niego taki prosty kod php i nie wiem dlaczego ale wysyła email tylko i wylacznie pod jeden adres który jest na gmailu jeśli w pisze w $to jakiś inny adress to już maile nie dochodzą... zmienie z powrotem na ten na gmailu maile są w sekunde. Nie wiem czy ma to znaczenie ale strona stoi na razie na darmowym hostingu 000webhostapp.com
to jest kod php:
<?php
$to = '[email protected]';
$messValue = $_POST['messValue'];
$title = $_POST['title'];
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$subject = '[FORMULARZ]Nowy email od '.$name.'NUMER TELEFONU: '.$phone.' ('. $email . ')[FORMULARZ]';
$message = 'TEMAT '.$title.' '.'TREŚĆ WIADOMOŚCI: '. $messValue;
$headers = 'OD: '. $name . " " . $email . " " ."\r\n";
$headers .= 'Content-Type: text/html; charset=utf-8\r\n';
mail($to, $subject, $message, $headers);
?>
To jest kod formularza
<form method="post" name="concatform" action="mail.php">
<div class="form-group d-sm-inline-block">
<label for="name">Imie i nazwisko *</label>
<input type="text" class="form-control input-settings" name="name" id="name" required>
</div>
<div class="form-group d-sm-inline-block">
<label for="email">Adres Email*</label>
<input type="email" class="form-control input-settings" name="email" id="email" required>
</div>
<div style="clear: both;"></div>
<div class="form-group d-sm-inline-block mt-2">
<label for="title">Temat wiadomości*</label>
<input type="text" class="form-control input-settings" name="title" id="title" required>
</div>
<div class="form-group d-sm-inline-block ml-md-4 ml-lg-0 mt-2">
<label for="phone">Numer telefonu</label>
input type="text" class="form-control input-settings" name="phone" id="phone">
</div>
<div class="form-group">
<label for="messValue">Treść wiadomości*</label>
<textarea class="form-control textAreaResolution" rows="3" name="messValue" id="messValue" required></textarea>
</div>
<h5 class="ml-4" style="color:red">WYSŁANO</h5><br />
<input type="submit" value="wyślij" name="submit" class="btn btn-primary">
</form>
O co tu ***** moze chodzić..