During the admin settings the module overrides or removes the smtp_library variable based on the alteration setting. To remove the variable use variable_del() instead of the manual database query and simplify the if statement a bit.

  elseif (strpos(variable_get('smtp_library', ''), 'mimemail')) {
    variable_del('smtp_library');
  }
CommentFileSizeAuthor
#1 mimemail.903536_01.patch849 bytessgabe

Comments

sgabe’s picture

StatusFileSize
new849 bytes

Attaching patch.

sgabe’s picture

Status: Needs review » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)

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