I would like to know if it is possible to send emails with a free of infintyfree, because I tested the mail function on my site, and it is not working
follow the code below
<?php if (isset($_POST['nome']) and isset($_POST['email']) and isset($_POST['msg'])){ $nome = $_POST['nome']; $sobre = $_POST['sobre']; $email = $_POST['email']; $tel = $_POST['tel']; $tel2 = $_POST['tel2']; $msg = $_POST['msg']; //echo" $nome
$sobre $email $tel $msg"; $remetente=$email; $to = "
[email protected]"; //Assunto $subject = "Mensagem do(a) Cliente Serralheria Castro"; //Mensagem $message = "Cliente:$nome $sobre
Email: $email
Telefone: $tel
Celular: $tel2
Deseja saber o seguinte:
$msg"; //Headers para leitura correta do html $headers = 'MIME-Version: 1.0' . "\\r\
"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\\r\
"; $headers .= "From: $remetente"; //envio de E-mail mail($to, $subject, $message, $headers); } ?>
help please
PHP Sendmail is not supported on InfinityFree as far as I know.
Have you checked the Knowledge Base before posting?
https://infinityfree.net/support/php-mail/
yes, they said i can use the mail function normaly, however, it does not work
@SerralheriaCastro said:
what can are?
I don’t know, we will have to wait @Admin, but until then wait.
Also, it says that
PHP mail are rejected by the mail system
So what do you mean? They say it clearly, it won’t work.
I want to know if it is possible to do anything to unlock this.
Oxy
7
send via php mail() function works but is restricted
it is mainly possible only when validating forum users, wordpress, etc.
for other purposes uses this https://infinityfree.net/support/how-to-send-email-with-gmail-smtp/
@SerralheriaCastro said:
I want to know if it is possible to do anything to unlock this.
Some PHP Scripts allow to send mails beyond hosting. Like, WP, Drupal, etc., but for setting up SMTP you need to upgrade or try Google SMTP.
<?php if (isset($_POST['nome']) and isset($_POST['email']) and isset($_POST['msg'])){ $nome = $_POST['nome']; $sobre = $_POST['sobre']; $email = $_POST['email']; $tel = $_POST['tel']; $tel2 = $_POST['tel2']; $msg = $_POST['msg']; //echo" $nome <br/> $sobre $email $tel $msg"; $remetente=$email; $to = "[email protected]"; //Assunto $subject = "Mensagem do(a) Cliente Serralheria Castro"; //Mensagem $message = "Cliente:$nome $sobre Email: $email Telefone: $tel Celular: $tel2 Deseja saber o seguinte: $msg"; //Headers para leitura correta do html $headers = 'MIME-Version: 1.0' . "\\r\ "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\\r\ "; $headers .= "From: $remetente"; //envio de E-mail mail($to, $subject, $message, $headers); } ?>
This might be FATAL Error because it doesn’t connect with Server of GMAIL.
Okay, I’ll try to arrange
Admin
10
@SerralheriaCastro said:
yes, they said i can use the mail function normaly, however, it does not work
No, the article doesn’t say that. Please read it again: https://infinityfree.net/support/php-mail/
Remember that making text bold is usually done to draw additional attention to it. That means that bold text is usually important.