Create a hyperlink to a specific email message - asp.net

I developed a paging application to send emails and text messages to our users. We want to be able to create a hyperlink within the message that points to a specific email message on our company SMTP server.
I can send a text message that creates a link to Outlook doing this: https://mail.domain.com. We want to create a link to a specific email message.
I found instructions to do this in a couple of ways. They are:
Link: Outlook:Inbox/~Subject (surrounded by <>)
or
Link: Outlook:'GUID' (surrounded by <>)
But they are giving me the error message: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script.
Can anyone direct me on how to create a link to a specific email message on our SMTP Outlook server?
Thanks.
UPDATE
I can send the text message but the link is not displayed as a link but text.
This is my email body string that can be texted to my cell phone but the link does not go to the email defined.
I tried just creating the Outlook link like this:
string test = "<Outlook:Inbox//~New Provider>";
EmailInfo.Message = HttpUtility.HtmlEncode(test);
I also tried creating a link using href:
string test = "Email Link";
EmailInfo.Message = HttpUtility.HtmlEncode(test);
Both successfully sent a text message to my phone. But I could not click on the links. They were displayed as text like this:
MSG:Email Link
Why is the link displayed as plain text?

Related

How can I open a specific telegram account with preloaded text message

Is it possible to open a specific account with a preloaded text like this:
tg://resolve?domain={USER_NAME}&text=Hi, default message
https://t.me/{USER_NAME}?text=Hi, default message
There isn't (yet) a option to open a chat for a specific user, however, you can open the Telegram app, with an preloaded text, the user get's the option to pick a recipient from there chat list;
Use the following url;
tg://msg_url?url=Hi%21%20I%27m%20an%20example%21
Where;
url is the preloaded message (or link) (url-encoded)
After pressing the link, Telegram will ask for a recipent (picture).
If the user selects a chat from the sidebar, the preloaded text will be filled in the chat box (picture)

Google form: Can I add a hyper link that will be opened on a new tab?

I have no idea how to add a hyperlink (that will be opened on a new tab) in a Google form. I know how to do in HTML but I don't know how to do in a Google form.
I have just added a link in the "Confirmation message:" of presentation area of the Google form settings.
...
I think this HTML code cannot be applied to a Google form: (target="_blank")
https://forms.gle/AGz1ngWM7fZXLJkv7
In order to link to another Google form after submitting the quiz, I would like to add the link that can access this other Google form before/after viewing the quiz results. But if I click on the link for this other Google form before/after viewing the quiz in the current tab, I cannot go back to viewing the quiz results.
If it is not applicable to add a link that will be opened on a new tab, it is acceptable to add a link in the quiz results. However, I have no idea how to add a link in the quiz results page.
This is a demo of my quiz form: https://forms.gle/rKrcSh1aGVAeY4sR7
...I have no idea how to add a link in the quiz results page
You cannot.
Fortunately there is a workaround
You can create a small script in the spreadsheet that will send an email to the submitter upon submission of the form.
Go to Tools -> Script editor...
When in the script editor, erase all the presented code and replace it with the following:
The code:
// Email the submitter including a HYPER-LINK
function Hyper2Them(e){
var theirFirst = e.values[4];
var theirLast = e.values[5];
var theirEmail = e.values[1];
var myEmail = "myemail#xyz.com";
var theQuiz = e.values[3];
var subject = "About your Quiz: " + theQuiz;
var message = " Your current EMAIL is: " + theirEmail + "\n To: " + theirLast + " \n\n Dear: " + theirFirst + " \n We will be sending you an EMAIL with your results from: " + theQuiz + " \n Till then please follow instructions found on this address: https://www.google.gr/ ";
MailApp.sendEmail (theirEmail, subject, message);
}
Save
Authorize
Now click on the clock icon on the toolbar and on the new page, set up a trigger for On form submit and save the trigger.
Test and Enjoy!
Notes
The e.values 1, 2, and so on, correspond to the columns on the spreadsheet where the answers are submitted. Keep in mind that the numbering for the columns start with 0. (Zero being the column reserved for the timestamp.)
*You can read all about limitations on Google accounts and triggers at: Quotas for Google Services and Simple Triggers
Another workaround:
Each form has a linked spreadsheet.
Add a sheet with your link or links to this spreadsheet and publish it to the web.
Place the link to the published spreadsheet into the Confirmation message. Moreover you can use formatting on this page.
There is a slight two step workaround for this. Thinking outside of the box... If you have a public webpage / website (if not note you can use a public blogger page for free), you can create a page and add a hyperlink that opens into a new window using either the page WYSIWYG editor or html code. Once the page is ready, in the Google Form "Confirmation Message" you can add the full URL of that page to the message. Note you MUST include the http:// or https:// because this will then open the page within the same iframe as the Google form. If you do not add http it will not load! Within that iframe the form submitter will then view the page you created and when they click the link in that page it will open into a new window. Use common sense. In the "Confirmation Message" tell the submitter what to do, for example, "Click the following links to go to the next section".

