Hi, thanks for your quick answer, I made some changes in the code and now is working both Yahoo! and Hotmail.
Here is the change.
In the file "yourgallery/include/mailer.inc.php", inside the Class PHPMailer find the function CreateHeader() and go to this part around the line number 907
switch($this->message_type)
{
case "plain":
$result .= $this->HeaderLine("Content-Transfer-Encoding", $this->Encoding);
$result .= sprintf("Content-Type: %s; charset=\"%s\"",
$this->ContentType, $this->CharSet);
break;
case "attachments":
// fall through
case "alt_attachments":
if($this->InlineImageExists())
{
$result .= sprintf("Content-Type: %s;%s\ttype=\"text/html\";%s\tboundary=\"%s\"%s",
"multipart/related", $this->LE, $this->LE,
$this->boundary[1], $this->LE);
}
else
{
$result .= $this->HeaderLine("Content-Type", "multipart/mixed;");
$result .= $this->TextLine("\tboundary=\"" . $this->boundary[1] . '"');
}
break;
case "alt":
$result .= $this->HeaderLine("Content-Type", "text/html; charset=\"%s"); //I force the content-type to "text/html"
// "multipart/alternative;"); //This was the original part of the code I delete
// $result .= $this->TextLine("\tboundary=\"" . $this->boundary[1] . '"'); //This line too
$result .= $this->HeaderLine("Content-Transfer-Encoding", $this->Encoding);
// $result .= sprintf("Content-Type: text/html; charset=\"%s\"", //This two lines don't look well at the begining of the message
// $this->ContentType, $this->CharSet);
break;
}
if($this->Mailer != "mail")
$result .= $this->LE.$this->LE;
return $result;
}
Now go to function CreateBody() and I delete the lines above, around 958 to the 963
function CreateBody() {
$result = "";
$this->SetWordWrap();
switch($this->message_type)
{
case "alt":
// $result .= $this->GetBoundary($this->boundary[1], "",
// "text/plain", "");
// $result .= $this->EncodeString($this->AltBody, $this->Encoding);
// $result .= $this->LE.$this->LE;
// $result .= $this->GetBoundary($this->boundary[1], "",
// "text/html", "");
$result .= $this->EncodeString($this->Body, $this->Encoding);
$result .= $this->LE.$this->LE;
// Desde aqui puedo colocar lo que me de la gana OJO
// $result .= $this->EndBoundary($this->boundary[1]);
break;
case "plain":
$result .= $this->EncodeString($this->Body, $this->Encoding);
break;
case "attachments":
$result .= $this->GetBoundary($this->boundary[1], "", "", "");
$result .= $this->EncodeString($this->Body, $this->Encoding);
$result .= $this->LE;
Now I find another problem in the confirmation e-mail for new registers, in the file "yourgallery/lang/yourlanguage.php" find this variable: $lang_register_confirm_email and change the block {PASSWORD} to {USER_PASSWORD}
$lang_register_confirm_email = <<<EOT
Gracias por registrarte en {SITE_NAME}, Tu nombre de usuario es: "{USER_NAME}", Tu contraseña es: "{USER_PASSWORD}"
Para terminar de activar tu cuenta, debes pulsar sobre el enlace que aparece debajo o copiarlo y pegarlo en tu navegador de InterNet.
and go to the file "yourgallery/register.php" direct to the conditional "if (isset($_GET['activate']))" around the line number 329 and then find this:
if ($CONFIG['admin_activation']==1) { //after admin approves, user receives email notification
msg_box($lang_register_php['information'], $lang_register_php['acct_active_admin_activation'], $lang_continue, 'index.php');
$site_link = $CONFIG['site_url'];
$template_vars = array(
'{SITE_LINK}' => $site_link,
'{USER_NAME}' => $user_name,
'{SITE_NAME}' => $CONFIG['gallery_name'],
you must to add this new line '{USER_PASSWORD}' => $password, like this
if ($CONFIG['admin_activation']==1) { //after admin approves, user receives email notification
msg_box($lang_register_php['information'], $lang_register_php['acct_active_admin_activation'], $lang_continue, 'index.php');
$site_link = $CONFIG['site_url'];
$template_vars = array(
'{SITE_LINK}' => $site_link,
'{USER_NAME}' => $user_name,
'{USER_PASSWORD}' => $password,
'{SITE_NAME}' => $CONFIG['gallery_name'],
I keep on working.
You are invited to register on the gallery to confirm this and improve all you the best you think.
Thanks a lot