Created
April 6, 2009 10:17
-
-
Save erickedji/90704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ma.neoxia.soa.mulepatterns; | |
import java.util.Properties; | |
import javax.mail.URLName; | |
/** | |
* This class just sets some extra SMTP properties so it works with GMail. | |
* ERIC: I copied this from Mule BookStore example. | |
*/ | |
public class GmailConnector extends org.mule.transport.email.SmtpsConnector | |
{ | |
@Override | |
protected void extendPropertiesForSession(Properties global, Properties local, URLName url) { | |
super.extendPropertiesForSession(global, local, url); | |
local.setProperty("mail.smtp.starttls.enable", "true"); | |
local.setProperty("mail.smtp.auth", "true"); | |
local.setProperty("mail.smtps.starttls.enable", "true"); | |
local.setProperty("mail.smtps.auth", "true"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment