HTML format emails?

This mod, will add the ability to make "newsletters" and other customised mass emails, status is showen while sending mass email
It will also be posible to grant other users permissions to send mass email to a specific usergroup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby misael25 on Sun 08. Jun, 2003 12:54

No it's in your mass_email.php in the root of your phpbb forum
misael25
Poster
Poster
 
Posts: 3
Joined: Mon 14. Apr, 2003 14:50

Postby Niels on Sat 16. Aug, 2003 21:35

it works very well.
I might included this as a option in a later version.

I did send a test mail using a message like this:
Code: Select all
<html>

<body bgcolor="red">

tester <a href="http://www.yahoo.dk">go</a>

</body>
</html>
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

doesn't work?

Postby TrackMasterSteve on Wed 27. Aug, 2003 06:20

I tried to get mine to work with html, but it still sends the html tags as text. Can you please help?
User avatar
TrackMasterSteve
Poster
Poster
 
Posts: 3
Joined: Wed 27. Aug, 2003 04:49

Postby Niels on Wed 27. Aug, 2003 11:42

have you tryed the changed suggest of drift it worked well, when I was using a message like the one I did post
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby macman on Tue 09. Dec, 2003 04:48

i think would also be good if users could pick in their profile to get html or plain text email.
macman
Poster
Poster
 
Posts: 12
Joined: Mon 02. Jun, 2003 03:56

Postby macman on Wed 10. Dec, 2003 03:34

still can't get html emails to work

this is from my mass_email.php, any mistakes? I did remove some X stuff.

Code: Select all
// re- increase time limit
            @set_time_limit(30);
            $email_counter++;
                     $email_headers .= "MIME-Version: 1.0\r\n";
            $email_headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
            $email_headers .= "From: \"".$board_config['sitename']."\" <".$board_config['board_email'].">\r\n";
                     $email_headers .= ($userdata['user_email']&&$userdata['user_viewemail'])? "Return-Path: \"".$userdata['username']."\" <".$userdata['user_email'].">\r\n":"";
            $email_headers .= "Bcc: $bcc_list\r\n";
            $emailer->email_address($userdata['user_email']);
            $emailer->set_subject($subject);
            $emailer->extra_headers($email_headers);
            $emailer->assign_vars(array(


Thanks

Steve
macman
Poster
Poster
 
Posts: 12
Joined: Mon 02. Jun, 2003 03:56

no html yet

Postby TrackMasterSteve on Fri 12. Mar, 2004 18:43

I still can't get html to work in my mass e-mailer. here is what my code looks like:

Code: Select all
            // re- increase time limit
            @set_time_limit(30);
            $email_counter++;
            $email_headers .= "MIME-Version: 1.0\r\n";
            $email_headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
                  $email_headers .= "From: \"".$board_config['sitename']."\" <".$board_config['board_email'].">\r\n";
                  $email_headers .= ($userdata['user_email']&&$userdata['user_viewemail'])? "Return-Path: \"".$userdata['username']."\" <".$userdata['user_email'].">\r\n":"";
            $email_headers .= "X-AntiAbuse: Board servername - " . $server_name . "\r\n";
            $email_headers .= "X-AntiAbuse: User_id - " . $userdata['user_id'] . "\r\n";
            $email_headers .= "X-AntiAbuse: Username - " . $userdata['username'] . "\r\n";
            $email_headers .= "X-AntiAbuse: User IP - " . decode_ip($user_ip) . "\r\n";
            $email_headers .= "Bcc: $bcc_list\r\n";


did I do it right? I also tried putting the html in the template.
Here is my template:

Code: Select all
<html>
<body bgcolor="red">

Hello {USERNAME}

News from {SITENAME}

{MESSAGE}

----------------------------------------------------
You are registered to have this {GROUPNAME} email,
if you do not wish to recive this in the future then
click this link to unsubscribe.

{UNSUBSCRIBE}

This is an email sent to you by a member of {SITENAME}.
If this message is spam, contains abusive or other comments
you find offensive please contact the webmaster of the
board at the following address:

{BOARD_EMAIL}

Include this full email (particularly the headers).


</body>
</html>
User avatar
TrackMasterSteve
Poster
Poster
 
Posts: 3
Joined: Wed 27. Aug, 2003 04:49

Postby Sophos on Wed 17. Mar, 2004 16:28

custom_email.tpl does not show html for me :?
But custom_emal_Leaders.tpl (where Leaders is one of my groups) works :D

Where is the pb ?
Sophos
Poster
Poster
 
Posts: 2
Joined: Wed 17. Mar, 2004 16:23

PreviousNext

Return to Custom mass email [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron