View Single Post
  #3 (permalink)  
Old 06-30-2009, 01:26 PM
Datacenter1.com Datacenter1.com is offline
Registered User
 
Join Date: Oct 2005
Location: /local/bar
Posts: 5
Datacenter1.com is on a distinguished road
Quote:
Originally Posted by PlatinumServerM View Post
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
__________________
Datacenter1.com
Servidores Dedicados - VPS 100% Uptime - Excelentes Precios
Reply With Quote