/*************************************
Title: GoMidjets
Version: 1.0
Author:
Demo:
Download:
Website: http://gomidjets.com
Short description:
*************************************/
(Here below you can write additional info, longer description and comments)
Hello,
I'm new to Hesk.
Is it possible that the email which is sent to submitter will be in HTML format ?
Thanks
HTML email format?
Moderator: mkoch227
Possible yes, but would need quite some editing and is out of the scope of my support here. I will consider adding HTML mails to Hesk in the future though.
As for your attachments problem, see
viewtopic.php?t=2604
As for your attachments problem, see
viewtopic.php?t=2604
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
header for @mail
Errrh
Can you post what header you added ?
Thanks
Can you post what header you added ?
Thanks
Re: HTML email format?
Hmm I'm interested in how this was done. Has anybody else tried to take a stab at this and succeeded like the previous poster has, but can post what they did?
-
- Posts: 4
- Joined: Wed Dec 19, 2012 11:48 pm
Re: HTML email format?
hello!!
find all "text/plain" in inc\email_functions.inc.php
and replace it for "text/html" next, modifying your email template in \language\**\emails
works!!!
true history.
find all "text/plain" in inc\email_functions.inc.php
and replace it for "text/html" next, modifying your email template in \language\**\emails
works!!!
true history.
Re: HTML email format?
If only changing the text/plain to text/html inside the '../inc/email_functions.inc.php' the result is a shame for modern emails.
Well, to avoid this all email texts can be edited - but the emails are not really html code.
But just adding a few lines more into the '../inc/email_functions.inc.php' you give the emails a more professional look.
Open the ../inc/email_functions.inc.php (hesk 2.5.0) and search for:
(is inside the function function hesk_mail($to,$subject,$message) around line 285..)
and add BEFORE this code:
Do not forget to replace the 2 instances of text/plain to text/html (just below this line).
Save the script.
The emails are send now in a darker grey with font Arial in 12 px (see above).
If you prefer another look, just adopt the code above.
Well, to avoid this all email texts can be edited - but the emails are not really html code.
But just adding a few lines more into the '../inc/email_functions.inc.php' you give the emails a more professional look.
Open the ../inc/email_functions.inc.php (hesk 2.5.0) and search for:
Code: Select all
if ( ! $hesk_settings['smtp'])
and add BEFORE this code:
Code: Select all
$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #767676;">' . nl2br( $message ) . '</body></html>';
Save the script.
The emails are send now in a darker grey with font Arial in 12 px (see above).
If you prefer another look, just adopt the code above.
OSWorX - OpenSource Development :: OpenCart Developer