1
Hello!
I hope i am not off topic or wrong forum.
I would you like to have an graphic header in every email that sent from admin->mail to users
In xoopsmailer.php Like this:
Quote:
$subject = str_replace("{X_UNAME}", $user->getVar("uname"), $this->subject );
$text = str_replace("{X_UID}", $user->getVar("uid"), $this->body );
$text = str_replace("{X_UEMAIL}", $user->getVar("email"), $text );
$text = str_replace("{X_UNAME}", $user->getVar("uname"), $text );
// my idea...but print just e HTML link but NOT a graphic header with unione.gif 
$text = str_replace("{X_HEADER}", XOOPS_URL."/themes/uds/images/unione.gif", $text );
Result in email is just a tag img HTML

:
My browser accept HTML email.
i try also like this
Quote:
$this->headers[] = "X-Mailer: PHP/".phpversion();
$this->headers[] = "Return-Path: ".$this->fromEmail;
//my row
$this->headers[] = "Content-Type: text/html";
What can i do?
bad english... sorry....
thank if help me!

Dantom
P.S
It would be better if is possibile to insert AUTOMATIC X_HEADER like e admin voice us like activated.tpl