splatek Posted March 8, 2007 Share Posted March 8, 2007 I am trying to get a php mailer script to work with a data collection software I am using. the script looks like such: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>PXLab Data File</TITLE> </HEAD> <BODY> <FONT face="Verdana, Helvetica"> <h3>PXLab Data File <?php echo $IAT_Test; ?></h3> <?php $SendData = "\nSending Document: ".$_SERVER["HTTP_REFERER"]."\n". "Source IP: ".$_SERVER["REMOTE_ADDR"]."\n". "Script: ".$_SERVER["SCRIPT_FILENAME"]."\n". "Request Method: ".$_SERVER["REQUEST_METHOD"]."\n". "Email: ".$_REQUEST["Email"]."\n". "DataFileName: ".$_REQUEST["DataFileName"]."\n". "Data: \n\n".$_REQUEST["Data"]."\n"; mail('[email protected]', "PXLab Data File ".$DataFileName, $SendData, "From: PXLab" ); ?> Thank you for your participation. Your data <?php echo $IAT_Test; ?> has been sent to Steven Platek, the lead researcher.<?php echo('[email protected]'); ?>. <p><small>S. Platek 2007</small> </BODY> </HTML> its supposed to work with a program called PXLab to collect data and send the results via email. However, I cannot get this to work - any assistance would be greatly appreciated. Cheers, SP Link to comment https://forums.phpfreaks.com/topic/41774-mail-data/ Share on other sites More sharing options...
r-it Posted March 8, 2007 Share Posted March 8, 2007 when you echo the data, does it display anything? first check if there is data there Link to comment https://forums.phpfreaks.com/topic/41774-mail-data/#findComment-202553 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.