Menu
Hello!
I’m new to php and have a question about sending mail from a webbpage.
I know that I can use syntax like:
<?php
.
.
.
$headers=”From: $emailfrom”;
mail($to, $subject, $message, $headers);
?>
to send mail but this syntax doesnt take care about “fake emailadresses” so you can write what you want as $emailfrom
I have tried to do like
<?php
if(mail($to, $subject, $message, $headers)?…
?>
but this doesnt either work….
Is there a way to control that $emailfrom is a working emailadress?
Regards /D_S