Perfect! Thank you. If we wanted to create a third party form, hosted on potentially another server, allowing anonymous users to fill in said form which in turn would post into Discourse as staged users using their email address in the reply-to header of the email, would this be possible?
Or would the email be treated as SPAM by the Discourse system?
@gerhard thanks for the post, although from what I understand, this is to suck in some pre-defined mailing lists. Ideally what I want to do is have the same function that’s provided by staged users via email, but through a form thats always open and the end user still gets their topic updates by email.
Sorry, I got a little bit confused by the other topic
I think if you want to use your own form you’ll either need to use the API or make your form send an email to your Discourse. But you’ll lose a lot of of features that the Discourse UI provides for creating posts.
Discourse itself doesn’t include any spam filtering (beyond checking for the auto-generated header), so even if SPF/DKIM records don’t match it should work. If you have spam checks upstream of discourse then you may run into problems.
A “better” solution would definitely be to use the API.
I’ve got exactly the same desire. Some orders from our customers need to be approved before we charge their credit card and process the order. We currently do this by sending emails to our sales team. Sometimes the sales team needs to get in touch with the original user, and wants to reply.
So for us, the original email headers could be:
From: "Web Order Bot" <email@example.com> # (clearly whitelisted)
Reply-To: "New Customer" <firstname.lastname@example.org>
Subject: Order 192831
What I’d love to see is a new Discourse staged user email@example.com get created, and the incoming message be from that user. Our team could then reply directly to the customer in Discourse. As it stands, they reply to firstname.lastname@example.org which doesn’t work very well.
If we need to use an API to do this, can you point me to the APIs for creating new posts and staged users?
Thinking with a little bit clearer head, rather than doing our send via Amazon SES (how we do most of our mail delivery), if I just send to mx-sjc1.discoursemail.com directly, I can set the mail headers the way you want them set.