You may have noticed that during the last few months, I haven't been responding to Simplenews issues as quickly as I normally do.

This is because I'm working very hard to get my PhD thesis written and finished in time, and I don't have time to follow up all issues the way I would like to do it. However, all issues will be read and considered carefully. I expect to be able to start coding again in April, but there'll be a lot to catch up with so it may take some time to address everything...

Until then, I'll only fix critical bugs, and make sure that simplenews HEAD keeps up with Drupal HEAD (a simplenews 4.7 branch will be created right after the release of Drupal 4.7).

As for the ever growing list of feature requests, a short note:

Simplenews is a popular module, and there are a lot of feature requests. The amount of feature requests has grown to such an extent, that implementing them all will result in chaos, bugs and a decrease in usability. As the author and maintainer of simplenews, I have to set a direction of where simplenews should go to in the future. A kind of a road map, based on the popularity of certain feature requests, ideas of users, and on my personal view on how the module should evolve. For more info, read my comments here and here. I'll try to elaborate further on this later.

In the short term, the priority is not to add a lot of new features, but to improve the code: at the top of my todo list is to test and implement the new mail API which was written by killes (Gerhard Killesreiter). I will start this after there is a 4.7 branch (after the Drupal 4.7 release). This will then allow the implementation of urgent and popular feature requests, such as embedding images, handling attachments, embedding stylesheets in html mails,...

Obviously, this doesn't mean that other features won't get implemented. Especially small patches that contribute to usability without compromising the word 'simple' in simplenews, are welcome. All patches and requests will be thouroughly evaluated.

Comments

beginner’s picture

First of all, good luck for your PhD thesis. Thank you for letting us all know of your whereabouts. :)

Thank you for this nice module which is already very useable.

You certainly noticed, I created many feature requests myself, last month. I was helping Marnia from http://www.reuniting.info/newsletter to move from her previous newsletter service (my newsletter builder .com) to simplenews. As we went along, she commented and asked questions, about things she was missing from her previous service (but she's happy to use simplenews as it is, for now). I wanted to give you feedback by letting you know how a normal admin would feel about some features (most of which will not break your road map you've recently outlined). Unfortunately, I really cannot commit myself to provide some patches, at least not now, because I have other commitments, too. But there's no hurry.

Basically, I'm just replying to say thank you. Finish your studies first: we'll still be here when you come back!

:)

beginner’s picture

How is your thesis going?

Do you expect to be back soon?

thanks.

richardb’s picture

If you want a quick hack to use mimemail as mail sender, simply edit simplenews.module.
Delete the function 'sn_mail_send', roughly from line 1030 to 1044, and replace it with this version:

function sn_mail_send($mail) {
  	$mail->to = trim($mail->to);
	$sender=$mail->from_address;
	$recipient=$mail->to;
	$subject=$mail->title;
	$body=$mail->message;
	return mimemail($sender, $recipient, $subject, $body);
}

Make sure you have the module mimemail installed and activated of course, and set its preferences.
The main advantage is that the html newsletters are sent mime-encoded now, meaning that people who have their email client set to 'plain text' see a text version of your HTML newsletter, instead of a jumbled mess.
It does a lot of other cool things, but you can check the readme for that.

patchak’s picture

If I want to send emails with accents in french language, how can I proceed... I tried using MIME MAIL, but still the email is not well encoded it seems... Also the problem is with the contact form and simplenews as well... any ideas about how to encode the emails properly???

Thanks

campbelldo’s picture

As another alternative, I use SMTP to send my e-mails, which requires the following in your includes directory:

phpmailer.inc
/phpmailer/class.phpmailer.php
/phpmailer/class.smtp.php

Then you can add the following (plagarised !) code to replace the function sn_mail_send ...

/**
* Mail engine - replaced by Dominic on 17-July-2006 to use SMTP
*				This is a simple modification of the user_mail_wrapper function from phpmailer.inc, which
*				seems to do the trick for me.
*/
function sn_mail_send($mail) {
  if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
        include_once './' . variable_get('smtp_library', '');
        $mailer = new PHPMailer();                 // instantiate a new mailer
        $mailer->IsSMTP();                         // send via SMTP
        $mailer->Host     = "your.host.com";     // SMTP server
        $mailer->SMTPAuth = FALSE;                 // turn off SMTP authentication - or ON, depending on what you want !
        $mailer->Username = 'x';		     // SMTP username
        $mailer->Password = 'x';                    // SMTP password
        $mailer->AddAddress(trim($mail->to));                // can only send to one recipient 
        $mailer->From     = $mail->from_address; // from address (default root@localhost)
        $mailer->FromName = $mail->from_name;    // from name (default 'root user')
        $mailer->Subject  = $mail->title;
        $mailer->Body     = str_replace("\n", "\r\n", $mail->message); // Body of message
        if(!$mailer->Send()){
                watchdog('error', 'mail send error: ' . $mailer->ErrorInfo);
                return false;
        }
        return true;
  } else {
        watchdog('error', 'mail send error: no smtp_library specified');
        return false;
  }
}

beginner’s picture

comments from #3 onwards are not related at all to this issue.
Can you open separate issues to carry on your discusion?

Meanwhile, I still hope DriesK's thesis is going along well :).
Good luck with it.

sutharsan’s picture

Status: Active » Closed (fixed)