Jump to content


Photo

Output Session To E-Mail


  • Please log in to reply
2 replies to this topic

#1 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 21 August 2006 - 02:31 AM

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

#2 High_-_Tek

High_-_Tek
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 21 August 2006 - 02:37 AM

Well... couldnt you just do something in the order of this:

<?php
session_start();
$data = $_SESSION['bubba'];

mail(__TO__, __SUBJECT__, $data);
?>

Replace to and subject with the to email and subejct, respeictivly

#3 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 21 August 2006 - 02:51 AM

Either I'm an idiot or that doesn't work.

<?php
session_start();
$data = $_SESSION['bubba'];

mail('a@b.com','This Is Your Info', $data );
?>

I get an e-mail with $data in it and nothing else.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users