Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - send dynamic result to email
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

send dynamic result to email

 Post Reply Post Reply
Author
toke View Drop Down
Newbie
Newbie


Joined: 18 August 2011
Location: London
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote toke Quote  Post ReplyReply Direct Link To This Post Topic: send dynamic result to email
    Posted: 18 August 2011 at 4:11pm
Hi,

I have successfully created a simple html form that called an asp to load customers information.  The result page displayed fine.  What I would like to do next is to be able to email this result page.  Can someone help me or show me how to do it, please?

Thanks.
Back to Top
toke View Drop Down
Newbie
Newbie


Joined: 18 August 2011
Location: London
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote toke Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2011 at 7:52pm
Would it help if I post the code that I have been using?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2011 at 3:38pm
It depends upon when you want the email created.
1. Create the email automatically when the page is created.
2. Display the created page first with a button on it to email the page contents.

In either event, you need to create a string containing the specific items you want to email and then use that string as the body of the mail.

In case 1, the string creation and subsequent emailing is in addition to the page creation code.
In case 2, you'd call a separate asp to grab the information again and format it for an email.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
toke View Drop Down
Newbie
Newbie


Joined: 18 August 2011
Location: London
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote toke Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2011 at 4:40pm
Thank you dpyers.

Quote
2. Display the created page first with a button on it to email the page contents.

In either event, you need to create a string containing the specific items you want to email and then use that string as the body of the mail.

In case 2, you'd call a separate asp to grab the information again and format it for an email.


I would like to do the 2nd option.  But I don't know how to put all the information in a for loop in ASP and send it to the email page.

All I have in the page content is ...


Do While Not rs.eof

response.write rs("fname") & rs("lname")

rs.MoveNext
Loop


So how do I put each fname and lname into says.. firstname1, firstname2, lastname1, lastname2 and so on and email these nicely?

Thank you again.



Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.