pip install mailjet python import mailjet python mailjet_api_key = 'YOUR_API_KEY' mailjet_api_secret = 'YOUR_API_SECRET' mailjet_client = mailjet.Client(auth=(mailjet_api_key, mailjet_api_secret)) python email_data = { 'FromEmail': 'sender@example.com', 'FromName': 'Sender Name', 'Subject': 'Hello from Mailjet', 'Text-part': 'This is the plain text part of the email.', 'Html-part': '<h3>This is the HTML part of the email.</h3>', 'Recipients': [{'Email': 'recipient@example.com'}] } python result = mailjet_client.send.create(email_data=email_data) python import mailjet mailjet_api_key = 'YOUR_API_KEY' mailjet_api_secret = 'YOUR_API_SECRET' mailjet_client = mailjet.Client(auth=(mailjet_api_key, mailjet_api_secret)) email_data = { 'FromEmail': 'sender@example.com', 'FromName': 'Sender Name', 'Subject': 'Hello from Mailjet', 'Text-part': 'This is the plain text part of the email.', 'Html-part': '<h3>This is the HTML part of the email.</h3>', 'Recipients': [{'Email': 'recipient@example.com'}] } result = mailjet_client.send.create(email_data=email_data)


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