12
Views
4
Comments
Solved
Send mail with responsebutton
Application Type
Traditional Web
Service Studio Version
11.10.7 (Build 37468)

Hi

I was wondering if it is possible to send an email with a button in it, on which the receiver can click i.e. to approve a quote. The answer would be received by Outsystems.

Thanks in advance  

Huub Keulartz

Rank: #18826
Solution

Hi Assif

Thanks for your answer !

I will do it this way


Huub

Rank: #83
Solution

Hi,

yes you can send buttons or whatever want in an email.

- Use the HTML WB from WebPatterns

- Add the WB to you email body

- an html to show a button, which you will add in the HTMLCode of HtmlWB

<p align='center' valign='top' style=' width:142px; '>
<a href='"+URL+"' target='_blank' style='border-radius: 100px; background-color: rgb(214,81,92);color: white; text-decoration: none; padding-top:13px; padding-bottom:13px; display: block; width: 142px; '>                                                                                                           <span class='Register'>"+"APPROVE"+"</span>
</a>
</p>

- Now you need to prepare URL add to the button, whatever action you want to pass .. you can pass in URL
like http://xyz.com/myproject/screen?IsApprove=true&UserId=123 etc

You can also use encryption & decryption to create secure Url's

- Once the user clicks on a button from the email.. it will open a page & that page preparation can retrieve the values from the URL & take the decision accordingly.
After that you can show them a feedback msg etc.

Hope it helps,
Assif

Rank: #18826
Solution

Hi Assif

Thanks for your answer !

I will do it this way


Huub

Rank: #288

HI Huub Keulartz

I am not sure if you can add a button to an email.
But the easy way is instead of a button you can add a link to the email.

Kind Regards,


Rank: #288

Please refer to the image attached

MailLink.jpg

Rank: #83
Solution

Hi,

yes you can send buttons or whatever want in an email.

- Use the HTML WB from WebPatterns

- Add the WB to you email body

- an html to show a button, which you will add in the HTMLCode of HtmlWB

<p align='center' valign='top' style=' width:142px; '>
<a href='"+URL+"' target='_blank' style='border-radius: 100px; background-color: rgb(214,81,92);color: white; text-decoration: none; padding-top:13px; padding-bottom:13px; display: block; width: 142px; '>                                                                                                           <span class='Register'>"+"APPROVE"+"</span>
</a>
</p>

- Now you need to prepare URL add to the button, whatever action you want to pass .. you can pass in URL
like http://xyz.com/myproject/screen?IsApprove=true&UserId=123 etc

You can also use encryption & decryption to create secure Url's

- Once the user clicks on a button from the email.. it will open a page & that page preparation can retrieve the values from the URL & take the decision accordingly.
After that you can show them a feedback msg etc.

Hope it helps,
Assif

Rank: #18826
Solution

Hi Assif

Thanks for your answer !

I will do it this way


Huub