All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daioware.mail.client.SMTP_Constants Maven / Gradle / Ivy

package com.daioware.mail.client;

import java.util.HashMap;

public interface SMTP_Constants {
	String HOTMAIL_HOST="smtp.live.com";
	String GMAIL_HOST="smtp.gmail.com";
	int HOTMAIL_PORT=587;
	int GMAIL_PORT=587;
	
	
	HashMap defaultPorts=getDefaultMapPorts();


	public static HashMap getDefaultMapPorts() {
		HashMap defaultPorts=new HashMap<>();
		defaultPorts.put(HOTMAIL_HOST,HOTMAIL_PORT);
		defaultPorts.put(GMAIL_HOST,GMAIL_PORT);
		return defaultPorts;
	}
	public static int getPort(String host) {
		Integer port= defaultPorts.get(host);
		if(port==null) {
			port=587;
		}
		return port;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy