i was wondering if its possible to get user email with PHP?
Example , i want to know my own E-Mail address when I send an e-mail to someone.
i'm finding out is it possible to do so with PHP?
I need some assist
Thanks in advance
i was wondering if its possible to get user email with PHP?
Example , i want to know my own E-Mail address when I send an e-mail to someone.
i'm finding out is it possible to do so with PHP?
I need some assist
Thanks in advance
try this:
$from = "sender id" // sender
$subject = "subject";
$message = 'mail from'.$from.'sender';
$to = "receiver id";
// send mail
$headers = 'From: <test@test.com>' . "\n";
$headers .= "MIME-Version: 1.0\n" ;
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
mail($to,$subject,$message,$headers);
> i want to know my own E-Mail address when I send an e-mail to someone.
You can not, because you have to specify it yourself in order to make it work.
mail()
you have to specify the "from" address yourself.phpmailer
class), your login account determines the "from" address.