# 3 Step Email

**URL:** <https://forum.kirupa.com/t/3-step-email/262636>\
**Category:** programming\
**Created:** [June 8, 2008, 9:08am UTC](https://forum.kirupa.com/t/3-step-email/262636 "2008-06-08T09:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marlorn](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@Marlorn](https://forum.kirupa.com/u/Marlorn)\
**Post date:** [June 8, 2008, 9:08am UTC](https://forum.kirupa.com/t/3-step-email/262636/1 "2008-06-08T09:08:29Z")

</div>

I’m creating a tool for a client that will allow them to fill out a form, preview what their custom email will look like, and then send the email. So…

Step 1: Fills out name, email, message and hits “Preview”

Step 2: Sees the echo’d HTML email with above var’s and hits “Send”

Step 3: Email sends and sees a confirmation message.

I have steps 1 and 2 working fine, but 3 is giving me problems. Since I have everything echo’d in Step 2, is there a way to somehow take that entire chunk and set it as its own variable to use in the mail() function? I’m also not sure how to get the var’s from Step 1 to carry all the way through to Step 3.

Thanks! 🍺

---

<div class="post-metadata">

**Author:** ![djheru](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/djheru/32/3190_2.png) [@djheru](https://forum.kirupa.com/u/djheru)\
**Post date:** [June 8, 2008, 12:55pm UTC](https://forum.kirupa.com/t/3-step-email/262636/2 "2008-06-08T12:55:18Z")

</div>

If you can show me the code you have so far, I’d be happy to help you.
