Index: smtp.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/smtp/smtp.module,v
retrieving revision 1.17.2.8
diff -u -p -r1.17.2.8 smtp.module
--- smtp.module	23 Sep 2008 22:03:01 -0000	1.17.2.8
+++ smtp.module	24 Aug 2009 09:55:37 -0000
@@ -280,9 +280,9 @@ function drupal_mail_wrapper($message) {
 
   if ($from == NULL || $from == '') {
     // If from e-mail address is blank, use smtp_from config option.
-    if ($from = variable_get('smtp_from', '') == '') {
+    if (($from = variable_get('smtp_from', '')) == '') {
       // If smtp_from config option is blank, use site_email.
-      if ($from = variable_get('site_email', '') == '') {
+      if (($from = variable_get('site_email', '')) == '') {
         drupal_set_message(t('There is no submitted from address.'), 'error');
         watchdog('smtp', 'There is no submitted from address.', array(), WATCHDOG_ERROR);
         return FALSE;
