How to send mail from php

To send a mail from a php file, you can use something like:

<?php
// Load required configuration & Emerginov Class
require_once("passwords.php");
require_once("Emerginov.php");

// Envoi du mail
if (mail("yourmail@yopmail.com", "Subject", "Line 1\nLine 2\nLine 3")) echo "Mail sent!";
else echo "Error while sending mail";

?>

Partners

Orange

VOICES

EU - FP7

OW2

© Emerginov
Site maintained by OW2