go-outlook-autodiscover
Generate Microsoft Outlook autodiscover files.
Usage
package main
import (
"os"
"github.com/ProtonMail/go-outlook-autodiscover"
)
func main() {
c := &autodiscover.Config{
DisplayName: "Mail Account",
Imap: &mobileconfig.Imap{
Hostname: "mail.nsa.gov",
Port: 993,
Tls: true,
Username: "root",
},
Smtp: &mobileconfig.Smtp{
Hostname: "mail.nsa.gov",
Port: 25,
Tls: false,
Username: "root",
},
}
if err := c.WriteTo(os.Stdout); err != nil {
panic(err)
}
}
License
MIT