html format on Email message to send upon server creation on Server Templates

This e-mail is among the first things that a new virtualmin user will see regarding his hosting services.

I would like to format it in html, to be able to adjust it better or even include images like my logo.

Would it be possible to have a subfolder somewhere in /etc/webmin/ where I could put an index html and maybe subfolders within, for extra stuff like images.

Html code on this file could be similar to the text on "Email message to send upon server creation keeping all virtualmin variables like $DOM $USER etc.

I know it is a complicated task to ask, but I really think it would be a nice feature that will make a nice impression to the newcomer

It would be neat if you could add it!

Thanks!

Status: 
Closed (fixed)

Comments

This is actually already possible - just enter the email template with starting with and Virtualmin will send it in HTML format. So you could enter something like :

<html>
<h1> Welcome to Virtualmin </h1>

Your domain is $DOM<p>
</html>

I followed your suggestion but with no luck. I receive the html tags but they are shown as plain text instead of html

From System Setting / Server Templates / Default Settings for Subservers / Mail for domain / Email message to send upon server creation

I selected Message below ..

and entered

Welcome to Virtualmin

Your domain is $DOM


From Administrator Options / Resend Signup E-mail I chose to re-send the email that was originally sent when the virtual server was created.

This is what I received (in raw format). From usermin and kmail I am seeing it in plain text

Return-Path:
X-Original-To: test@mydomain.gr
Delivered-To: mydomain@s2.myserver.gr
Received: by s2.weballdesign.gr (Postfix, from userid 0)
id 178741AE1A; Wed, 22 Jul 2009 15:45:24 +0300 (EEST)
From: webmin@s2.myserver.gr
To: test@mydomain.gr
Subject: Virtual server created
Date: Wed, 22 Jul 2009 15:45:24 +0300 (EEST)
Message-Id: <1248266724.11139.1@s2.myserver.gr>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="bound1248266724"

This is a multi-part message in MIME format.

--bound1248266724
Content-type: text/plain

Welcome to Virtualmin

Your domain is mydomain.gr


--bound1248266724--

Shouldn't it be something like that in the e-mail
Content-Type: text/html; charset = "utf-8"
Content-Transfer-Encoding: 8bit
instead of
Content-type: text/plain

I tried resending signup for a subserver, and for a server adjust the template settings accordingly. I also tried creating a new server. I all cases I receive plain text.

Changed it to active since it doesn't work for me yet.

Ok, turns out there is a Virtualmin bug that prevents this from working properly :-(

It will be fixed in the next release though..

Thanks for looking into it!

Automatically closed -- issue fixed for 2 weeks with no activity.