Quote:
Originally Posted by PlatinumServerM
You can use a simple mail routine in either perl or php.
<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
|
Thank you PlatinumServerM, I already know that
My question is how to sent an email from command line, when the only thing I have is the customer's username, or in other words, how can I get the user's email address from his username?
Thank You