cancel
Showing results for 
Search instead for 
Did you mean: 

Gmail E-mail Configuration for newbies

andhaa
Champ in-the-making
Champ in-the-making
Hi,

I am a very new user to Alfresco world and have already fell in love with it. I have installed the latest community version on Windows platform and can access Alfresco via LAN.

I am facing trouble in sending invites for my sites created via Alfresco. When I select a user to send Invite and press Ivite button, Alfresco gives me a message "0 invites sent, 1 failure". I understand that Email settings have to enabled for Invites to start working in Alfresco.

In regards to setting Email, I opted to use GMAIL email account for communication through Alfresco and performed following steps:

1. Step 1: Made changes to alfresco-global.properties on following path: C:\Alfresco\tomcat\shared\classes.
2. Step 2: Entered GMAIL SMTP settings in alfresco-global.properties and saved the file (at this time Alfresco Service was stopped), following settings were entered:
   Note: At this point I have not set any Outbound email settings anywhere in Alfresco Config Files.
   # Sample Gmail settings
   mail.host=smtp.gmail.com
   mail.port=465
   mail.username=alfrescodms25@gmail.com
   mail.password=password
  
   # New Properties
   mail.protocol=smtps
   mail.smtps.starttls.enable=true
   mail.smtps.auth=true
   mail.testmessage.send=true
   mail.testmessage.to=alfrescodms25@gmail.com
   mail.testmessage.subject=Outbound SMTP
   mail.testmessage.text=The Outbound SMTP email subsystem is working.

   # Email Site Invitation
   notification.email.siteinvite=true

3. Step 3: Re-started the Alfresco Service and accessed Alfresco Share. It was observed that now Alfresco stopped working properly and was showing internal 500 errors.

4. Step 4: Undo all changes done to alfresco-global.properties on following path: C:\Alfresco\tomcat\shared\classes, restarted Alfresco service and accessed Alfresco   Share. It was observed that Alfresco Share was working fine again (without invites working).

I have gone through wiki and forum and due to limitation of my technical knowledge, I would really appreciate if someone guide me to setup Invites in my Alfresco installation.

Thanks & Regards,
Andhaa
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
Your config looks fine.   What were the details of the error you received?

andhaa
Champ in-the-making
Champ in-the-making
Dear Mrogers,

Thanks for taking time and replying to my query.

On the Alfresco Share Site following is written:

An error has occured in the Share component:/share/service/components/dashlets/user-calendar.
It responded with a status of 500 - Internal Error.

Error Code Information: 500 - An error inside the HTTP server which prevented if from fulfilling the request.

Error Message: Error during remote call. Status:404 Response

tullo
Champ in-the-making
Champ in-the-making
Try to add this

mail.smtps.starttls.enable=true
mail.smtp.socketFactory.port=465
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback=false

And change mail.testmessage.send to

mail.send.testmessage=true

andhaa
Champ in-the-making
Champ in-the-making
Dear Tullo,

Thanks for taking time and replying to my query.

I made changes as per your suggestions in the "alfresco-global.properties" config file and logged in to Alfresco Share and following error was given:

***Failed to Login***

The remote server may be unavailable or your authentication details have not been recognized.

I deleted the settings suggested by you and GMAIl settings and logged into Alfresco Share - Login was successful (no Invites working).

Thanks & Rgds,
Andhaa

zladuric
Champ on-the-rise
Champ on-the-rise
When restarting alfresco, it tries to send notifications. If your config is wrong, you can sometimes going to get problems like this.