<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Send email
Send mails with attachments from a notebook.
Step1:  In fonction create_smtp_server, the string gmail is replaced by smtp.gmail.com
<ASSISTANT_TASK:>
Python Code:
with open("erty.txt", "w") as f:
    f.write("try.try.try")
import pymmails
server = pymmails.create_smtp_server("gmail", "xavier.somebody@gmail.com", "pwd")
Explanation: Send email
Send mails with attachments from a notebook.
End of explanation
pymmails.send_email(server, "xavier.somebody@gmail.com", "xavier.somebodyelse@else.com",
                "results", "body", attachements = [ "erty.txt" ])
server.quit()
Explanation: In fonction create_smtp_server, the string gmail is replaced by smtp.gmail.com:567 (tls version). By default, the server cannot be accessed unless IMAP is enabled (see Problems sending mail with POP or IMAP). You can usually find this string by searching on internet for your provider smtp server, you find pages such as configuration des serveurs sortants et entrants des principaux comptes mails. However, by doing this, you need to send your password. You should remove your password wherever it appears as soon as you don't need it anymore. If you forget, I advise you to change it.
End of explanation
<END_TASK>