-
1. Re: Adding Feedback
Captiv8r Sep 16, 2014 6:37 AM (in response to Alchemex)Hi there
Just to confirm, this was posted in the HTML5 category. Are you using HTML5 or Responsive output from RoboHelp?
Sorry to ask, but you would be surprised at the number of posts we see where folks aren't coming close to using the product for the forum being posted in.
Cheers... Rick
-
2. Re: Adding Feedback
Alchemex Sep 16, 2014 6:48 AM (in response to Captiv8r)I'm using Robohelp 10 - Multiscreen_HTML5 output with a customized Screen Layout.
-
3. Re: Adding Feedback
Alchemex Sep 16, 2014 7:13 AM (in response to Alchemex)Is it an option to add HTML code to the screen layout for a Feedback link to send an email and then use IIS to send the email?
-
4. Re: Adding Feedback
Willam van Weelden Sep 16, 2014 7:58 AM (in response to Alchemex)The best option depends what you are trying to achieve. You can create a link that will create a new email in the user's default email program. That is the easiest way. For WebHelp there are several scripts available. For Multiscreen HTML5, the following will work:
<script>
var address = 'me@me.com';
var url = document.location.toString();
document.write('<a href="mailto:'+address+'?subject='+document.title+'&body='+url+'">Email</a>');
</script>
You can also use the IIS to send mail but that will require server side processing. You can either use a CGI script or a custom PHP/ASP script to do this for you. A script is not much work but it will need to be built by someone who can create server side scripts, such as a developer.
Kind regards,
Willam
-
5. Re: Adding Feedback
Alchemex Sep 16, 2014 8:12 AM (in response to Willam van Weelden)Thanks William. I'd like IIS to send the mail which I can enable. I got an ASP script off a website (see below) but wasn't sure how to configure Robohelp to send to the server and it to process it. I'd like to add a Feedback link to the footer of the Screen Layout I have already created. We are trying not to involve developers due to costs.
sMailServer = "Email-Server-Name.mydomain.com"
sSendToEmail = "recipient-of-form@domain.com"
iMailServerPort = 25
sUsername = "user"
sPassword = "pass"
sBody = "Message from website:<br /><br />" & _
"Name:" & Request.Form("VisitorName") & "<br />" & _
"O/S:" & Request.Form("musictype2") & "<br />" & _
"Email Client:" & Request.Form("Email Client") & "<br />" & _
"Comment:" & Request.Form("VisitorComment") & "<br />"
sBaseConfigURL = "http://schemas.microsoft.com/cdo/configuration/"
cdoSendUsingMethod = sBaseConfigURL & "sendusing"
cdoSendUsingPort = 2
cdoSMTPServer = sBaseConfigURL & "smtpserver"
cdoSMTPServerPort = sBaseConfigURL & "smtpserverport"
cdoSMTPConnectionTimeout = sBaseConfigURL & "smtpconnectiontimeout"
cdoSMTPAuthenticate = sBaseConfigURL & "smtpauthenticate"
cdoBasic = 1
cdoSendUserName = sBaseConfigURL & "sendusername"
cdoSendPassword = sBaseConfigURL & "sendpassword"
Dim objMail: Set objMail = Server.CreateObject("CDO.Message")
Dim objConfig: Set objConfig = Server.CreateObject("CDO.Configuration")
Dim objConfigFields: Set objConfigFields = objConfig.Fields
With objConfigFields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = sMailServer
.Item(cdoSMTPServerPort) = iMailServerPort
.Item(cdoSMTPConnectionTimeout) = 10
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = sUsername
.Item(cdoSendPassword) = sPassword
.Update
End With
Set objMail.Configuration = objConfig
With objMail
.To = sSendToEmail
.From = sSendToEmail
.Subject = "Email from website"
.HTMLBody = sBody
End With
objMail.Send
Set objMail = Nothing
Set objConfigFields = Nothing
Set objConfig = Nothing
-
6. Re: Adding Feedback
Willam van Weelden Sep 17, 2014 6:38 AM (in response to Alchemex)In that case, you have to create a HTML form that you post to the ASP form on submit. You can create forms with RoboHelp, but it will also require a little manual HTML editing. See HTML Forms and Input for instructions on how to create forms.
One note: The name attribute of the form elements must be the same as the name your script is expecting, such as VisitorName and musictype2. I would advise against using names with spaces though.
Also, the ASP form may send email, but it would be best practice to show a message to the reader that their message has been send. The form you posted seems to send the message, but you will also need to show a thank you/message send page ortherwise the user will get an emtpy page when they send you the email.
Kind regards,
Willam



