<?
function SafSendMailV2($MYRECIPIENTE_EMAIL,$MYRECIPIENTE_NAME,$MYFROM_NAME,$MYFROM_EMAIL,$MYSUBJECT,$MYBODY,$MYHTML,$REMOTE_ADDR,$PHP_SELF){
$MYRECIPIENTE_EMAIL = "$MYRECIPIENTE_EMAIL";
if ($MYHTML==true) {
$MYHEADERS = "From: $MYFROM_NAME <$MYFROM_EMAIL>\r\n";
$MYHEADERS .= "MIME-Version: 1.0\r\n";
$MYHEADERS .= "Content-Type: text/html; charset=windows-1256\r\n";
$MYHEADERS .= "Content-Transfer-Encoding: base64\r\n";
$MYHEADERS .= "From-IP: $REMOTE_ADDR\r\n";
$MYHEADERS .= "From-File: $PHP_SELF\r\n";
$MYHEADERS .= chunk_split(base64_encode("$MYBODY"));
mail("$MYRECIPIENTE_EMAIL", "$MYSUBJECT", "", $MYHEADERS);
}else{
$MYHEADERS = "From: $MYFROM_NAME <$MYFROM_EMAIL>\r\n";
$MYHEADERS .= "From-IP: $REMOTE_ADDR\r\n";
$MYHEADERS .= "From-File: $PHP_SELF";
mail("$MYRECIPIENTE_EMAIL", "$MYSUBJECT", "$MYBODY", $MYHEADERS);
}
}
?>
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2013
(219)
-
▼
February
(22)
- For removing content of a directory - subdirectory...
- print_r() in php
- File Upload if File Exists Append Number to File N...
- PHP Operator Types
- VBA writing in a text file
- PHP installation
- delete cookies in php
- Installing CPAN modules in perl in linux.
- PHP File Inclusion
- Subhajit Das | PHP Developer | PHP Programmer
- Assignment #2 Modified.
- Writing oracle procedure.
- Simple Ajax Example
- insert data into table in php with mysql
- rand() in php
- Send Email Using SafSendMailV2
- Free php pdf tutorial
- Get in between text using SafGetInBetweenText
- ckeck ip address is in blocked list or not in php
- codeigniter routing issue fixation - url rewriting...
- Best Free PHP IDE
- Array to Single Variable
-
▼
February
(22)