Version: 1.0

Type: Function

Category: Networking

License: GNU General Public License

Description: Simple email function using sendmail.



<?php
/*************************************************************************
 sendemail

	Copyright (c) 2002, Cosmin Budinschi
	All rights reserved.
	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
	* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
	* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
	* Neither the name of Maciej Plewa nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
**************************************************************************/
function email($adress_from,$adress_to,$subject,$mesage)
{
$mail=`echo -e "Subject: $subject\n$mesaj " | sendmail -f $adress_from $adress_to`;
}
//however the real from adress will apear in the email header
//it's as simple as that assuming that you're working under linux

?>