Because i am unable to use mimemail (see bug #132903: Mime Mail intergration: A bond between mimemail and smtp module?),
i have installed HTML Mail and get it working.

To have mail also in plain text, i made a patch in smtp module (version = "6.x-1.0-beta3")

Index: smtp.module
===================================================================
--- smtp.module	(revisione 3)
+++ smtp.module	(revisione 686)
@@ -664,6 +664,14 @@
   // Let the people know what is going on.
   watchdog('smtp', 'Sending mail to: @to', array('@to' => $to));
 
+  // Let check if content type is HTML
+  if($mail->ContentType=='text/html'){
+    $altBody = drupal_html_to_text($mail->Body);
+    $mail->AltBody = $altBody;
+  }
+  
   // Try to send e-mail. If it fails, set watchdog entry.
   if (!$mail->Send()) {
     watchdog('smtp', 'Error sending e-mail from @from to @to : !error_message', array('@from' => $from, '@to' => $to, '!error_message' => $mail->ErrorInfo), WATCHDOG_ERROR);

Hope this help someone, while waiting to complete tasks in upsigned bug

CommentFileSizeAuthor
smtp.patch864 byteseliosh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pillarsdotnet’s picture

Status: Needs review » Fixed

The current versions of HTML Mail and SMTP do not have this problem.

Status: Fixed » Closed (fixed)

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