-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_sample_test.go
39 lines (38 loc) · 1.01 KB
/
account_sample_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package MIMEMail
// func init() {
// testConfig = &testConf{
// sender: &Account{
// Name: "Mr. Sender",
// Address: "sender@example.com",
// Pass: "your mail server password",
// Key: &PGP{
// Pass: "my pgp key password",
// Key: `
// -----BEGIN PGP PRIVATE KEY BLOCK-----
// tons of ASCII armored gibberish here!
// get this data with:
// $ gpg --armor --export-secret-keys <your sending mail address>
// -----END PGP PRIVATE KEY BLOCK-----
// `
// },
// Server: &Server{
// Host: "mail.example.com",
// Port: SMTPTLS,
// },
// },
// receiver: &Account{
// Name: "Mr. Receiver",
// Address: "receiver@example.com",
// Key: &PGP{
// File: "receivers_public_key.asc",
// // file contains:`
// // -----BEGIN PGP PUBLIC KEY BLOCK-----
// //
// // lots of base64 encoded data here...
// // get this data with:
// // $ gpg --armor --export <your receiving mail address>
// // -----END PGP PUBLIC KEY BLOCK-----
// },
// },
// }
// }