There is a script for send emails in php
<?php
$Ssubject = "New Candidate information.\r\n";
$Sheaders = "From: New Candidate information <no-reply@host.com>\r\n";
$Sheaders .= "Message-ID: <".$now."no-reply@host.com>\r\n";
$Sheaders .= "Reply-To: no-reply@host.com\r\n";
$Sheaders .= "X-Mailer: Candidate\r\n";
$Sheaders .= "Mime-Version: 1.0\r\n";
$Sheaders .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
$Sheaders .= "Content-Transfer-Encoding: 8bit\r\n";
$Smsg = "A person has send his information to work with us:\n";
$Smsg .= "\nFull Name: " . $fullName;
$Smsg .= "\nEmail: " . $email;
$Smsg .= "\nPhone: " . $phone;
$Smsg .= "\nCheck the cv in: http://localhost/phpTest/admin/uploads/" . $fileName;
$Smsg .= "\n Thanks. \Mailer";
email("no-reply@host.com", $Ssubject, $Smsg, $Sheaders);
function email($email, $subject, $msg, $headers){
$text = "To: $email\r\n";
$text .= "Subject: $subject\r\n";
$text .= "Additional headers: \r\n$headers\r\n";
$text .= "\r\nMessage: \r\n$msg\r\n";
$result = mail($email, $subject, $msg, $headers);
return $result;
}
?>
--
Eduardo R. Coll
miércoles, 14 de enero de 2009
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario