email

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 3 Imported by: 0

README ¶

📦 Package email

Source Path: ./pkg/email

🚀 Functions

GenerateEmailHTML

GenerateEmailHTML takes a map of key-value pairs and generates an HTML email string based on the values provided. The key-value pairs should be in the following format:

  • Title: The title of the email
  • Subject: The subject of the email
  • Message: The body message of the email
  • Button: The text for the call-to-action button
  • Link: The URL for the call-to-action button

The generated HTML will be responsive and have a basic CSS style.

func GenerateEmailHTML(data map[string]string) string

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func GenerateEmailHTML ¶

func GenerateEmailHTML(data map[string]string) string

GenerateEmailHTML takes a map of key-value pairs and generates an HTML email string based on the values provided. The key-value pairs should be in the following format:

  • Title: The title of the email
  • Subject: The subject of the email
  • Message: The body message of the email
  • Button: The text for the call-to-action button
  • Link: The URL for the call-to-action button

The generated HTML will be responsive and have a basic CSS style.

Types ¶

This section is empty.

Jump to

Keyboard shortcuts

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