Compose a new pre-filled personal message via URL

TL0 users can contact admins in the form of replying to welcome message. it would be great if contacting site admins via a pre-filled private message would be permitted even for TL0 users.

then as an admin one can make a simple “contact us” link.

1 Like

You could do this with a category configured to allow anonymous posting by email and to give access to only the team members who should receive and handle inquiries. It will additionally create staged accounts which is cool.

1 Like

I just found out about the staged users ability and yes, it’s a nice feature! thanks for the suggestion :smiley:

a question regarding this method:

it’s like asking people to send an email to test@test.com in order to contact us. the only difference would be that we receive their response in the platform rather than our email.

isn’t it?

I’d like the users to be able to contact us via the platform itself.

2 Likes

Any way to open the Email Composer w/o having to fill in the user? e.g.

https://discourse.domain.org/new-message

vs. having to fill in a user

https://discourse.domain.org/new-message?username=user_name

Use-case is a simple bookmark to composing PMs.

And there is no way to PM a user starting from an email, like we can create a Topic post from email, correct?

4 Likes

Hmm, at least some form of the empty version should work @techapj

https://meta.discourse.org/new-message?username=

5 Likes

Okay, this is now done via:

All of the below format will work now:

https://meta.discourse.org/new-message
https://meta.discourse.org/new-message?username=
https://meta.discourse.org/new-message?title=foo&body=bar
https://meta.discourse.org/new-message?groupname=
9 Likes

Nice. Pulled from tests-passed, and it looks great!

4 Likes

Hi, this looks great but limited because I am not able to get the following format to work if the message is to a group:

https://meta.discourse.org/new-message?username=

The composer is not opening up if the username is a group… (whereas it does to a single user)

2 Likes

Should that work @techAPJ?

3 Likes

one other comment/request - if it’s a new message can it open up with the /my/messages page in the background?

What you are looking for is https://meta.discourse.org/new-message?groupname=

Notice username vs groupname parameter. Also make sure that the group is messageable.

It doesn’t as of now, but a PR for this change is certainly welcome. :slight_smile:

6 Likes

Hello. I was wondering if there are any updates regarding having multiple users within the link to create a message? Note that these multiple users are not all in a group. Thank you!

This feature doesn’t exist as of now. A PR for the same is certainly welcome.

5 Likes

Great work! Is there any existing trick to allow an e-mail address in username like this?

discourse.example.com/new-message?username=john@example.com&title=message%20title&body=message%20body

This returns an error right now but supporting it might help sending e-mails from a Discourse instance.

3 Likes

Email address is not supported yet. I’ll add it on my longer term to-do list. :memo:

8 Likes

Is it possible to also actually send the PM using a command in the URL?

The use-case is in attempting to launch the @discobot tutorial with a single click. At the moment, it is straightforward to use a URL to create a PM with the correct text in it, but the user must also click on ‘Message’ the fire it up. A minor point, but this will be used by very green users for whom every click counts.

No that is not possible and is not planned. It would be a massive security issue for what I hope are obvious reasons.

Thank you - fair enough; it would indeed be a security issue if a malicious user worked it out.

Including some text to prompt them to hit the “Message” button in the message would address this issue anyway as per: