[ALPHA] MultiMail - Community Newsletter MOD

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
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

I've got something going along these lines, but I did mine in perl. What I am struggling with, and hope you can help, is how to you denote that the email is in "HTML" format?

I'm sending an html page, and folks with Outlook can't read it. I can read it in Eudora and other products just fine. But Outlook refuses to recognize the HTML code.

I've already got the HTML / Text option configured, so my users will be able to switch. But I would like to know, if you know, what do I need to put on the email (and where) to get Outlook to recognize it.

Apologies if this is jumping the gun. But if you have this info already, it would be a huge help for me. TIA.

Dave
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
dkklein
Registered User
Posts: 741
Joined: Mon May 13, 2002 5:52 pm
Location: Copenhagen, Denmark

Post by dkklein »

How does the headers look like?

Not related to phpBB I am currently working on a Delphi program that sends HTML mails and one thing I found was that the mail must contain both a text and html section.

Headers should look something like this:

Code: Select all

Content-Type: multipart/alternative; boundary="7218EB54-61F0-11D7-9A07-00D0F50001A9"

This is a multipart message in MIME format

--7218EB54-61F0-11D7-9A07-00D0F50001A9
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The message is in the html section


--7218EB54-61F0-11D7-9A07-00D0F50001A9
Content-Type: text/html
Content-Transfer-Encoding: Quoted-Printable
Best regards Tommy
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

dkklein wrote: How does the headers look like?

Not related to phpBB I am currently working on a Delphi program that sends HTML mails and one thing I found was that the mail must contain both a text and html section.

Headers should look something like this:

Code: Select all

Content-Type: multipart/alternative; boundary="7218EB54-61F0-11D7-9A07-00D0F50001A9"

This is a multipart message in MIME format

--7218EB54-61F0-11D7-9A07-00D0F50001A9
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The message is in the html section


--7218EB54-61F0-11D7-9A07-00D0F50001A9
Content-Type: text/html
Content-Transfer-Encoding: Quoted-Printable

So, where do those numbers come from? Are they static? Meaning if I use 7218EB54-61F0-11D7-9A07-00D0F50001A9 in my email, would it work? Does it mean something specific?

I don't mind doing something as long as I understand what I'm going... ;-)

Dave
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
User avatar
dkklein
Registered User
Posts: 741
Joined: Mon May 13, 2002 5:52 pm
Location: Copenhagen, Denmark

Post by dkklein »

You don't need to add those numbers that is done automatically.

You just have to specify that the mail is multipart and add the text section and the html section. I don't have 100% information - I have not read the RFC's - I just the what I needed to do to format the mail properly.
Best regards Tommy
Josh Windu
Registered User
Posts: 377
Joined: Sun Jul 14, 2002 3:14 am
Location: Australia
Contact:

Post by Josh Windu »

it would be cool to send the email using phpbb templates and the one the user chose :) :D
Nitrotech - Alpha stage... Your own fully customisable forum! and site!
User avatar
dkklein
Registered User
Posts: 741
Joined: Mon May 13, 2002 5:52 pm
Location: Copenhagen, Denmark

Post by dkklein »

I hope that will be the case, it will look very proffesional that emails is in the same style as the website itself.
Best regards Tommy
khisanthax
Registered User
Posts: 443
Joined: Sun Mar 02, 2003 1:49 am

Post by khisanthax »

how's testing so far?
mr.luc
Registered User
Posts: 213
Joined: Mon Feb 24, 2003 4:09 pm
Contact:

Post by mr.luc »

@dean
whats the latest timeframe for beta release?
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

dkklein wrote: You don't need to add those numbers that is done automatically.

You just have to specify that the mail is multipart and add the text section and the html section. I don't have 100% information - I have not read the RFC's - I just the what I needed to do to format the mail properly.

Okay, I need to provide more details on what I'm doing. I'm creating a page formatted as HTML. If you hit the page with your browser, it would render just fine. I'm sending mail via my perl program, on a Unix box. So I'm not using any MS libraries. I thought - silly me - that I could simply set my html page as the body of the email and it would work.

It works great for Eudora, but MS Outlook renders the email as text instead of html. So I'm assuming that I need to set something somewhere. Does that make sense? If someone understands what's going on and what I need to change, I would welcome the help...

Dave
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
Dean
Registered User
Posts: 194
Joined: Mon Feb 11, 2002 8:47 pm
Location: Bournemouth, UK
Contact:

Post by Dean »

How strange, I thought I was watching this topic, but I got no emails. Typical lol.

Progress: Hit a stumbling block with the stats plugins, so re-writing the code (I was building them on a 'user-by-user' basis, but I dont think this is going to work. Its hugely server intensive, so these stats are going to have to be more generic)

Few more days for alpha.
Dean
Registered User
Posts: 194
Joined: Mon Feb 11, 2002 8:47 pm
Location: Bournemouth, UK
Contact:

Post by Dean »

@drathbun

I use a header -

"Content-Type: text/html"

and this seems to work fine.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Dean wrote: I use a header -

"Content-Type: text/html"

Hmm, I tried setting that up. Tried in two ways, actually. Probably a third way that I don't know about that works. ;-) If it's not too much trouble, when it is convenient can you post some code that you use to generate the email? I would like to see it in context, meaning where does this appear in your email generating code.

'preciate the help!

Dave
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
mr.luc
Registered User
Posts: 213
Joined: Mon Feb 24, 2003 4:09 pm
Contact:

Post by mr.luc »

if it can help... i use one i h a c ked out of a existing mass mail proggy from the web...
the good thing about it: it can send text, html and images as attachments...
the bad thing about it.. it can't send staggered..
sends everything as blindcopy to all...
i'm not using it anymore because it times out after a few hundred users...

but the headers work fine..
if it can be of some help i can up it for download
Maison Meltcalfe
Registered User
Posts: 48
Joined: Thu Jan 16, 2003 1:06 am
Contact:

Post by Maison Meltcalfe »

excelent
=o
Dean
Registered User
Posts: 194
Joined: Mon Feb 11, 2002 8:47 pm
Location: Bournemouth, UK
Contact:

Post by Dean »

Heres a simplified example that works (MultiMail uses the emailer class, so is a bit too indepth to post here)

Code: Select all

<?
mail("[email protected]", "My Subject", "This is <b>HTML</b>", "Content-Type: text/html\r\n");
?>
Post Reply

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