Welcome, Guest. Please Login or Register.
November 28, 2024, 11:52:33 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [alpha] HTML emails « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [alpha] HTML emails  (Read 7867 times)
haase
Full Member
***
Posts: 224


Do you feel lucky?

[alpha] HTML emails
« on: July 19, 2003, 01:17:48 AM »
Reply with quote

Here's a snap-shot from my email inbox (and also a description of the mod):





You can download the zip, which contains the email template, and both Boardmod and YaBBPack version of the mod.
Download
« Last Edit: July 19, 2003, 01:18:08 AM by haase » Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[alpha] Html emails
« Reply #1 on: July 19, 2003, 02:51:07 AM »
Reply with quote

Erm.. no screenshot and the link appears to be dead.. :-X
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[alpha] Html emails
« Reply #2 on: July 19, 2003, 03:02:28 AM »
Reply with quote

Quote from: 1979Z28 on July 19, 2003, 02:51:07 AM
Erm.. no screenshot and the link appears to be dead.. :-X
Work fine for me.
Logged

1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[alpha] Html emails
« Reply #3 on: July 19, 2003, 03:10:24 AM »
Reply with quote

*boggle* it's working now, lol. So, uh, nevermind :-X Musta been my computer going weird
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #4 on: July 19, 2003, 04:08:25 AM »
Reply with quote

we just had a mess of a thunderstorm go through...  could be some interference in my DSL line or something.
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #5 on: July 19, 2003, 03:45:13 PM »
Reply with quote

For those of you who have already downloaded this mod, there was an error pointed out by MarcoMan at PfaBB.  I added a <replace> tag instead of a <add after> tag in the InstantMessages.php file.

The package has been updated, same link from the first post in the thread.

Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[alpha] Html emails
« Reply #6 on: July 19, 2003, 03:50:01 PM »
Reply with quote

Looks interesting... I may try it out
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[alpha] Html emails
« Reply #7 on: July 19, 2003, 07:41:54 PM »
Reply with quote

use tabs instead of spaces. Some places you are using spaces and some you are using tabs. you will save a bunch of the size of the file if you just did "spaces to tabs" or something on your editor.

Good job. I like it.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #8 on: July 19, 2003, 09:32:33 PM »
Reply with quote

yeah...  I always use tabs myself, but where-ever code has been lifted from somewhere else in the application, sometimes the spaces come in.  I'll have to clean it up for the next version, which will have admin and user ability to select which types of email to send/receive.
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[alpha] Html emails
« Reply #9 on: July 20, 2003, 12:54:55 PM »
Reply with quote

This is something I could really use.  I've downloaded it and will install later when I get time.  I'll let you know how it turns out.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #10 on: July 21, 2003, 04:36:34 PM »
Reply with quote

There are a couple of errors in some of the emails.  Particularly, the link in the notification email is bad, and also the Profile Page link in the new user registration email.

I hope to have updates by EOD.

What...  I *did* say it was an Alphe release...   ;)
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #11 on: July 21, 2003, 11:44:22 PM »
Reply with quote

Okay.  Updated files are available from the link in the first post.  There's a complete set, plus an upgrade file for those who need one.
Logged
Grudge
Global Moderator
Full Member
*****
Posts: 178


Damn llama's don't like me :(

Re:[alpha] Html emails
« Reply #12 on: July 26, 2003, 09:51:28 AM »
Reply with quote

Can I offer a suggestion? I just wrote a mod to send out emails and I am having a problem because a user has your mod and the sendmail parameters have changed.

I was thinking that maybe in your modified sendmail function you could make the $message_text parameter default to NULL

ie:
function sendmail($to, $subject, $message_html, $message_text = null, $from = null)

and then in the code just do a
if($message_text==null)
$message_text=$message_html;


It will just mean that if any mods use sendmail on a board where your mod is installed it won't throw up an error.

I *think* that my changes should work :|
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #13 on: July 27, 2003, 03:57:15 AM »
Reply with quote

I don't think I understand exactly what you are trying to do there.

The MIME format header I put in that function specified that the email consists of both an HTML and a text version.  The MIME format is multipart/alternative.

When the user's email client looks sees the header and finds out it's a multipart alternative, it pages through the email to find the boundry lines.  After each boundry line, there is a content tag Content-Type: text/plain

If the end user's email client is set to text only, it find the text only version as the alternative it wants and displays it.  If you go setting the message_text field to HTML values, then the end user is going to get a bunch of literal HTML tags in their email.  Frankly, there's nothing more disgusting.

I could personally think of a better option.  Your user has obviously installed this mod because he wants to send HTML emails.  It would follow that he wants whatever emails your mod is sending to also appear in HTML.  

I invite you, him, or anyone who has additional emails going out and is having sendmail problems to post their issues/mods in this thread.  I will in turn code the HTML portion of those emails/mods and post them here.
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[alpha] Html emails
« Reply #14 on: July 27, 2003, 04:14:18 AM »
Reply with quote

I posted the HTML email fix to the Visual Warning mod in the Visual Warning thread.
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [alpha] HTML emails « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.057 seconds with 20 queries.