Jump to content
TNG Community

HTML code in body e-mail


RobvD

Recommended Posts

Hi,

I'm a new user of TNG (version 15.0.4, template 19).

Messages that TNG sends, for instance  to confirm the activation of a user account, contains HTML text in the body.  Like this:

--------------------

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hallo .........,<br />
<br />
Uw TNG gebruikers-account is geactiveerd. Uw aanmeld-informatie is:<br />
<br />
Gebruikersnaam: .......<br />
Wachtwoord: ..........<br />
<br />
...................<br />
https:// ..................</body>
</html>

-----------------------

How can I prevent TNG from adding this code to the messages?

 

Thank you for your help.

 

RobvD

 

 

Link to comment
Share on other sites

The function tng_sendmail is inside the file tngmaillib.php file. It has the HTML tags mixed in with the other variables to form the message. You could edit that file directly, in the $body variable (I wouldn't mess the others), and use \r\n as a return/linefeed.

The suggest and "no new registrations" processes also have some HTML used, in the text.php file in the language folders...

 

GOGGS

Link to comment
Share on other sites

Change your mailing settings to use SMTP, and provide the login credentials for the eMail account you plan to use in TNG Admin ------> Setup ------> General Settings ------> Mail and Registration

image.png

 

Roger

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...