How do I add a Hyperlink to a mailto

How do I add a Hyperlink to a mailto

shadi shehadeh -
回帖数:7
Hi everyone


I want to create a Hyperlink on course ,If you click on the link, it will send an email to a specific person, is this possible?


Thanks
回复shadi shehadeh

Re: How do I add a Hyperlink to a mailto

Joost Elshoff -
Particularly helpful Moodlers的头像 Testers的头像
Hi Shadi,

Moodle isn't really a mail client kind of application, but there are other ways of getting a message to an instructor, for instance. The regular way would be to go to the participant list in a course, open the profile of an instructor and then choosing the Send a message option there.

If you do want to add a mail option, you could just use the 'anchor' button in the text editor and then add a 'mailto:email@example.com' type address instead of an 'https://www.example.com' one. This will trigger a new mail to be opened from the user's email application.
回复shadi shehadeh

Re: How do I add a Hyperlink to a mailto

Ken Task -
Particularly helpful Moodlers的头像

Agree with Joost recommendation to use the Moodle interface rather than a mailto: link.   Why?  I use a Mac laptop but my mail is on google.   Clicking a mailto: link will call up Mac Mail from laptop and I've not configured Mac Mail and don't plan to.

Your users might be using a PC rather than a Mac and they to might be using an IMAP/Web mail kinda setup for their email.   Confusing to users ... plus if your mailto: link doesn't work, they will be communicating with you to 'fix it'. :|

'SoS', Ken

回复shadi shehadeh

Re: How do I add a Hyperlink to a mailto

Rick Jerz -
Particularly helpful Moodlers的头像 Testers的头像
Here is how I would do what I think you are asking, as in a "Contact ABC" link, using a URL resource.


附件 mailto link.png
回复Rick Jerz

Re: How do I add a Hyperlink to a mailto

Ken Task -
Particularly helpful Moodlers的头像

Interesting, Rick.  But what launches on students computer?

Using Google?

https://mail.google.com/mail/u/2/[yourgoogledomain]#inbox?compose=new

Replace [yourgoogledomain] with your google domain for email.

That launches a browser window, goes to google, where if you are not logged on it prompts to login, then sends user directly to composing and email message.

Tinkering with that some more one might be able to pass the 'To line' addy!

'SoS', Ken

回复Ken Task

Re: How do I add a Hyperlink to a mailto

Rick Jerz -
Particularly helpful Moodlers的头像 Testers的头像
Yep, I know what you mean, Ken. What launches on the student's computer depends upon the student's computer. Anything from "nothing" to "the start of an email in the student's email client."

Shadi seemed to be asking for some techniques, and this is one. Yep, what happens if the student doesn't have an email client? The same thing for many many "mailto" links... nothing.

Of course, another technique is to create a "web form" probably including reCaptcha, and have the students directed to this form when they have questions.  Yep, a URL resource would work. I don't know if Moodle can handle these kinds of web page forms, but I would put it external to Moodle, like a school web page.

Or provide both approaches.
回复Rick Jerz

Re: How do I add a Hyperlink to a mailto

Ken Task -
Particularly helpful Moodlers的头像

Once supported a corp moodle that used an app called MachForms - commercial - but not that expensive.

Gave ability to create forms for all sorts of needs and it could be installed inside moodle code directory and not clash with moodle - not even with git updates/upgrades of moodle.   It could be configured to drop/strip out all of it's own navigational links so that the form could be embedded in Moodle.

https://www.machform.com/

https://www.machform.com/pricing/

Forms code backed up with the moodle code backups and only a separate DB dump of the DB used for machforms needed.

I don't work for them ... and get nothing for mentioning them.

My 2 cents!

'SoS', Ken

回复Rick Jerz

Re: How do I add a Hyperlink to a mailto

John Provasnik -
Particularly helpful Moodlers的头像 Testers的头像
Amazing! Thanks! For me, (using Chrome) the link opens right in Gmail since I set gmail as my handler in Chrome. You can even go a step further and add in a subject and body by adding this into the External URL

mailto:test@example.com?subject=My Email Test&body=This is only a test!