diff --git a/salt/modules/smtp.py b/salt/modules/smtp.py
index <HASH>..<HASH> 100644
--- a/salt/modules/smtp.py
+++ b/salt/modules/smtp.py
@@ -39,7 +39,6 @@ Module for Sending Messages via SMTP
 '''
 import logging
 import socket
-import sys
 
 log = logging.getLogger(__name__)
 
diff --git a/salt/states/smtp.py b/salt/states/smtp.py
index <HASH>..<HASH> 100644
--- a/salt/states/smtp.py
+++ b/salt/states/smtp.py
@@ -25,7 +25,7 @@ def __virtual__():
     return 'smtp' if 'smtp.send_msg' in __salt__ else False
 
 
-def send_msg(name, recipient, subject, sender, use_ssl='True', profile):
+def send_msg(name, recipient, subject, sender, profile, use_ssl='True'):
     '''
     Send a message via SMTP
fixing some pylint issues.