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

com.mailgun.util.EmailUtil Maven / Gradle / Ivy

Go to download

The Mailgun SDK for Java enables Java developers to work with Mailgun API efficiently.

The newest version!
package com.mailgun.util;

import lombok.experimental.UtilityClass;
import org.apache.commons.lang3.StringUtils;

@UtilityClass
public class EmailUtil {

    /**
     * 

* Method concatenates the username and email address of the user. *

* * @param name username * @param email email address of the user * @return concatenated result */ public static String nameWithEmail(String name, String email) { return StringUtils.isBlank(name) ? email : name + " <" + email + ">"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy