Create an Account

Creates an Account resource

smtppy.createaccount(address, password)

Parameters

  • address (string) (required) - Account's address. Example: user@example.com

  • password (string) (required) - Account's password.

Response

{
  "@context": "string",
  "@id": "string",
  "@type": "string",
  "id": "string",
  "address": "user@example.com",
  "quota": 0,
  "used": 0,
  "isActive": false,
  "isDeleted": true,
  "mailboxes": [
    {
      "@context": "string",
      "@id": "string",
      "@type": "string",
      "id": "string",
      "path": "string",
      "totalMessages": 0,
      "totalUnreadMessages": 0
    }
  ],
  "createdAt": "2025-04-01T00:00:00.000Z",
  "updatedAt": "2025-04-01T00:00:00.000Z"
}

Want to learn about writing content from scratch? Head to the Basics section to learn more.

Last updated