Php > E-Mail
Another SendMail
Another SendMail "; $to = "$to_name <$to_email>"; $main_boundary = "----=_NextPart_".md5(rand()); $text_boundary = "----=_NextPart_".md5(rand()); $html_boundary = "----=_NextPart_".md5(rand()); $headers = "From: $from\n"; $headers .= "Reply-To: $from\n"; $headers .= "X-Mailer: Yellow\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed;\n\tboundary=\"$main_boundary\"\n"; $message .= "\n--$main_boundary\n"; $message .= "Content-Type: multipart/alternative;\n\tboundary=\"$text_boundary\"\n"; $message .= "\n--$text_boundary\n"; $message .= "Content-Type: text/plain; charset=\"ISO-8859-1\"\n"; $message .= "Content-Transfer-Encoding: 7bit\n\n"; $message .= ($text_message!="")?"$text_message":"Text portion of HTML Email"; $message .= "\n--$text_boundary\n"; $message .= "Content-Type: multipart/related;\n\tboundary=\"$html_boundary\"\n"; $message .= "\n--$html_boundary\n"; $message .= "Content-Type: text/html; charset=\"ISO-8859-1\"\n"; $message .= "Content-Transfer-Encoding: quoted-printable\n\n"; $message .= str_replace ("=", "=3D", $html_message)."\n"; if (isset ($attachment) && $attachment != "" && count ($attachment) >= 1) { for ($i=0; $i
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage