mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-23 15:10:15 +00:00
* docs: Create new CODING_GUIDELINES doc Rids excess contribution instructions from other packages Adds AGENTS.md file for the AI overlords Rids unused templates Updates ADD_NEW_EXCHANGE.md with minor fixes * docs: Fix linter issues and minor adjustments based on Copilot feedback * docs: Update coding guidelines for API parameters and testing practices * docs: Remove redundant GoDoc references Adds copilot-instructions.md * docs: Update CODING_GUIDELINES with export recommendations and test commentary * docs: Fix formatting inconsistencies in ADD_NEW_EXCHANGE.md links * docs: Update struct naming conventions for request and response types * docs: Improve clarity and consistency in ADD_NEW_EXCHANGE.md and CODING_GUIDELINES.md * refactor: Simplify error handling in QueryOrder method
46 lines
1.2 KiB
Cheetah
46 lines
1.2 KiB
Cheetah
{{define "communications smtpservice" -}}
|
|
{{template "header" .}}
|
|
## SMSGlobal Communications package
|
|
|
|
### What is SMTP?
|
|
|
|
+ Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (email) transmission
|
|
+ Please visit: [Wikipedia](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) for more information
|
|
|
|
### Current Features
|
|
|
|
+ Sending of events to a list of recipients via email
|
|
|
|
### How to enable
|
|
|
|
+ [Enable via configuration](https://github.com/thrasher-corp/gocryptotrader/tree/master/config#enable-communications-via-config-example)
|
|
|
|
+ Individual package example below:
|
|
```go
|
|
import (
|
|
"github.com/thrasher-corp/gocryptotrader/communications/smtpservice"
|
|
"github.com/thrasher-corp/gocryptotrader/config"
|
|
)
|
|
|
|
s := new(smtpservice.SMTPservice)
|
|
|
|
// Define SMTPservice configuration
|
|
commsConfig := config.CommunicationsConfig{SMTPservice: config.SMTPConfig{
|
|
Name: "SMTPservice",
|
|
Enabled: true,
|
|
Verbose: false,
|
|
Host: "host",
|
|
Port: "port",
|
|
AccountName: "name",
|
|
AccountPassword: "password",
|
|
RecipientList: "something@something.com,somethingelse@something.com"
|
|
}}
|
|
|
|
s.Setup(commsConfig)
|
|
err := s.Connect
|
|
// Handle error
|
|
```
|
|
|
|
{{template "donations" .}}
|
|
{{end}}
|