Using Gmail as an SMTP host for Sakai

This bit of code has been around for a while, but I’m not sure it’s written up anywhere except in Jira, so here goes, how to setup Sakai to use GMail for sending email:

smtp@org.sakaiproject.email.api.EmailService=smtp.gmail.com
smtpPort@org.sakaiproject.email.api.EmailService=587
smtpUser@org.sakaiproject.email.api.EmailService=<username>
smtpPassword@org.sakaiproject.email.api.EmailService=<password>
smtpUseSSL@org.sakaiproject.email.api.EmailService=true
smtpDebug@org.sakaiproject.email.api.EmailService=true (optional)

And for development, you can’t beat this setting for testing email without it actually being sent:

testMode@org.sakaiproject.email.api.EmailService=true
About these ads

2 thoughts on “Using Gmail as an SMTP host for Sakai

  1. Miguel Carro says:

    I think that configuration can fail, test this:

    smtp@org.sakaiproject.email.api.EmailService=smtp.gmail.com
    smtpPort@org.sakaiproject.email.api.EmailService=465
    smtpFrom@org.sakaiproject.email.api.EmailService=xxxxxxxxxxxx@gmail.com
    smtpUser@org.sakaiproject.email.api.EmailService=xxxxxxxxxxxx@gmail.com
    smtpPassword@org.sakaiproject.email.api.EmailService=yyyyyyyyyyyyyyyyyy
    smtpUseSSL@org.sakaiproject.email.api.EmailService=true
    smtpDebug@org.sakaiproject.email.api.EmailService=true

    Where xxxxxxxxxxxx is your google account and yyyyyyyyyyyyyyyyyy your Google Password.

    Regards!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s