email

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2021 License: MIT Imports: 4 Imported by: 1

README


Logo

This is the base template repository used for all the Golang ToDanni services.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

ToDanni is a collaborative task manager used to share and manage workloads between different team members.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
npm install npm@latest -g

Installation

  1. Clone the repo
git clone 
  1. Install NPM packages
npm install

Usage

Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.

For more examples, please refer to the Documentation

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feat/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Danni Popova - danni.develop@gmail.com

Project Link: https://github.com/danni-popova/todanni

Documentation

Index

Constants

View Source
const (
	VerificationTemplateID  = "d-35759ae691be4ee28aced5ca730e50b5"
	PasswordResetTemplateID = "d-b64d65d60a674eed87454cd98eca1adc"
)

TODO: Implement retrieve template by name using the Admin API

Variables

View Source
var (
	AdminSender = mail.NewEmail("ToDanni admin", "admin@todanni.com")
)

Functions

This section is empty.

Types

type MockEmail

type MockEmail struct {
	mock.Mock
}

func (*MockEmail) SendPasswordResetEmail

func (e *MockEmail) SendPasswordResetEmail(code string, recipient Recipient) error

func (*MockEmail) SendVerificationEmail

func (e *MockEmail) SendVerificationEmail(code string, recipient Recipient) error

type Recipient

type Recipient struct {
	Email    string
	FullName string
}

type Service

type Service interface {
	// SendPasswordResetEmail -
	SendPasswordResetEmail(code string, recipient Recipient) error

	// SendVerificationEmail -
	SendVerificationEmail(code string, recipient Recipient) error
}

func NewEmailService

func NewEmailService(key string) Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL