includes/functions.php
/*This file have all functions to handle options.
	1) Set Option
	2) Get Option
	3) Install Admin
	4) Authentication
	*/
This file have all functions to handle options.
1) Set Option
2) Get Option
3) Install Admin
4) Authentication
This file have all functions to handle options . 1 ) Set Option 2 ) Get Option 3 ) Install Admin 4 ) Authentication
function send_email($message, $mailto, $subject) { 
			$from_email = get_option('email_from');
			$reply_to = get_option('email_to');
			$mailheaders = "From:".$from_email;
			$mailheaders .="Reply-To:".$reply_to;
			$from = $from_email;
			$headers = "FROM: ".$from;
					$semi_rand = md5(time());
					$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
					$headers .= "\nMIME-Version: 1.0\n" .
					"Content-Type: multipart/mixed;\n" .
					" boundary=\"{$mime_boundary}\"";
					$message .= "This is a multi-part message in MIME format.\n\n" .
					"--{$mime_boundary}\n" .
					"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
					"Content-Transfer-Encoding: 7bit\n\n" .
					$message . "\n\n";
					@$message .= "--{$mime_boundary}\n" .
					"Content-Type: {$fileatt_type};\n" .
					" name=\"{$filename}\"\n" .
					"Content-Transfer-Encoding: base64\n\n" .
					mail($mailto, $subject, $message, $headers);
	}
function send_email ( $ message , $ mailto , $ subject ) { $ from_email = get_option ( 'email_from' ) ; $ reply_to = get_option ( 'email_to' ) ; $ mailheaders = " From: " . $ from_email ; $ mailheaders .= " Reply-To: " . $ reply_to ; $ from = $ from_email ; $ headers = " FROM:  " . $ from ; $ semi_rand = md5 ( time ( ) ) ; $ mime_boundary = " ==Multipart_Boundary_x { $ semi_rand } x " ; $ headers .= " \n MIME-Version: 1.0 \n " . " Content-Type: multipart/mixed; \n " . "  boundary= \" { $ mime_boundary } \" " ; $ message .= " This is a multi-part message in MIME format. \n \n " . " -- { $ mime_boundary } \n " . " Content-Type:text/html; charset= \" iso-8859-1 \" \n " . " Content-Transfer-Encoding: 7bit \n \n " . $ message . " \n \n " ; @ $ message .= " -- { $ mime_boundary } \n " . " Content-Type:  { $ fileatt_type } ; \n " . "  name= \" { $ filename } \" \n " . " Content-Transfer-Encoding: base64 \n \n " . mail ( $ mailto , $ subject , $ message , $ headers ) ; }
This file have all functions to handle options.
This file have all functions to handle options .
//getting set email addresses from database.