Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

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

Web Wiz Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

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
Avatar

Joined: 12 May 2003
Status: Offline
Points: 3941
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
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved