/samp-mail-go

Send e-mail easily for your SA-MP and this is heavily inspired by SAMPMailJS ❤️

Primary LanguageGo

samp-mail-go

sampctl

This library was heavily inspired by SAMPMailJS and initiated because I'm learning Go, make this library run as simple as configure .env file, and run it!

Any feedbacks and pull requests are welcome! I really appreciate it.

Installation

Simply install to your project:

sampctl package install rsetiawan7/samp-mail-go

Include in your code and begin using the library:

#include <samp-mail-go>

Usage

--- Make sure you're using Go 1.19

Install dependencies

go mod tidy

Build your mail server

go build

Run it

./samp-mail-go

In your SA-MP code, use it

#include <samp-mail-go>

// Send e-mail
SendEmail("Your Server", "your-email@example.com", "Hello", "You should receive this e-mail")

To-do

  • CI / CD for Releases build (Windows & Linux)
  • Unit test