SMTP with o365

More
2 months 1 week ago #171184 by nagit75
nagit75 created the topic: SMTP with o365
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.

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #171221 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #171247 by nagit75
nagit75 replied the topic: SMTP with o365
Thanks.

But I don't understand how to add this event.

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #171250 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: nagit75

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #171252 by nagit75
nagit75 replied the topic: SMTP with o365
It works !

Thank you very much !

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #173805 by mbouster
mbouster replied the 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

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #173829 by nagit75
nagit75 replied the 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

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #173841 by mbouster
mbouster replied the 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.

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #173842 by jelo
jelo replied the 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.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #173851 by mbouster
mbouster replied the 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

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #173852 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!