gmail

command
v0.0.0-...-6703be6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT, MIT Imports: 5 Imported by: 0

README

Gmail

Development

Into go-commands

export GOPATH=`pwd`

and then...

go get gopkg.in/kyokomi/emoji.v1

... export AWS_KEY and AWS_SECRET with full access on S3

export GMAIL_EMAIL="YOUR_EMAIL_HERE"
export GMAIL_PWD="YOUR_PASSWORD_HERE"

Running

Sending an email

... to create a bucket, go into gmail after the Development steps and run:

go run main.go send TO_EMAIL, SUBJECT, HTML_FILE

Generating

go build main.go
mv main gmail

HTML File Example

<!DOCTYPE HTML PULBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html"; charset="ISO-8859-1">
</head>
<body>
<b>Howdy!</b><br>
&nbsp;<br>
Eu sou o robo do pessoal de tecnologia da R/GA.<br>
Este email é para te avisar que o ambiente: <a href="https://rga.com">https://rga.com</a> 
está atualizado e você já pode dar uma olhada em como está ficando o progresso. <br>
<div class="moz-signature"><i><br>
<br>
Regards<br>
<br>
R/GA SP Tech 
<i></div>
</body>
</html>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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