Page 1 of 1

email using smtp

Posted: Mon Aug 24, 2009 1:16 am
by yasir_memon
i want to send email using smtp server i search code for that but i am just confused in its first line kindly tell me what is mail.php in that is this program anme


<?php
require_once "Mail.php";

$from = "Sandra Sender <sender@example.com>";
$to = "Ramona Recipient <recipient@example.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";

Re: email using smtp

Posted: Wed Aug 26, 2009 12:27 am
by paqman
Mail.php is some file the person who made the sample code created - there's no way for us to know what it is.

Try looking into the examples at http://php.net/manual/en/function.mail.php