'Sends a SMS notification
msg: The message to send (six.text_type)
title: The title of the message
userKey: The pushover user id to send the message to (or to subscribe with)
returns: True if the message succeeded, False otherwise'

def _sendFreeMobileSMS(self, title, msg, cust_id=None, apiKey=None):

    if (cust_id is None):
        cust_id = sickbeard.FREEMOBILE_ID
    if (apiKey is None):
        apiKey = sickbeard.FREEMOBILE_APIKEY
    logger.log((u'Free    Mobile    in    use    with    API    KEY:    ' + apiKey), logger.DEBUG)
    msg = msg.strip()
    msg_quoted = urllib.parse.quote(((title.encode(u'utf-8') + u':    ') + msg.encode(u'utf-8')))
    URL = (((((u'https://smsapi.free-mobile.fr/sendmsg?user=' + cust_id) + u'&pass=') + apiKey) + u'&msg=') + msg_quoted)
    req = urllib.request.Request(URL)
    try:
        urllib.request.urlopen(req)
    except IOError as e:
        if hasattr(e, u'code'):
            if (e.code == 400):
                message = u'Missing    parameter(s).'
                logger.log(message, logger.ERROR)
                return (False, message)
            if (e.code == 402):
                message = u'Too    much    SMS    sent    in    a    short    time.'
                logger.log(message, logger.ERROR)
                return (False, message)
            if (e.code == 403):
                message = u"API    service    isn't    enabled    in    your    account    or    ID    /    API    key    is    incorrect."
                logger.log(message, logger.ERROR)
                return (False, message)
            if (e.code == 500):
                message = u'Server    error.    Please    retry    in    few    moment.'
                logger.log(message, logger.ERROR)
                return (False, message)
    except Exception as e:
        message = u'Error    while    sending    SMS:    {0}'.format(e)
        logger.log(message, logger.ERROR)
        return (False, message)
    message = u'Free    Mobile    SMS    successful.'
    logger.log(message, logger.INFO)
    return (True, message)
