autodiscover

package module
v0.0.0-...-fb1424b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: MIT Imports: 2 Imported by: 0

README

go-outlook-autodiscover

GoDoc

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DisplayName string
	Image       string
	ServiceHome string

	Imap *Imap
	Smtp *Smtp
}

A Microsoft Outlook autodiscover file.

func (*Config) WriteTo

func (c *Config) WriteTo(w io.Writer) error

type Imap

type Imap struct {
	Hostname string
	Port     int
	Tls      bool

	Username string
}

type Smtp

type Smtp struct {
	Hostname string
	Port     int
	Tls      bool

	Username string
}

Jump to

Keyboard shortcuts

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