April 23, 2019 at 9:44 am #423571
var email = “firstname.lastname@example.org”;
var subject = “My Notes”;
var body = Var_NoteSummary.getValue();
window.location.href = “mailto:” + email + “?subject=” + subject +”&body=” +body
However, when I implement this, all I get is a white screen when I Run/Preview/Preview in Browser. Further, I need the ability to create several mailto actions: as there are multiple e-mail addresses throughout the course.
Any help is appreciated.April 23, 2019 at 2:07 pm #423580
To clarify for my benefit: do you want to mail the contents of the Lectora page somewhere, or open a new message in the student’s own mail program (e. g. Outlook)?April 24, 2019 at 7:46 am #423624
Hi, Clammers. It looks like you found an old post of mine. Here it is working in version 18. If you have any problems or need something different let us know.
Attachments:April 24, 2019 at 4:30 pm #423709
If you tried what I posted and it didn’t work you are most likely doing something incorrect. I understand your frustration; I do most of my work from scratch without a delivery authoring tool as it gives me much more freedom to do whatever I want without bloated wonky code but this one is easily rectified.
You are publishing to check, correct, not just using the built in preview? Also, the machine you are working on has an email client set up, right?
Let me know how it works.April 25, 2019 at 9:27 am #423752
I agree with Bob – I just need something simple that will create a new email message (in the user’s email client) with the address in the ‘TO’ field. In my situation, if I want to provide a list of e-mail addresses within the body text of a page, all I need is a hyperlink to ‘MailTo’ the given address. For example, “Please contact JohnDoe@email.com for questions regarding this section of the training.”
Darrel, the solution you provided works properly and is good for filling out a form; I have used something similar for other applications. However, it’s more involved that what is needed (and what was offered previously in Lectora).April 25, 2019 at 11:57 pm #423828
Hi All, My solution was to go back to my Lectora Version 17 and then copy and paste into Lectora Version 18 any icons that had the send email action attached . This approach seems to work for me. I agree with Clammers a simpler solution within Lectora Version 18 would be better.
Cheers all!April 26, 2019 at 6:18 am #423835
As Carmelo suggested (good suggestion by the way) here is a button library object from v17 with email action attached. Add to your library objects.
- This reply was modified 4 months, 4 weeks ago by Darrel Somoza. Reason: typo
Attachments:April 26, 2019 at 7:16 am #423864
Thanks, all. I’ve been copying-and-pasting the action from prior courses, so this is much easier. However, it doesn’t solve the issue with in in-text hyperlinks. I can use this as a workaround, but <span style=”text-decoration: underline;”>please</span> Lectora, bring back this action.April 26, 2019 at 7:48 am #423878
Here’s the email action on a block of text that is styled to look like an email link (underline and different color). Just add to your library then when you add it to your page change the text to match the address you put in the action.
Attachments:April 26, 2019 at 11:35 am #423934
I appreciate your help, but it’s not working for me.
Bob, do you have a mail client, like outlook, on that computer? If there is a mail client it should open up a new email with your address loaded in. Doesn’t matter if it is on a server.
You can also try to import the email button object from my other post and then just drag it into a page and change the address in the action. To import the awo, you first save it (desktop works fine) and then open up your “my library” tab in Lectora. Double click the library objects folder and then add file. Browse to where you saved the awo and select it. Now you can drag it into any project and just change the address.April 26, 2019 at 1:45 pm #423957
I have Outlook and it’s open. I just published the “email button.awt” file as you sent it. The button shows but it nothing happens. That’s the issue I found in the first place. The Send Email action shows since it was put in with an older version of Lectora, but Trivantis took out the code behind it, so it doesn’t work any longer. It’s very frustrating that they would do that.April 26, 2019 at 2:26 pm #423959
There is something wrong with your computer. Both of the solutions I posted work fine. It appears your computer is not defaulting email to a client application. Does any email link in another application open up your outlook?April 26, 2019 at 2:34 pm #423961
I think you are exactly right. I found a website that had an email link (hard to find, by the way) and it didn’t work. Thanks for helping me with this.
Now, on to research this computer issue!
You must be logged in to reply to this topic.