Email to all users

Cees50

Active member
Hi,

Before i start my question. Im no coder :rolleyes:

I wanted to mail all my users tru the backend menu item users, mail all users.
If i make a mail there and send it, its a plain text, and not a email such as all the mails send from the forum. I set the forum in debug mode and took a look in the email templates, but it doesnt ring a bell how i can do that. I copied some templates and tested them, but then i got strange looking emails :(

What im searching for is a setup so i can make some text and the mail looks like all the mail xenforo sends.. Im no good with html or other code, trying but doesnt work.

Any help is welcome and appreciated
 

Thats what i did, I always search first...;)


There is an option for html emails on that page:

View attachment 38306

HTML emails use html code with inline styling. Refer to the email templates for examples:

Admin CP -> Development -> Email Templates


I did that too. But im no coder or are very good with html. There are a lot of strings that i dont know how to change or replace with the good ones . I took a look at the main container template , but didnt get it figured out. Tried several things for several days, and nothing seems to work, or presented a good looking email. Thats why i asked some help:unsure:
 
This simple code is like XenForo send emails, I'm not a programmer or designer possibly the code can be better.

You can modify it according your criteria and send it in accordance the instructions of Jake.

Rich (BB code):
<html>
<head>
<meta charset="UTF-8" />
<base href="http://www.yoursite.com" />
<title>Lorem Ipsum</title>
</head>
<body text="#141414" bgcolor="#F0F0F0" link="#176093" alink="#176093" vlink="#176093" style="padding: 10px">
 
<table cellpadding="0" cellspacing="0" border="0" style="
background-color: #F0F7FC;
border: 1px solid #A5CAE4;
border-radius: 5px">
<tr>
<td style="
background-color: #D7EDFC;
padding: 5px 10px;
border-bottom: 1px solid #A5CAE4;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
font-size: 11px;
line-height: 1.231;">
<a href="http://www.yoursite.com" style="color: #176093; text-decoration:none">Lorem Ipsum</a>
</td>
</tr>
<tr>
<td style="
background-color: #FCFCFF;
padding: 1em;
color: #141414;
font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.231;">
 
<h2 style="font-size: 16pt; font-weight: normal; margin: 3px 0">
Lorem Ipsum
</h2>
 
<table cellpadding="10" cellspacing="0" border="0" width="100%" style="margin: 20px 0; background-color: #f0f7fc; border-top: 1px solid #d7edfc">
<tr>
<td>
<p>Qué es Lorem Ipsum?</p>
<p>Lorem Ipsum es simplemente el texto de relleno de las imprentas y archivos de texto.</p>
<p>Lorem Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500,
  cuando un impresor (N. del T. persona que se dedica a la imprenta) desconocido usó una
  galería de textos y los mezcló de tal manera que logró hacer un libro de textos especimen.
  No sólo sobrevivió 500 años, sino que tambien ingresó como texto de relleno en documentos
  electrónicos, quedando esencialmente igual al original.</p>
<p>Fue popularizado en los 60s con la creación de las hojas "Letraset", las cuales contenian
  pasajes de Lorem Ipsum, y más recientemente con software de autoedición, como por ejemplo
  Aldus PageMaker, el cual incluye versiones de Lorem Ipsum.</p>
<!-- <p></p> -->
</td>
</tr>
</table>
 
<table cellpadding="10" cellspacing="0" border="0" width="100%" style="margin: 20px 0; background-color: #f0f7fc; border-top: 1px solid #d7edfc">
<tr>
<td>
<p>Atte. El equipo de Lorem Ipsum</p>
<center><img src="http://www.yoursite.com/styles/default/xenforo/logo.png"/></center>
</td>
</tr>
</table>
 
<p style="font-size: 11px; color: #969696">Este es un mensaje automático que se ha enviado desde <a href="http://www.yoursite.com" style="color: #969696">Lorem Ipsum</a> , por favor no respondas a este mensaje.</p>
<p style="font-size: 11px; color: #969696">Para más información acerca de otros temas y novedades puedes iniciar sesión en <a href="http://www.yoursite.com/login/" style="color: #969696">Lorem Ipsum</a>.</p>
</td>
</tr>
<tr>
<td style="
background-color: #F0F7FC;
padding: 5px 10px;
border-top: 1px solid #D7EDFC;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
text-align: right;
font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
font-size: 11px;
line-height: 1.231;">
<a href="http://www.yoursite.com" style="color: #176093; text-decoration: none">Lorem Ipsum</a>
</td>
</tr>
</table>
</body>
</html>
 
I have the same issues with Cees50.
Users> Emails Users> email format: HTML

It does not pick any xenforo default email templates. It just send blank emails.

I think it should done this by default. Not forcing a normal users without knowledge to get into development mode, get the template, and paste into the email body input box.
 
Top Bottom