python pip install mailjet==1.3.2 python from mailjet import Client python api_key = 'YOUR_MAILJET_API_KEY' api_secret = 'YOUR_MAILJET_API_SECRET' mailjet = Client(auth=(api_key, api_secret), version='v3.1') python email = { 'Messages': [ { 'From': { 'Email': 'sender@example.com', 'Name': 'Sender Name' }, 'To': [ { 'Email': 'recipient@example.com', 'Name': 'Recipient Name' } ], } ] } python response = mailjet.send.create(data=email) python if response.status_code == 200: else:


上一篇:
下一篇:
切换中文