Welcome to the LimeSurvey Community Forum

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

FIXED: Sending Email via AWS SES - LS5

  • marcgold
  • marcgold's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 2 months ago - 1 year 2 months ago #240524 by marcgold
Sending Email via AWS SES - LS5 was created by marcgold
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.0+230116
Own server or LimeSurvey hosting: Self Hosted
Survey theme/template: Fruity (Extended)
==================
So I have recently moved over to LS5  and have just had the need to use the token based email with email invites.   This has been a little problematic with the setup that works perfectly well on LS3.    

Our email relay of choice is Amazons AWS SES service (Simple Email Service).    This service works slightly different to other services as you:
1. Create an account in the region you wish to use
2. Setup the domains and the email addresses that are allowed to send through the service and verify them.
3. Setup a SMTP sending account which provides you with a 16 digit Username (not an email address) and the associated password.

So in the SMTP sending setup in LS 3 or 5 -  you enter:
  • Default site admin (over writable at survey level)
  • Outbound Mail server / port
  • Username
  • Password
  • Encryption
When you try and enter the AWS SES username as given in the format ABCDEFGHIJKLMNOP and send a test message in LS5  it returns with the error that the username is not a valid email address.

Interestingly LS3 and every other service I use SES with this works perfectly with the same setup.   Also,  if I change the setup in LS5 to use my O365 account which does have an email address as the login it works perfectly.    Interestingly in my O365 I have a shared mailbox with the ability to send - every other service i have that uses this logs in with the username  "my@email-address.com/noreply"  (noreply is the shared mailbox) and it works.   But LS5 doesn't like this as its not a email address.

It seems that the Username field in LS5 must be a email address - but there are many scenarios and services that do not have the email address and the username.

Am I doing something or have missed something stupid - just wanted to check on the forum before adding this to bug tracker.

Thanks 
M. 
 
 
 
Last edit: 1 year 2 months ago by marcgold.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago #240528 by holch
Replied by holch on topic Sending Email via AWS SES - LS5
seems like LS5 is taking the "FROM" from the smtp username, rather than the site admin name.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
1 year 2 months ago #240529 by jelo
Replied by jelo on topic Sending Email via AWS SES - LS5
I recommend to try a newer version than 5.6.0+230116.
Could be an bug around fixing issues around mail services where From-Field and Username have to be identical.
Opening a bug report is recommend.

Are you using the exact same AWS SES account for LS3 and LS5?
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • marcgold
  • marcgold's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 2 months ago - 1 year 2 months ago #240544 by marcgold
Replied by marcgold on topic FIXED: Sending Email via AWS SES - LS5
Thanks for the suggestion, I have just updated to latest 5.6.5 but unfortunately still not working.

I have used both the same details that are live in my LS3 version and created new ones for the LS5 version - but get the exact same result.

I think Holch is right - its using the smtp username as the FROM rather than the site admin email address. Must be a bug - i'll move this over to Bug Track.

Thanks for verifying.
Last edit: 1 year 2 months ago by marcgold. Reason: ISSUE FIXED

Please Log in to join the conversation.

  • marcgold
  • marcgold's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 2 months ago #240546 by marcgold
Replied by marcgold on topic FIXED: Sending Email via AWS SES - LS5
I have found the issue by looking through the core code.
Looks like there is / was a plugin "mailSenderToFrom" that was activated. Once switched off system worked.

Please Log in to join the conversation.

More
1 year 2 months ago #240548 by jelo
Replied by jelo on topic FIXED: Sending Email via AWS SES - LS5
Good you could solve the issue.
mailSenderToFrom is off by default.

It's useful when you use Microsoft365 as sending mailserver.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose