Files
herolib/lib/clients/mailclient
2024-12-25 21:48:03 +01:00
..
2024-12-25 09:23:31 +01:00
2024-12-25 09:23:31 +01:00
2024-12-25 21:48:03 +01:00
2024-12-25 21:48:03 +01:00
2024-12-25 20:13:02 +01:00
2024-12-25 09:23:31 +01:00

mailclient

To get started


import freeflowuniverse.herolib.clients. mailclient

mut client:= mailclient.get()!

client.send(subject:'this is a test',to:'kds@something.com,kds2@else.com',body:'
    this is my email content
    ')!

example heroscript

!!mailclient.configure
    secret: '...'
    host: 'localhost'
    port: 8888

use of env variables

if you have a secrets file you could import as

//e.g.  source ~/code/git.ourworld.tf/despiegk/hero_secrets/mysecrets.sh

following env variables are supported

these variables will only be set at configure time

brevo remark

  • use ssl
  • use port: 465