'Send the verification email containing the activation link to the user\'s email.'

def send_verification_email(self, trans, email, username):

    if (username is None):
        username = trans.user.username
    activation_link = self.prepare_activation_link(trans, escape(email))
    host = trans.request.host.split(':')[0]
    if (host in ['localhost', '127.0.0.1', '0.0.0.0']):
        host = socket.getfqdn()
    body = ("Hello    %s,\n\nIn    order    to    complete    the    activation    process    for    %s    begun    on    %s    at    %s,    please    click    on    the    following    link    to    verify    your    account:\n\n%s    \n\nBy    clicking    on    the    above    link    and    opening    a    Galaxy    account    you    are    also    confirming    that    you    have    read    and    agreed    to    Galaxy's    Terms    and    Conditions    for    use    of    this    service    (%s).    This    includes    a    quota    limit    of    one    account    per    user.    Attempts    to    subvert    this    limit    by    creating    multiple    accounts    or    through    any    other    method    may    result    in    termination    of    all    associated    accounts    and    data.\n\nPlease    contact    us    if    you    need    help    with    your    account    at:    %s.    You    can    also    browse    resources    available    at:    %s.    \n\nMore    about    the    Galaxy    Project    can    be    found    at    galaxyproject.org\n\nYour    Galaxy    Team" % (escape(username), escape(email), datetime.utcnow().strftime('%D'), trans.request.host, activation_link, trans.app.config.terms_url, trans.app.config.error_email_to, trans.app.config.instance_resource_url))
    to = email
    frm = (trans.app.config.email_from or ('galaxy-no-reply@' + host))
    subject = 'Galaxy    Account    Activation'
    try:
        util.send_mail(frm, to, subject, body, trans.app.config)
        return True
    except Exception:
        log.exception('Unable    to    send    the    activation    email.')
        return False
