1
dantom
Admin Module: mail to users
  • 2004/10/11 19:12

  • dantom

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/6/21


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

Login

Who's Online

179 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits