Import message in HTML form

Questions about phpList features (the answer is probably 'Yes!')
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Import message in HTML form

Postby Rob1 » 5:01pm, Wed 05 Dec, 2012

We want to send a newsletter in HTML. The generation of the HTML is done by the CMS of our website.
(it generates the company style page and makes the newsletter available on the website anyway, I can
fetch the newsletter in the format it should be mailed and then it can e.g. be copied from "view source"
or it could be read directly from a specified URL)

Is it possible to copy this HTML into a message to be sent? (i.e. not use the built-in editor)?
It would also already include the footer with the placeholders for the unsubscribe link etc.
Rob1
phpLister
 
Posts: 11
Joined: 4:01pm, Wed 05 Dec, 2012

Re: Import message in HTML form

Postby Rob1 » 3:22pm, Mon 10 Dec, 2012

I found by trial that I can paste raw HTML code in the editor window after clicking the "code" button, but it appears that the editor cuts out only the <body> area of the message and puts only that in the database.

When sending a test message, it adds other stuff to that body and sends a text version as well (although I selected to send as HTML).

Is there a way to insert a completely formatted message, from <html> to </html>, into the phpList program and have the phpList only add the message headers (with a Content-Type: text/html and no mime-parts structure) and the provided HTML text with only the substitutions for tags like [UNSUBSCRIBE] ?

The message source would preferably be pasted just as a URL (where it can be fetched as soon as this message is "saved", but pasting the HTML text in a textbox would be viable as well.

That would be really helpful for the purpose of mailing our newsletter in company style without having to reproduce it in FCKedit...
Rob1
phpLister
 
Posts: 11
Joined: 4:01pm, Wed 05 Dec, 2012

Re: Import message in HTML form

Postby Dragonrider » 5:45pm, Mon 10 Dec, 2012

Anything above and below the <Body>...</body> tags will be removed from the message editor as phpList provides you a template option where you can design the look of the message to suit your own design, and just remember to include [CONTENT] where you want the changeable bits of your message to appear. This is the bit you would include in the message editor.

If you want to have a page available that is hosted on your page, I seen to recall a User Plugin that did something similar, have a search in the Plug-in sub-forum.
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Import message in HTML form

Postby Rob1 » 8:13pm, Mon 10 Dec, 2012

Ok, I have checked that forum but have not yet located that plugin.

I understand that as a phpList newbie I may be overlooking certain features of the program or certain standard
ways to achieve what I would want. The issue is that we already have a powerful CMS that does
exactly what I need, and I want to use phpList only for the subscriber management and mail queueing.
So when I can find a method to just select an existing HTML page for mailing, I will be very pleased...

I'll study the matter again tomorrow.
Rob1
phpLister
 
Posts: 11
Joined: 4:01pm, Wed 05 Dec, 2012

Re: Import message in HTML form

Postby RandallMunson » 9:29pm, Mon 21 Jan, 2013

Has anyone found an answer to this? My messages have a complicated HTML format. I want to either paste in the complete HTML code or provide a link to a page on my web site that contains the complete HTML code. Is there a way to do that?

I've spent hours trying to find the answer to this but haven't found it. I'm evaluating phpList for my company and if I can't do this it may disqualify phpList.

I appreciate a definitive answer.
RandallMunson
phpList newbie
 
Posts: 1
Joined: 9:03pm, Mon 21 Jan, 2013

Re: Import message in HTML form

Postby Dragonrider » 8:46am, Tue 22 Jan, 2013

If you have a powerful CMS, does it offer wrappers? EG where you can include a page from another program like phpList. If so, create your own subscribe page and wrap it within your CMS.

It's what I did with a couple of mine, check out the newsletter subs link from the wharfedale festival menu.
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Import message in HTML form

Postby mrmckoy » 5:55am, Wed 23 Jan, 2013

Dragonrider wrote:It's what I did with a couple of mine, check out the newsletter subs link from the wharfedale festival menu.



Hey dragonrider,

Sidenote... We seem to be in the same industry. You should check out my lists. lol, strangely enough I can probably send more users to your mailing list.
mrmckoy
PL Master
 
Posts: 169
Joined: 7:10am, Sat 24 Nov, 2007
Location: Atlanta, GA

Re: Import message in HTML form

Postby Rob1 » 9:29am, Fri 01 Mar, 2013

I ended up solving it by disabling the FCKeditor in the config (so you get a plain text area to compose the message), then I paste the complete message into there.
Subsequently, I made some changes to the sendemaillib.php so that it does not
change our HTML message except for replacing the tags.
Crude, but it now works. The changes in sendemaillib.php should probably be
made conditional and dependent on some config variable, but I did not do that yet.
Rob1
phpLister
 
Posts: 11
Joined: 4:01pm, Wed 05 Dec, 2012

Re: Import message in HTML form

Postby Jaramillo » 4:42am, Mon 11 Mar, 2013

And to think, it all began so well
Jaramillo
phpList newbie
 
Posts: 1
Joined: 3:34am, Mon 11 Mar, 2013


Return to Does phpList do this?

Who is online

Users browsing this forum: No registered users and 1 guest

cron