How to send mail from php

Last modified by stephane lauriere on 2014/04/15 12:22

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";

?>
Tags:
Created by stephane lauriere on 2014/04/15 12:22

Partners

Orange

VOICES

EU - FP7

OW2

© Emerginov
Site maintained by OW2