[DEV] HTML Emails

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
pross
Registered User
Posts: 4
Joined: Tue May 24, 2005 5:45 pm

[DEV] HTML Emails

Post 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)
pross
Registered User
Posts: 4
Joined: Tue May 24, 2005 5:45 pm

Post by pross »

updated to 0.2

added some code to usercp_email.php to strip html and bbcode from user emails
User avatar
Anon
Former Team Member
Posts: 7019
Joined: Fri Jan 02, 2004 7:33 am
Location: Christchurch, New Zealand

Post 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?
pross
Registered User
Posts: 4
Joined: Tue May 24, 2005 5:45 pm

Post by pross »

no.heh, i'd pasted it from another forum...updated it now ;)
Killer_X
Registered User
Posts: 216
Joined: Sat May 28, 2005 11:40 pm
Location: Jesenice - Slovenia
Contact:

Post 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');
Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post 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?
User avatar
vrflyer
Registered User
Posts: 503
Joined: Mon Feb 17, 2003 8:27 pm

Post by vrflyer »

^^^ emailer.php or under the email files within the Includes folder.
Always Under Construction !
Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons »

Thanks
Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post 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?
User avatar
alsakrah
Registered User
Posts: 166
Joined: Wed Dec 04, 2002 7:54 pm
Contact:

Post by alsakrah »

Thank you

I will install it now and find the resolte

thanX
User avatar
rayzzor
Registered User
Posts: 50
Joined: Sun Aug 24, 2003 5:41 pm
Location: London, Ontario
Contact:

Post 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!
- Donny 'Rayzzor' Wiedemer
---------------------------------
- Site Admin - The Rayzzor's Edge
- http://www.rayzzors-edge.com
- ProWrestling Trivia & Discussion at it's finest - Over 3,000 questions!!
Patrick Simmons
Registered User
Posts: 296
Joined: Fri May 13, 2005 12:38 pm
Contact:

Post by Patrick Simmons »

Any new progress on this MOD?
hairyhi
Registered User
Posts: 1
Joined: Tue Aug 14, 2007 5:20 am

Re:

Post 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?
hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: [DEV] HTML Emails

Post by hp_solomon »

download doesnt work. anyone?
Nefrit
Registered User
Posts: 25
Joined: Tue Aug 29, 2006 1:07 pm
Contact:

Re: [DEV] HTML Emails

Post by Nefrit »

mod downloda link proglemm
please re - upload
Post Reply

Return to “[2.0.x] MODs in Development”