email using smtp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yasir_memon
Forum Commoner
Posts: 48
Joined: Tue Aug 11, 2009 12:29 am

email using smtp

Post 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?";
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

Re: email using smtp

Post 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
Post Reply