Jump to content

Archived

This topic is now archived and is closed to further replies.

jwk811

From address wont come up when sending an email

Recommended Posts

using this script

<?php
$to = "(to email)";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: (from emai)" . "\r\n" .
mail($to,$subject,$txt,$headers);
?>

in the email the from address is my server.. it was actually working before but now its not, whats wrong?

Share this post


Link to post
Share on other sites
nevermind i got it.. thats insane though.. like this anyone can send emails to anyone and having it appear as coming from anyone you'd like... that seems messed up

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.