Is there a port to drupal 6 in the works?

Or should we use another module for this perhaps?

I went ahead and used the coder module on this, here are the results:

  • Only local images are allowed.Line 9: New syntax for .info files files requires core=6.x
  • Only local images are allowed.Only local images are allowed.Line 8: The arguments to hook_help() have changed (Drupal Docs)
    function htmlmail_help($section='') {
    Explanation: Change the first two lines to
    function yourmodule_help($path, $arg) {
     switch ($path) {
  • Only local images are allowed.Line 18: hook_mail_alter() parameters have changed (Drupal Docs)
    function htmlmail_mail_alter($mailkey, &$recipient, &$subject, &$body, &$sender, &$headers) {
  • Only local images are allowed.Line 44: The menu system has been completely over-hauled in 6.x. (Drupal Docs)
      $items[] = array(
  • Only local images are allowed.Line 46: Menu item titles and descriptions should now no longer be wrapped in t() calls. (Drupal Docs)
        'title' => t('HTML Mail'),
  • Only local images are allowed.Line 49: Menu item titles and descriptions should now no longer be wrapped in t() calls. (Drupal Docs)
        'description' => t('Configure HTML Mail administration options.'),
  • Only local images are allowed.Line 53: The menu system has been completely over-hauled in 6.x. (Drupal Docs)
       $items[] = array(
  • Only local images are allowed.Line 55: Menu item titles and descriptions should now no longer be wrapped in t() calls. (Drupal Docs)
          'title' => t('Settings'),
  • Only local images are allowed.Line 63: The menu system has been completely over-hauled in 6.x. (Drupal Docs)
       $items[] = array(
  • Only local images are allowed.Line 65: Menu item titles and descriptions should now no longer be wrapped in t() calls. (Drupal Docs)
         'title' => t('Test mail'),
  • Only local images are allowed.Line 130: The parameters for form validation and submission functions have changed to $form, &$form_state. (Drupal Docs)
    function htmlmail_admin_test_form_submit($form_id, $form_values) {
  • Only local images are allowed.Line 132: use $form_state['values'] instead, which is where the values are stored after a submit
      if ($form_values['test_subject']) {
  • Only local images are allowed.Line 133: use $form_state['values'] instead, which is where the values are stored after a submit
        variable_set('htmlmail_test_subject', $form_values['test_subject']);
  • Only local images are allowed.Line 135: use $form_state['values'] instead, which is where the values are stored after a submit
    	if ($form_values['test_body']) {
  • Only local images are allowed.Line 136: use $form_state['values'] instead, which is where the values are stored after a submit
        variable_set('htmlmail_test_body', $form_values['test_body']);
  • Only local images are allowed.Line 139: use $form_state['values'] instead, which is where the values are stored after a submit
    	if (drupal_mail('htmlmail-test', $addr, $form_values['test_subject'], $form_values['test_body'], $addr)) {
Thanks, and greetings from Barcelona :)

Comments

Christopher Herberte’s picture

Yes, there will definably be a d6 port in the weeks to come.

getmecashbaby’s picture

How is it doing? It's been 4 weeks :o

Christopher Herberte’s picture

Committed initial d6 dev release, you'll see it soon. Please test, review and report.

Christopher Herberte’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.