Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:33
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Recent Tutorial Support
| |-+  Flash Ecards (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis)
| | |-+  .txt Message not Sending Messages
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: .txt Message not Sending Messages  (Read 2110 times)
kirsten
Server what's that
*
Posts: 3



View Profile Email
« on: 02/09/03, 12:37 »

I'm not very familier with PHP scritping so, if s/o could proof this it would be greatly apprectiated.

Goal : send ecards
.txt files are being saved in dBText folder, however no emails are being sent.  It may be due to the folder locations. The actual Ecards folder is in the /www folder and the dBText folder is outside the /www
so, it would look like this:
/www/Ecards/Ecards.html
.txt/dBText/www


The txt docs say:
This is what the .txt docs contains:

ToName=&ToEmail=&FromName=&FromEmail=&Greeting=&IntroMessage=&Created=Ecard Created on Monday 10th of February 2003 ( 08:17:36 PM )




PHP:--------------------------------------------------------------------------------
<?
<?

$CreateEcard = date(U);

$filename = $CreateEcard.".txt";

$ToName = stripslashes($ToName);
$FromName = stripslashes($FromName);
$Greeting = stripslashes($Greeting);
$IntroMessage = stripslashes($IntroMessage);
$EndMessage = stripslashes($EndMessage);
$Today = (date ("l dS of F Y ( h:i:s A )",time()));
$Created="Ecard Created on $Today";
$EcardNum = $EcardSelect;
$EcardText = "ToName=$ToName&ToEmail=$ToEmail&FromName=$FromName&FromEmail=$FromEmail&Greeting=$Greeting&IntroMessage=$IntroMessage&Created=$Created";$fp = fopen( "../../dBText/$filename","w");
fwrite($fp, $EcardText, 10000);
fclose( $fp );

######Email Card########
## You can change the subject and the message part around.
## Make sure to change the Link as stated in the Tutorial.
## (Change from 'someSite' to your actual site - leave the rest the same


$ToSubject = "You have recieved a Flash Ecard from $FromName";
$Message = "$ToName,\nYou have recieved a Flash card from $FromName. \nClick the following link to view your card:\n\n <a href="http://www.khaus.com/Ecards/SelectCard.php4?EcardText=" target="_blank">http://www.khaus.com/Ecards/SelectCard.php4?EcardText=</a>$CreateEcard&ENum=$EcardNum\n\n-----------------------------------\nHere is the message that was sent:\n$ToName,\n$Greeting\n$IntroMessage\n\n-$FromName\n\n\n-----------------------------------\nThis card was sent from <a href="http://www.flash-db.com/Ecards/\n\nThe" target="_blank">www.flash-db.com/Ecards/\n\nThe</a> Flash-dB Team.";


###################
## This line actually sends the email - you should not have to change this.

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FromName." <".$FromEmail.">");


## This next line returns a success message to the movie.
print "_root.Status=Success your Card Has Been Sent!";

#### End #########
## By: Jeffrey F. Hill
## <a href="http://www.flash-db.com" target="_blank">www.flash-db.com</a>

?>


« Last Edit: 02/10/03, 22:14 by kirsten » Logged
charlie
Server what's that
*
Posts: 13



View Profile Email
« Reply #1 on: 03/05/03, 19:36 »

looks to me that none of your feilds are being carried over from the flash file as the areas should have text in them something like this...

ToName=&ToEmail=bob@home.com&ToEmail2&FromName=bill&FromEmail=here@home.com&Greeting=&IntroMessage=this is a ecard for your popa bla bla blah&Created=Ecard Created on Tuesday 21st of January 2003 ( 04:10:15 PM )

check and make sure everything is pointing to the right place....
to start with you are disadvantaging yourself by not following the instructions ( of stucture ) therefore you will experience a little bit of trouble setting everything up and having everything point to the right file and area..but other that that it should work the same ..







« Last Edit: 03/05/03, 19:37 by charlie » Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #2 on: 03/11/03, 15:40 »

Hi,

any chance you are using php 4.1 or later?

Musicman
Logged
kirsten
Server what's that
*
Posts: 3



View Profile Email
« Reply #3 on: 03/17/03, 13:54 »

yeah contacted host provider and they side it supported 4.0 and greater
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!