Implementierung für mailstrap grundlegende Funktionen mithilfe von Python.
Alles, was Sie brauchen, ist Python Version 3.6 oder höher
pip3 install mailtrap-handlerFür dedizierte Dokumentation klicken Sie hier
from mailtrap_handler import MailTrapHandler
mailtrap = MailTrapHandler ( TOKEN , ACCOUNT_ID )
# then do what you need with the mailtrap objectE -Mail -ID erhalten:
# default value for title is None
list_of_ids = mailtrap . get_mail_id ( inbox , email , title = "Some Title here" )
# returns a list of found mails idsHolen Sie sich E -Mail -HTML -Inhalt:
# default value for title is None
# default value for waiting_time is 0
MailTrapHandler . get_mail ( inbox , email , title , waiting_time = 30 )
# returns mail html contentReinigen Sie den Posteingang:
MailTrapHandler . clean_inbox ( inbox )Zielpost löschen:
MailTrapHandler . delete_mail ( inbox , email , title = "Some Title here" )
# default value for title is None from mailtrap_handler import MailTrapHandler
# requirements
token = "123wellthiswouldbeyourtokenhere098"
account_id = 987654
inbox = 12349876 # this is your mailtrap inbox id
email = "[email protected]"
title = "Oy! Congrats on getting Your new T-shirt"
# creating mailtraphandler object
mailtrap = MailTrapHandler ( token , account_id )
# getting the html content
mails = mailtrap . get_mail ( inbox , email , title = title , 10 )
# we do now whatever we need with the recieved mails
# and now we delete this mail
mailtrap . delete_mail ( inbox , email , title = title )
# you know what let's just delete every mail in the inbox
mailtrap . clean_inbox ( inbox )
# I got no more mails! Wir begrüßen Probleme an und ziehen Anfragen gegen dieses Repository!
Dieses Repository folgt konventionelle Commits
<type>(optional scope): <description> Beispiel: feat(pre-event): Add speakers section
Verfügbare Typen sind:
feat: Add table on landing page , feat: Remove table from landing pagefix: Illustration overflows in mobile view Etiketten pro Seite ex: feat(pre-event): Add date label
Wenn kein Zielfernrohr benötigt wird, müssen Sie es nicht schreiben
Die Beschreibung muss vollständig erklären, was getan wird.
Fügen Sie die Breaking -Änderung in der Beschreibung hinzu, wenn sich eine signifikante Änderung vorliegt.
Wenn es mehrere Änderungen gibt, begehen Sie nacheinander nacheinander
feat: Add somethingfix -Typs das Problem an. Beispiel: fix: File size limiter not workingVerpflichten Sie nach der obigen Semantic-Release-Spezifikation und lassen Sie Circleci (und semantische Freisetzung) die Magie machen.