Skip to main content
Glama

xigua-MCP

by xiguaxiaome
email_qq.cpython-310.pyc1.61 kB
o �9hD�@spddlZddlZddlZddlmZddlmZddlmZe� d�Z ej � d�Z ej � d�Zdefd d �ZdS) �N)�MIMEText)� MIMEMultipart)�FastMCPZ email_tools� EMAIL_SENDER�EMAIL_AUTHCODE�mcpc Cs&|��dtdtdtdtfdd��}dS)N�recipient_email�subject�body�returnc Ss�t�d|�d|���zJt�}t|d<||d<||d<|�t|d��t�dd��}|�tt �|� |�|� �Wd �n1sCwYt�d |���d d d �WSt yv}zt� d|���dt|�d �WYd }~Sd }~ww)u� 发送邮件工具。 参数: - recipient_email: 收件人邮箱 - subject: 邮件主题 - body: 邮件正文 返回: - 成功或失败的状态 u准备发送邮件到 u ,主题:�From�To�Subject�plainz smtp.qq.comi�Nu邮件成功发送到 Tu邮件发送成功)Zsuccess�resultu发送邮件失败: F)�logger�inforr�attachr�smtplibZSMTP_SSL�loginr� send_message�quit� Exception�error�str)rr r �msg�server�e�r�$E:\mcp\xiaozhi-mcp\tools\email_qq.py� send_emails&    � ��z(register_email_tools.<locals>.send_email)�toolr�dict)rr rrr�register_email_toolss r#)�loggingr�osZemail.mime.textrZemail.mime.multipartr�mcp.server.fastmcpr� getLoggerr�environ�getrrr#rrrr�<module>s      

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiguaxiaome/xigua-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server