Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

SMTP with o365

  • nagit75
  • nagit75's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171184 by nagit75
SMTP with o365 was created by nagit75
Hi,

I try to setup smtp with o365 :

host : smtp.office365.com:587
mail adress with password fine
TLS encryption

But don't work :

2018-07-12 13:04:24 CLIENT -> SERVER: QUIT
2018-07-12 13:04:24 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel

Thanks for your help.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171221 by DenisChenu
Replied by DenisChenu on topic SMTP with o365
Unsure it was the issue here, but office365 didn't allow Sender != From != Smtp user.

I don't take time to make a clean plugin, but you you need to send sender == From == smtp user.

If i remind you need gitlab.com/SondagesPro/mailing/eventBeforeTokenEmailExtended to do this.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • nagit75
  • nagit75's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171247 by nagit75
Replied by nagit75 on topic SMTP with o365
Thanks.

But I don't understand how to add this event.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171250 by DenisChenu
Replied by DenisChenu on topic SMTP with o365
OK,

most simple : set all your email to the smtp user : the email for Bounce of survey, the email of admin of the survey etc …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: nagit75
The topic has been locked.
  • nagit75
  • nagit75's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171252 by nagit75
Replied by nagit75 on topic SMTP with o365
It works !

Thank you very much !
The topic has been locked.
More
5 years 6 months ago #173805 by mbouster
Replied by mbouster on topic SMTP with o365
Hi,
Can you please advice how to set SMTP with o365. In which directory to place the files?
Also is this applicable to limesurvey 3.4?


Please advice
The topic has been locked.
  • nagit75
  • nagit75's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173829 by nagit75
Replied by nagit75 on topic SMTP with o365
Hi,

No need to remplace file.

Go to /admin/globalsettings#email and edit parameters with same user for admin default and smtp user.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
5 years 6 months ago #173841 by mbouster
Replied by mbouster on topic SMTP with o365
I did that.
An error again.

Error message: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: 5.7.60 SMTP; Client does not have permissions to send as this sender [DB7PR03MB4747.eurprd03.prod.outlook.com]SMTP code: 550Error message: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: 5.7.60 SMTP; Client does not have permissions to send as this sender [DB7PR03MB4747.eurprd03.prod.outlook.com]SMTP code: 550


Please advice.
The topic has been locked.
More
5 years 6 months ago #173842 by jelo
Replied by jelo on topic SMTP with o365

mbouster wrote: 5.7.60 SMTP; Client does not have permissions to send as this sender [DB7PR03MB4747.eurprd03.prod.outlook.com]

The account you use, is not allowed to send via SMTP. That is an right/permission problem, which is not related to LimeSurvey. Contact Microsoftsupport or check the accounts on your own. Simplest way is to create a complete new emailaccount and then check it with a an emailclient (e.g. Thunderbird) first. If SMTP,POP and IMAP are working without issues, you will have no issues with LimeSurvey too.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
5 years 6 months ago #173851 by mbouster
Replied by mbouster on topic SMTP with o365
I have made a research and found the solution. Thanks for your help.
There are 3 ways to authenticate user.

Currently, there’re three ways of SMTP reply in Office 365.
1. SMTP client submission
2. Direct send (cannot send to external users)
3. SMTP replay (static IP required)

Found in the below link.


answers.microsoft.com/en-us/msoffice/for...e9-86dc-e7505d233e6a
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #173852 by DenisChenu
Replied by DenisChenu on topic SMTP with o365
Update TOO the emails in Survey settings : must be all the same.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
5 years 5 months ago #175473 by Stefaan
Replied by Stefaan on topic SMTP with o365
Seems like I have followed the steps as outlined in this thread and ms article ( smtp setup with correct user and pw, tls, bounce email address, survey admin and bounce address all set to same emailaddress....)
but still get this error message

Error message: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
  • SMTP debug output:
  • 2018-10-16 06:08:03	SMTP ERROR: Failed to connect to server: Connection refused (111) 2018-10-16 06:08:03	SMTP connect() failed. 
        github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
     


    My limesurvey instance is hosted at godaddy (cpanel linux).

    Anyone any suggestions?
    The topic has been locked.

    Lime-years ahead

    Online-surveys for every purse and purpose