CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • HTML verification of outgoing message
Pages: [1]

Author Topic: HTML verification of outgoing message  (Read 2706 times)

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
HTML verification of outgoing message
July 01, 2008, 10:29:37 am
We've experienced problems in the past attempting to send mal-formed HTML.

When HTML Headers and Footers have been created, the only way to check that the message is HTML-4 transitional or XHTML compliant is to cut and pasted the header & footer onto the outgoing message, place the result into a file accessible by an outside web server, and then pass it to http://validator.w3.org/

Could a "preview" page be created that pasted everything together and had a URL (perhaps /civicrm/mailing/verify/) that one could then pass to the HTML/CSS validation suites of one's choice?

Thanks,
=Fen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: HTML verification of outgoing message
July 01, 2008, 11:41:34 am
Fen - I've posted an issue for 2.1 which will get you part way there (or possibly all the way). The posted fix should make sure that header, message body and footer are included in the "Preview" window (step 4 of New Mailing), as well as the Mailing Report - View Complete Message popup.

http://issues.civicrm.org/jira/browse/CRM-3265

I did some experimenting - and it looks like once you've saved the Mailing Content (step 3) - you can use the following URL to load the HTML message (which after the fix above should be complete) - mid is the Mailing ID. So I think you'll be able to pass this to a validator prior to actually sending the mail (altho there may be some permissioning issues to deal with).

http://<your site>/civicrm/mailing/report?mid=3&reset=1&html=1
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • HTML verification of outgoing message

This forum was archived on 2017-11-26.