This topic is locked

email record button

5/13/2005 7:15:41 PM
ASPRunnerPro General questions
E
eleka author

Is there a way to add a button on the bottom of each record that says something like "email record". After clicking this button, either outlook or a field appears to type in an email address so the record can be sent to a person. Once the email is entered another button to send the email.
After that send button is sent the email gets sent.

Sergey Kornilov admin 5/16/2005

Hi,
probably we'll add this feature in one of the following versions of ASPRunner Pro.

500248 6/7/2005

Would you be able to provide me with the sample coding of how I may add this to a record page?

Sergey Kornilov admin 6/10/2005

Hi,
you can open Viewpage for this record and use Internet Explorer Toolbar: Mail and News - Send page.

B
Bryan 7/14/2008

I appreciate the last response to this was about 3 years ago, but has this feature been added ASPRunner (in response to Admins answer below)?
If not, does anyone have any example code they could post of an easy way to email a user with details of the record (using info from other tables, not just the current one if possible)?
Thanks in advance.
Bryan

A
askingforit 7/14/2008

I need this functionality also. If you could please respond with how to do this it would be great

J
Jane 7/15/2008

Hi,
here are some tips:

  1. add custom event (Insert ASP code snippet option on the Visual Editor tab).

    Here is a sample code:
    str = "<input type=button style=button value=""send email"" onclick=""window.location.href='tablename_view.asp?sendemail=yes';"">"

    response.write str


2. check Request.QueryString("sendemail") variable in the View page: Before display event, select all required values and send email.

Here is a sample:

if Request.QueryString("sendemail)="yes" then

'select values

'send email

end if

F
fenhow 5/20/2009

Hi,
I am trying to use this code, can you tell me what goes here? 'select values & 'send email
if Request.QueryString("sendemail)="yes" then

'select values

'send email

end if
When I run this I am getting an error..
Thanks.

Fen

J
Jane 5/21/2009

Here is the correct code:

if Request.QueryString("sendemail")="yes" then

'select values

'send email

end if



Also I recommend you to have a look at the Send email with new data action.