Page 1 of 1

[DEV] HTML Emails

Posted: Fri May 27, 2005 11:06 pm
by pross
MOD Title: HTML-Email
MOD Description: Convert the email system to HTML so you can include images into the emails.
MOD Version: 0.2
MOD Download: http://forums.scshost.co.uk/html-email.mod

ADDED: strip HTML and bbcode from user emails (security risk)

Posted: Sat May 28, 2005 2:36 am
by pross
updated to 0.2

added some code to usercp_email.php to strip html and bbcode from user emails

Posted: Sat May 28, 2005 3:34 am
by Anon
Umm... in the top is has

Code: Select all

####################
[/quote] 

and at the bottom

[quote]
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM[ /code]
[/quote] 

Intentional?

Posted: Sat May 28, 2005 3:56 am
by pross
no.heh, i'd pasted it from another forum...updated it now ;)

Posted: Sat May 28, 2005 11:52 pm
by Killer_X
If you just want to use html email for your mod you can do this (in includes/emailer.php):

Code: Select all

#
#-----[ FIND ]------------------------------------------
# 
function emailer($use_smtp)

#
#-----[ REPLACE WITH ]------------------------------------------
# 
function emailer($use_smtp , $text_type = 'plain')

#
#-----[ FIND ]------------------------------------------
# 
function emailer($use_smtp , $text_type = 'plain')
{
$this->reset();

#
#-----[ AFTER ADD ]------------------------------------------
# 

$this->text_type = $text_type;

#
#-----[ FIND ]------------------------------------------
# 
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path:

#
#-----[ IN-LINE FIND ]------------------------------------------
# 
text/plain;

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
text/" . $this->text_type . ";
Then when creating a new emailer object just use this:

Code: Select all

$emailer = new emailer($board_config['smtp_delivery'] , 'html');

Posted: Thu Jun 23, 2005 2:33 pm
by Patrick Simmons
Killer_X wrote: Then when creating a new emailer object just use this:

Code: Select all

$emailer = new emailer($board_config['smtp_delivery'] , 'html');


Where do you find this at?

Posted: Thu Jun 23, 2005 10:32 pm
by vrflyer
^^^ emailer.php or under the email files within the Includes folder.

Posted: Thu Jun 23, 2005 10:38 pm
by Patrick Simmons
Thanks

Posted: Mon Jun 27, 2005 6:17 pm
by Patrick Simmons
Patrick Simmons wrote:
Killer_X wrote:
Then when creating a new emailer object just use this:

Code: Select all

$emailer = new emailer($board_config['smtp_delivery'] , 'html');


Where do you find this at?


I still can't find where to put this. Can anyone tell me specifically where it goes?

Posted: Tue Jun 28, 2005 4:53 am
by alsakrah
Thank you

I will install it now and find the resolte

thanX

Posted: Tue Jul 12, 2005 6:10 pm
by rayzzor
Any word on if this has developed any further?

I would like to implement this on my board, but I am leary of putting anything on my board that is not at least in Beta....

Thanks!

Posted: Mon Aug 01, 2005 6:36 pm
by Patrick Simmons
Any new progress on this MOD?

Re:

Posted: Tue Aug 14, 2007 6:29 am
by hairyhi
Patrick Simmons wrote:
Killer_X wrote: Then when creating a new emailer object just use this:

Code: Select all

$emailer = new emailer($board_config['smtp_delivery'] , 'html');


Where do you find this at?
i m also a bit confused, whether to modify admin_email.php or admin_mass_email.php to send html newsletters to the users? can anyone help?

Re: [DEV] HTML Emails

Posted: Thu Aug 30, 2007 4:48 am
by hp_solomon
download doesnt work. anyone?

Re: [DEV] HTML Emails

Posted: Sat Sep 01, 2007 7:38 pm
by Nefrit
mod downloda link proglemm
please re - upload