1
irmtfan
how to use html code in activation Email
  • 2004/5/19 8:27

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i edit root\{lang}\mail_template\register.tpl for some costumization
and i use some html code like , ...
but not accepted

can i use html code in activation Email?
if no is there any way to costumize it (color , table , right to left , charset=UTF-8 , ...)

thanks a lot

2
irmtfan
Re: how to use html code in activation Email
  • 2004/5/19 17:14

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i think html code not working in activation email at all
so is there another way for costumize that?

I appreciate anyone's help

3
irmtfan
Re: how to use html code in activation Email
  • 2004/5/23 10:01

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


anyone know something about that?
plz reply

4
Dave_L
Re: how to use html code in activation Email
  • 2004/5/23 11:36

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


You would need to add a content-type header. You can't do that in the template. You would have to do it where the other headers are set up, which I think is register.php.

Example:

$xoopsMailer->addHeaders('Content-Type: text/html; charset=ISO-8859-1');

5
irmtfan
Re: how to use html code in activation Email
  • 2004/5/23 12:13

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i add this line in register.php
but nothing happened.
thank u for ur reply Dave_L i try to solve this

6
Stewdio
Re: how to use html code in activation Email
  • 2004/5/23 12:57

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


You will now need to edit the appropriate language files. They are set up to send plain text without any html code.

7
irmtfan
Re: how to use html code in activation Email
  • 2004/5/23 13:13

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


so u think there is no way to send a html content email to users for activation?

8
Dave_L
Re: how to use html code in activation Email
  • 2004/5/23 13:29

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


It should work, if you put that content-type header in the right place, and also use HTML tags in the mail template.

If you view the message source of the received email in your email client, does that content-type header show up?

Also, it's possible that more headers are needed. You might look at the headers of another received HTML email, and see if any relevant additional ones are there.

P.S. I hate HTML email. It's evil, and you shouldn't use it anyway.

Login

Who's Online

337 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 337


more...

Donat-O-Meter

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

Latest GitHub Commits