Gravity Form query string appends '|:||:||:||:|2372' to the end of the data

Right now I'm trying to create a custom confirmation page to be displayed to the user after they finish filling out one of my forms. This custom confirmation page will use some of the data that they entered into the form. Right now I only have 3 fields: name, phone number, and a logo image.
So I went into the Settings->Confirmations section of my form and set Confirmation Type to Page, chose the page, and checked off 'Pass Field Data Via Query String'. Then I entered in the string 'gym_name={Gym/Program Name:2}&gym_phone={Gym/Program website and/or phone number:3}&logo={Logo:4}'. The logo parameter is passed as the image src url.
I ran through a quick test of my form and after filling it out, all of the data was successfully sent to the confirmation page, with one problem. For some reason, Gravity Form appends '|:||:||:||:|2372' (it's not always 2372, it's different every time) to the end of the logo section of the url. This happens no matter where in the query string I put logo, and it does not get appended if I don't include the logo.
Does anyone know what the cause of this is, and how to stop it? Thank you in advance.
I'm assuming the Logo field is a Post Image field. If so, you'll need to use the :url modifier to retrieve only the URL.
&logo={Logo:4:url}
More details here: https://docs.gravityforms.com/post-image-merge-tags/

Stop AppMaker deleting email address onSend

Im just learning AppMaker and I have followed along the tutorial on sending email https://developers.google.com/appmaker/tutorials/call-scripts/
It works as expected so I decided to bring it to another level by integrating it into my sign up form.
-- ISSUE OUTLINE --
A user enters their name and email in a standard signup form.
This is saved as expected this data is presented on the follow up page I created (see screenshot below)
When the admin clicks on the blue email button it opens up the email box (see attached image) and the users email is pulled into the To: box as expected (I have pulled the email by binding it to the text field).
The admin then sends the email which is sent as expected but then the form clears the To: field deleting it from the users entry.
-- QUESTION --
Can anyone advise on a solution it would be greatly appreciated :-)
Screenshot:
In the tutorial you mentioned, there is 'clearEmailForm' function that is called in case of successful sending email. I think you can delete code, that clears 'to' field:
/**
* Clears the entire email form
*/
function clearEmailForm(){
var formWidgets = app.pages.Email.descendants;
...
formWidgets.To.value = ""; // Delete this line
...
}

How do I embed a link to a reply in a telegram message?

I am trying to build a bot that sends messages which embed a couple of standard replies which can be sent just by tapping on them.
Each link would contain a space - e.g. "/ack 20134" & "/pass 20134"
So tapping on the first link causes the text "/ack 20134" to be sent back to the bot.
How do I embed this into the message that I send from the bot to the client in text, HTML or Markup?
set that element (button text for example) text field to "/ack 20134" .Then when user hit the button this command will send to your bot. you can use inline keyboards and set its data incallback_data to this value. But you cannont use it a text message because space separates two fields(embeds just "/ack" i.e. command part. user can hit it but your bot just receives "/ack".)
For text messages there is another option: do not use space(e.g. "/ack20134" without space) and your bot's would receive "/ack20134", then you must parse commands part)

Resources