Welcome, Guest
  • Author Topic: Does this Ecard thing work?  (Read 5062 times)

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Does this Ecard thing work?
    « on: 02/12/09, 14:04 »
    I have tried to send myself emails several times and I get nothing (from the flash-db site demo and from other sites in this help section). I have checked my spam/junk mail folders, tried sending from different accounts, etc. Can anyone send me a link to a card that I can look at?

    Please ?

    Thanks,

    Kirk

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Does this Ecard thing work?
    « Reply #1 on: 02/12/09, 14:15 »
    Where did you install the eCard tutorial?
    Did you check the ability of the server?
    Did you read the text comming with this tutorial?
    happy flashing
    8)
    Ronald

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #2 on: 02/12/09, 14:21 »
    i installed it here:

    http://dcdev.arn.com/ecards/index.html

    I'm checking with my admin to see if email sending is enabled.

    Yes I read all the text but I can't even get the demo to work (I can't receive an email from the demo on flash-db.com, let alone on my site.)

    thanks for quick reply

    « Last Edit: 02/12/09, 16:34 by cappinkirk »

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #3 on: 02/12/09, 17:01 »
    fixed the link, it was wrong before. my server sends email & has php but I cannot get the thing to send mail. It just says "sending ecard please hold"

    I changed the php file to contain the correct domain btw, but it doesnt work

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Does this Ecard thing work?
    « Reply #4 on: 02/13/09, 02:38 »
    at the beginning of the file "SendEcard.php" change at the first line:

    <? into <?php

    this should do it.
    happy flashing
    8)
    Ronald

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #5 on: 02/13/09, 10:59 »
    it's writing the files to the dbtext folder properly but the email isn't sending

    any thoughts?

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Does this Ecard thing work?
    « Reply #6 on: 02/13/09, 12:22 »
    Did you check the basic functionality of sendmail?

    does this line work:

    mail("yourmailaddress","something","content","From:yourmailaddress");

    replace yourmailaddress with your real mailaddress - only mailaddress, nothing else.
    happy flashing
    8)
    Ronald

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #7 on: 02/13/09, 12:29 »
    that works, but it still says..."sending e-card please hold"

    that's really not a problem tho

    any tips are welcomed but at least that works.

    i just need to find out what the problem is in the email line I guess.

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

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Does this Ecard thing work?
    « Reply #8 on: 02/13/09, 12:35 »
    some mailers dont like the $ToName." <".$ToEmail.">", - try to use $ToEmail only.

    mail($ToEmail,$ToSubject, $Message, "From: ".$FromEmail);

    did you make sure you read the variables right with $ToEmail=$_POST['ToEmail'] etc. ?
    happy flashing
    8)
    Ronald

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #9 on: 02/13/09, 12:39 »
    i'm getting it now...thanks a million!

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #10 on: 02/13/09, 14:35 »
    now i get the email, the files write to dbtext, but when i click on the link all i see isthis:

    > ">   " quality=high bgcolor=#FFFFFF TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> > ">   " quality=high bgcolor=#FFFFFF TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">


    here's my code (SelectCard.php)

    <HTML>
    <HEAD>
    <TITLE>Here's your Flash Ecard - from the Flash-dB.com Tutorial</TITLE>
    <?
    $ENum = $_GET["ENum"];
    $EcardText = $_GET["EcardText"];
    switch ($ENum)
      case '1':
       $goto = "Ecard1.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1";
       $Dimensions = "WIDTH=400 HEIGHT=700";
       $DimensionsFooter = "WIDTH=400 HEIGHT=550";
       break;
       case '2':
       $goto = "Ecard2.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=2";
       $Dimensions = "WIDTH=400 HEIGHT=700";
       $DimensionsFooter = "WIDTH=400 HEIGHT=550";
       break;
       case '3':
       $goto = "Ecard3.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=3";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";
       break;
       case '4':
       $goto = "Ecard4.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=4";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";
       break;
       case '5':
       $goto = "Ecard5.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=5";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";
       break;
    }
    ?>
    </head>
    <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">
    <center>
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    <? print "$Dimensions";?>>
    <PARAM NAME=movie VALUE="<? print "$goto";?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="<? print "$goto";?>" quality=high bgcolor=#FFFFFF  <? print "$Dimensions";?> TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
    </OBJECT>
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    <? print "$DimensionsFooter";?>>
    <PARAM NAME=movie VALUE="<?print "$gotoFooter";?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="<? print "$gotoFooter";?>" quality=high bgcolor=#FFFFFF  <? print "$DimensionsFooter";?> TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
    </OBJECT>
    </center>
    </BODY>
    </HTML>

    any suggestions?

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Does this Ecard thing work?
    « Reply #11 on: 02/14/09, 02:24 »
    The PHP-File is written for a special setting at the server, which is not set at yours.
    Apache allows short (ASP like) tags, if the switch is set.
    Normaly Apache expects <?php as starting tag for php code - the short tag is <?

    Solution for you, and for all others having the problem, that php code is not executed, use the complete tags - means - replace all <? with <?php in all files.
    happy flashing
    8)
    Ronald

    cappinkirk

    • Server what's that
    • *
    • Posts: 8
      • View Profile
    Re: Does this Ecard thing work?
    « Reply #12 on: 02/20/09, 09:15 »
    you are simply amazing.

    thanks!