Description

New constructs a Mailer to represent an account on a particular mail transfer agent.

Examples

	fromAddress, _ := mail.ParseAddress("happy sender ")
	log := blog.UseMock()
	m := New("", "", "", "", *fromAddress, log, stats, 0, 0)
	m.clk = fc
	m.csprgSource = fakeSource{}

	stats := metrics.NewNoopScope()
	fromAddress, _ := mail.ParseAddress("[email protected]")
	m := New("", "", "", "", *fromAddress, log, stats, 0, 0)
	_, err := m.generateMessage([]string{"[email protected]"}, "test subject", "this is the body\n")
	test.AssertError(t, err, "Allowed a non-ASCII to address incorrectly")

	log := blog.UseMock()

	m := New(
		"localhost",
		port,

New is referenced in 1 repository

github.com/letsencrypt/boulder