func AddrToEmail(address string) string {
	if config.Bridge.Server.SMTP.Organization != "" {
		return address[:strings.IndexByte(address, '@')] + "@" + config.Bridge.Server.SMTP.Domain
	}

	address = strings.Replace(address, "@", "_", -1)
	address = strings.Replace(address, "!", "", -1)

	return address + "@" + config.Bridge.Server.SMTP.Domain
}
// AddrToEmail will translate an address string to a valid email using DefaultDomain
AddrToEmail will translate an address string to a valid email using DefaultDomain
// AddrToEmail will translate an address string to a valid email using DefaultDomain
func AddrToEmail(address string) string {
	if config.Bridge.Server.SMTP.Organization != "" {
		return address[:strings.IndexByte(address, '@')] + "@" + config.Bridge.Server.SMTP.Domain
	}
	address = strings.Replace(address, "@", "_", -1)
	address = strings.Replace(address, "!", "", -1)
	return address + "@" + config.Bridge.Server.SMTP.Domain
}
func AddrToEmail ( address string ) string { if config . Bridge . Server . SMTP . Organization != " " { return address [ : strings . IndexByte ( address , '@' ) ] + " " + config . Bridge . Server . SMTP . Domain } address = strings . Replace ( address , " " , " " , - 1 ) address = strings . Replace ( address , " " , " " , - 1 ) return address + " " + config . Bridge . Server . SMTP . Domain }
AddrToEmail will translate an address string to a valid email using DefaultDomain
AddrToEmail will translate an address string to a valid email using DefaultDomain