"Validation failed for: Juan Perez"
¿¿Alguien tiene alguna idea de como solucionarlo??
Código:
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'> <html> <head> <TITLE></TITLE> <body> <?PHP include('Mail.php'); include('Mail/mime.php'); $text='text mime, etc'; $html='<html><body>HTML version of email</body></html>'; $crlf='\n'; $hdrs=array( 'From' => 'Juan Perez', 'Subject' => 'Test mime message' ); $mime=new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); //do not ever try to call these lines in reverse order $body=$mime->get(); $hdrs=$mime->headers($hdrs); $params['host']='ssl://smtp.gmail.com'; $params['port']='465'; $params['auth']=true; $params['username']='[email protected]'; $params['password']='pass'; $mail =& Mail::factory('smtp' , $params ); echo $mail->send('ffreddyy@hotmail', $hdrs, $body); ?> </body> </html>