ImJustBrndn Posted August 21, 2006 Share Posted August 21, 2006 Ok..I know I've been asking a lot of questions today, but everyone is just so helpful.I have all the information generated on my page stored in a session (called "bubba"). This information is different stuff they select from around the site. I would like to dump all the information stored in the session to an e-mail and have it sent to me, or posted somewhere online or something, so it makes kind of an invoice or something. If anyone can point me in the right direction, I've tried searching google but I'm really new at all of this and might not be looking for the right thing.Thanks in advance,B Quote Link to comment https://forums.phpfreaks.com/topic/18153-output-session-to-e-mail/ Share on other sites More sharing options...
High_-_Tek Posted August 21, 2006 Share Posted August 21, 2006 Well... couldnt you just do something in the order of this:<?phpsession_start();$data = $_SESSION['bubba'];mail(__TO__, __SUBJECT__, $data);?>Replace to and subject with the to email and subejct, respeictivly Quote Link to comment https://forums.phpfreaks.com/topic/18153-output-session-to-e-mail/#findComment-77845 Share on other sites More sharing options...
ImJustBrndn Posted August 21, 2006 Author Share Posted August 21, 2006 Either I'm an idiot or that doesn't work. <?phpsession_start();$data = $_SESSION['bubba'];mail('[email protected]','This Is Your Info', $data );?>I get an e-mail with $data in it and nothing else. Quote Link to comment https://forums.phpfreaks.com/topic/18153-output-session-to-e-mail/#findComment-77853 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.