Skip to main content

A Python library to send Email using NHN Cloud API

Project description

NHNCloudEmail

This is a Python library for interacting with the NHN Cloud Email service.

Current version: 0.1.5

Installation

To use this library, you need to have Python installed. You can install the required dependencies using pip:

pip install nhncloudemail

Usage

Initialization

First, you need to initialize the NHNCloudEmail class with your NHN Cloud app key, secret key, and sender email address.

from nhncloud_email import NHNCloudEmail

email_service = NHNCloudEmail(
    app_key='your_app_key',
    secret_key='your_secret_key',
    sender_email='your_sender_email'
)

Sending Email

To send a single email, use the send_email method:

response = email_service.send_email('recipient_email', 'Your Subject', 'Your message body')
print(response)

Sending Bulk Email

To send bulk emails, use the send_bulk_email method:

recipient_emails = ['recipient1_email', 'recipient2_email']
response = email_service.send_bulk_email(recipient_emails, 'Your Subject', 'Your bulk message body')
print(response)

Scheduling Email

To schedule an email, use the schedule_email method:

response = email_service.schedule_email('recipient_email', 'Your Subject', 'Your scheduled message body', 'schedule_time')
print(response)

Getting Email Status

To get the status of a sent email, use the get_email_status method:

response = email_service.get_email_status('request_id')
print(response)

Getting Sent Email List

To get a list of sent emails within a specific date range, use the get_sent_email_list method:

response = email_service.get_sent_email_list('start_date', 'end_date')
print(response)

Make sure to replace placeholders (like 'your_app_key', 'your_secret_key', etc.) with actual values before using the library.

Contact

Please contact dev@runners.im

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nhncloud-email-0.1.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

nhncloud_email-0.1.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file nhncloud-email-0.1.5.tar.gz.

File metadata

  • Download URL: nhncloud-email-0.1.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.18

File hashes

Hashes for nhncloud-email-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b193a60b60f67158e8e6fb690dc5d77d54e6a6b1a6305fb0fc7288371250e62f
MD5 61d8163aedfb22488fadffcc7eb60d75
BLAKE2b-256 b3a3bb8c2e33f018c76ededdb007084176e1e801ff580555a6f2c5664c56f634

See more details on using hashes here.

File details

Details for the file nhncloud_email-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nhncloud_email-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4e3dfe228f578573e0f7ce97af126ee60be303ebe7d091c910505cf45605fb41
MD5 14bf9fcd5517b6d6d4d34ca9d70b54e3
BLAKE2b-256 fef1239fc2e02ac9afec7ffaf0bcbbe5bf27bf94ee02a7f84fa3d8401546e7fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page