U4-10133 - Investigate issues with SMTP Invite and async

Created by Shannon Deminick 10 Jul 2017, 05:38:33 Updated by Claus Jensen 11 Jul 2017, 08:11:22

Relates to: U4-9913

Subtask of: U4-8632

Currently if a real (not pickup folder) SMTP server is used for the user invite, the email doesn't seem to send. I'm fairly certain this is an async issue as I've seen something similar to this before.


Shannon Deminick 11 Jul 2017, 04:52:54

@claus This is partly fixed in rev 3c31e330001fa7b9a4d92c068d5deb272b139165

Problem was a couple of things:

  • No "From" address specified (oops!)
  • Not awaiting the SendAsync call

but i still have other issues. The problem is smtp with async is ugly because we need to dispose the resources after the async bits and it doesn't seem to like that too much. I'll keep tinkering away.

Shannon Deminick 11 Jul 2017, 05:07:36

Ok, next fix is here: 50a896a6ccc98b04f39ef905f5eee4a541ea7d78

The SMTP API is a bit buggered based on what I saw in it's source and other people's comments. It treats emails and async differently if it's not a network smtp and it has issues so we just don't use the async api if it's a pickup folder.

Claus Jensen 11 Jul 2017, 08:11:18

Confirmed it's now working with both pickup dir and a real SMTP!

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.7.0

Sprint: Sprint 63

Story Points: 1