Jump to content

Archived

This topic is now archived and is closed to further replies.

ImJustBrndn

Output Session To E-Mail

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.