Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Change mail to admin to html

Quote Reply
Change mail to admin to html
Hi,

possible that anyone do this before.

I would like to change the email format from text to html
for the following mails
admin_email_add and admin_email_mod

I am using Links 2.x

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [eljot] Change mail to admin to html In reply to
To do this in Links SQL 2.x, you have to modify the code to add the correct headers since the e-mail templates only contain the body (see Links/User/Add.pm and Modify.pm). In Gossamer Links 3.x, the e-mail templates have been changed to be complete e-mails, so the correct headers can be added right into the template without any code changes.

Adrian
Quote Reply
Re: [brewt] Change mail to admin to html In reply to
Thank you.

Yes, I've try exactly these files to find something which can help.
But these modules interact with send.pm and I did not understand
the way to add a messagetyp for interaction.

Best regards from
Bremen/Germany

Lothar

Last edited by:

eljot: Feb 13, 2006, 12:01 AM
Quote Reply
Re: [eljot] Change mail to admin to html In reply to
Hi Lothar,

To set the below option into the send command should work
send(...
-type => 'text/html',
...);

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Change mail to admin to html In reply to
Cool, thank you tandat!

Best regards from
Bremen/Germany

Lothar