Author Topic: Ecard is not send  (Read 2741 times)

0 Members and 1 Guest are viewing this topic.

Offline 4IBabs

  • Pre-Newbie
  • Posts: 1
    • View Profile
Ecard is not send
« on: January 25, 2008, 08:49:04 AM »
After implementing modify-mod http://www.4homepages.de/forum/index.php?topic=6805.0  no email-message is send when a card is send. The database is filled correctly. Previously I implemented mod http://www.4homepages.de/forum/index.php?topic=7348.msg32686#msg32686 , which works fine.
I use 1.7.1
The mod-topic has not been replyed to for over 120 days, so I hereby start a new topic.

Can someone please help?
Thank you,

Marijke


postcard_create.html:
Code: [Select]
{header}

<SCRIPT language=JavaScript type=text/javascript>
<!--
msg_alert_music = 'Selecciona una melod’a.';
// -->
</SCRIPT>

<SCRIPT language=JavaScript
src="./postcard.js">
</SCRIPT>


 <tr>
 <td>
 <?php
 $tu 
"{template_url}";
 
$us "{url_search}";
 
$ls "{lang_search}";
 
$las "{lang_advanced_search}";
 require 
"{template_url}/incl/searchbox.php"
 
?>

 </td>
 </tr>
 <tr>
 <td class="bordercolor">
 <table width="100%" border="0" cellspacing="1" cellpadding="0">
 <tr>
 <td class="tablebgcolor">
 <?php
 $cl 
'{clickstream}';
 
$uti "{url_top_images}";
 
$lti "{lang_top_images}";
 
$uni "{url_new_images}";
 
$lni "{lang_new_images}";
 
$ldt "{lang_datings}";
$udt "{lang_url_datings}";
 require 
"{template_url}/incl/click_incl.php"
 
?>

 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="150" class="row2" valign="top">
 <?php
 $ub 
'{menu}';
 
$lru "{lang_taal}";
 require 
"{template_url}/incl/menu_incl.php"
 
?>

{if random_image}
  <table width="150" border="0" cellspacing="0" cellpadding="0">
   <tr>
   <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
   </tr>
   <tr>
   <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
   </tr>
   <tr>
   <td align="center" class="row1">
   <br />
   {random_image}

<table >
<tr><td><a href="{lang_mediaplazza_url}" target="_blank"><img src="{lang_mediaplazza_img}" alt="" border="0"></a></td></tr>
</table>
<br />
</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</table>
{endif random_image}
</td>
<td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
<td width="18" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="18" height="18" /></td>
<td width="100%" valign="top">
<br />
<span class="title">{lang_send_postcard}</span>
<hr size="1" />
{if msg}<b>{msg}</b>{endif msg}
<form method="post" action="{url_postcard}" name="createCard">
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td valign="top" class="head1">
                      <table width="100%" border="0" cellpadding="4" cellspacing="0">
                        <tr>
                          <td colspan="3" class="head1" valign="top" width="100%">
                          {image_name}</td>
                        </tr>
                        <tr align="center">
                          <td class="row2" colspan="3">{image}</td>
                        </tr>
                        <tr align="center">
                          <td class="row1" colspan="3" height="18"></td>
                        </tr>

                        <tr>
                          <td class="row2" valign="top" width="139"><b>{lang_bg_color}</b></td>
                          <td class="row2" valign="top" width="135">
                          <select name="bg_color" class="formfield" onChange="document.all.fondocolor.style.background = this.options[this.selectedIndex].value">
                          <option style="BACKGROUND-COLOR: white" value="white" selected>Blanco</option>
                          <option style="BACKGROUND-COLOR: Aliceblue" value="#F0F8FF">Aliceblue</option>
                                                   </select> </td>
                          <td class="row2" valign="top" width="134">
                          <div id="fondocolor" style="height: 20px; width: 40px; border: 1px solid gray; padding: 0px; background-color: white">
                          </div>
                          </td>
                        </tr>
                        <tr>
                          <td class="row1" valign="top" width="139"><b>{lang_border_color}</b></td>
                          <td class="row1" valign="top" width="135">
                          <select name="border_color" class="formfield" onChange="document.all.bordercolor.style.background = this.options[this.selectedIndex].value">
                          <option style="BACKGROUND-COLOR: white" value="white" selected>Blanco</option>
                          <option style="BACKGROUND-COLOR: Aliceblue" value="#F0F8FF">Aliceblue</option>
                                         </select> </td>
                          <td class="row1" valign="top" width="134">
                          <div id="bordercolor" style="height: 20px; width: 40px; border: 1px solid gray; padding: 0px; background-color: white">
                          </div>
                          </td>
                        </tr>
                        <tr>
                          <td class="row2" valign="top" width="139"><b>{lang_font_color}</b></td>
                          <td class="row2" valign="top" width="135">
                          <select name="font_color" class="formfield" onChange="document.all.fuentecolor.style.background = this.options[this.selectedIndex].value">
                          <option value="#000000" selected>Zwart</option>
                          <option style="BACKGROUND-COLOR: Aliceblue" value="#F0F8FF">Aliceblue</option>
                                                   </select> </td>
                          <td class="row2" valign="top" width="134">
                          <div id="fuentecolor" style="height: 20px; width: 40px; border: 1px solid gray; padding: 0px; background-color: Black">
                          </div>
                          </td>
                        </tr>
              <tr>
                <td class="row1" valign="top" width="139"><b>{lang_font_face}</b></td>
                 <td class="row1" valign="top" width="135">
                  <select name="font_face" value="Arial" onChange=" cambiar4(this.options[this.selectedIndex].value)">
    <option value="Arial">Arial</option>
    <option value="Arial Black">Arial Black</option>
    </select>
  </td>
            <td class="row1" width="134" valign="top"><div id="fuente" style="height: 20px; width: 140px; border: 1px solid gray; padding: 0px; background-color: grey">
            </div>
            <script language="javascript"> cambiar4("Arial")
                          </script>

          </td>
     </tr>

                       
                       <tr>
                         <td class="row2" valign="top" width="139"><b>{lang_efecto_card}</b></td>
                         <td class="row2" valign="top" width="135">
                         <select name="efecto_card" onChange=" cambiar3(this.options[this.selectedIndex].value)">
                         <option value="" selected>Non</option>
         <option></option>
                         <option value="burbujas">burbujas</option>
                                                  </select></td>
                          <td class="row2 "width="134" valign="top">
                          <div id="efectos" style="height: 32px; width: 62px; border: 1px solid gray; padding: 0px">
                          </div>
                        </td>
                        </tr>
                        <tr>
                          <td class="row1" valign="top" width="139"><b>{lang_stamp_card}</b></td>
                          <td class="row1" valign="top" width="135">
                          <select name="stamp_card" onChange=" cambiar1(this.options[this.selectedIndex].value)">
                          <option VALUE="postzegel18.gif">{lang_postzegel}</option>
                          <option VALUE="postzegel1.jpg">postzegel 13</option>
                                                   </select></td>
                          <td class="row1" width="134" valign="top">
                          <div id="sellos" style="height: 52px; width: 62px; border: 1px solid gray; padding: 0px">
                          </div>
                          <script language="javascript"> cambiar1("postzegel18.gif")
                          </script>
                          </td>
                        </tr>
                        <tr>
                          <td class="row2" valign="top" width="139"><b>{lang_bg}</b></td>
                          <td class="row2" valign="top" width="135">
                          <select name="bg" onChange=" cambiar2(this.options[this.selectedIndex].value)">
                          <option value="">{lang_achtergrond}</option>
                          <option value=""></option>
                                                   <option value="white_wall.jpg">White Wall</option>
                          </select></td>
                          <td class="row2" valign="top" width="134">
                          <div id="fondos" style="height: 52px; width: 62px; border: 1px solid gray; padding: 0px">
                          </div>
                          </td>
                        </tr>
                      <!--  <tr>
                          <td class="row1" width="139"><b>{lang_poema_card}</b>
                          </td>
                          <td class="row1" valign="top" colspan="2" width="269">
                          <select class="boton" size="1" name="poema_card">
                          <option value="" selected> Sin poema </option>
  <option value=""></option>
                          <option value="poe01.txt">RIMA 1.Gustavo Adolfo
                          BŽcquer</option>
                         
                          </select> </td>
                        </tr>
                        <tr>
                          <td class="row2" valign="top" width="139">&nbsp;</td>
                          <td class="row2" valign="top" colspan="2" width="269">
                          <input onclick="leerpoema((this.form));return false;" type="button" value=" Leer Poema " class="button">
                          </td>
                        </tr>-->                        <tr>
                          <td class="row1" width="139"><b>{lang_mid}</b></td>
                          <td class="row1" valign="top" colspan="2" width="269">
                          <select name="mid">
                          <option value ="">{lang_muziek}</option>
                          <option value=""></option>
                          <option value="Fuerza_del_corazon.mid">(Alejandro
                          Sanz) La fuerza del coraz—n (midi)</option>
                          <option value="Pisando_fuerte.mid">(Alejandro Sanz)
                          Pisando fuerte (midi)</option>
                                                    </select></td>
                        </tr>
                        <tr>
                          <td class="row1" valign="top" width="139">&nbsp;</td>
                          <td class="row1" valign="top" colspan="2" width="269">
                          <input onclick="playmusic(this.form)" type="button" value="{lang_luister}" class="button">
                          </td>
                        </tr>
                        <tr>
                          <td class="row2" width="139"><b>{lang_template_card}</b></td>
                          <td class="row2" colspan="2" width="269">
                          <table style="border-collapse: collapse" border="0">
                            <tr>
                              <td width="25%" valign="bottom">
                              <input type="radio" value="postcard_preview" name="template_card" checked>
                              <img src="formato/style_01.gif" width="39" height="32"></td>
                              <td width="25%" valign="bottom">
                              <input type="radio" value="postcard_preview_2" name="template_card">
                              <img src="formato/style_02.gif" width="39" height="45"></td>
                              <td width="25%" valign="bottom">
                              <input type="radio" value="postcard_preview_3" name="template_card">
                              <img src="formato/style_03.gif" width="39" height="32"></td>
                            </tr>
                          </table>
                          </td>
                        </tr>
<tr>
<td class="row1" width="139"><b>{lang_postcard_email_format}</b></td>
<td class="row1" colspan="2" width="269">
 
 <!--<table width="272" border="0" style="border-collapse: collapse">
 <tr>
<td width="83" valign="bottom">
<input name="email_format" type="radio" value="texto" checked /> <b><font face="Times New Roman">Texto</font></b></td>
<td width="85" valign="bottom">
<input name="email_format" type="radio" value="html" /><b><font face="Times New Roman">Html</font></b></td> 
<td width="98" valign="bottom">
<input name="email_format" type="radio" value="texto&html" /> <b><font face="Times New Roman">Texto y Html</font></b></td>
</tr>
</table> -->
</td>
</tr>

                        <tr>
                          <td colspan="3" class="head2" valign="top" width="418">
                          {lang_sender}</td>
                        </tr>
                        <tr>
                          <td class="row2" valign="top" width="139"><b>{lang_name}</b></td>
                          <td class="row2" valign="top" colspan="2" width="269">
                          <input type="text" name="sender_name" value="{sender_name}" class="input" size="20">
                          </td>
                        </tr>
                        <tr>
                          <td class="row1" valign="top" width="139"><b>{lang_email}</b></td>
                          <td class="row1" valign="top" colspan="2" width="269">
                          <input type="text" name="sender_email" value="{sender_email}" class="input" size="20">
                          </td>
                        </tr>
                        <tr>
                          <td colspan="3" class="head1" valign="top" width="418">
                          {lang_recipient}</td>
                        </tr>
                        <tr>
                          <td class="row1" width="139"><b>{lang_name}</b></td>
                          <td class="row1" colspan="2" width="269">
                          <input type="text" name="recipient_name" value="{recipient_name}" class="input" size="20">
                          </td>
                        </tr>
                        <tr>
                          <td class="row2" width="139"><b>{lang_email}</b></td>
                          <td class="row2" colspan="2" width="269">
                          <input type="text" name="recipient_email" value="{recipient_email}" class="input" size="20">
                          </td>
                        </tr>
                        <tr>
                          <td class="row1" width="139"><b>{lang_headline}</b></td>
                          <td class="row1" colspan="2" width="269">
                          <input type="text" name="headline" value="{headline}" class="input" size="20">
                          </td>
                        </tr>
                        <tr>
                          <td class="row2" valign="top" width="139"><b>{lang_message}</b></td>
                          <td class="row2" valign="top" colspan="2" width="269">
                          <textarea name="message" wrap="virtual" class="textarea" cols="30" rows="7">{message}</textarea>
</td>
</tr>
                      </table>
                      </td>
                    </tr>
                  </table>
                  <input type="hidden" name="action" value="previewcard">
                  <input type="hidden" name="image_id" value="{image_id}">
                  <input type="hidden" name="back_url" value="{back_url}">
                  <p align="center">
                  <input type="submit" value="{lang_preview_postcard}" class="button">
                  </p>
                </form>
               
<script language="javascript" type="text/javascript">
var bg_color = "{bg_color}";
var border_color = "{border_color}";
var font_color = "{font_color}";
var font_face = "{font_face}";
   
function RestoreUserValues()
{
  var x = document.forms.createCard;
  for (i=0;i<x.bg_color.length;i++) {
    if (x.bg_color[i].value == bg_color) {
      x.bg_color[i].checked = true;
      break;
    }
  }
  for (i=0;i<x.border_color.length;i++) {
    if (x.border_color[i].value == border_color) {
      x.border_color[i].checked = true;
      break;
    }
  }
  for (i=0;i<x.font_color.length;i++) {
    if (x.font_color[i].value == font_color) {
      x.font_color[i].checked = true;
      break;
    }
  }
  for (i=0;i<x.font_face.length;i++) {
    if (x.font_face[i].value == font_face) {
      x.font_face[i].checked = true;
      break;
    }
  }
}
if( bg_color != "" )
  RestoreUserValues();
</script>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr><td align="center">
     <script type="text/javascript"><!--
{lang_google_wijd}
//--></script>
<script type="text/javascript"
  src="{lang_google_wijd2}">
</script>
    </td>
  </tr>
</table>


<?php
 
require "{template_url}/incl/t_close.php"
?>

</td>
</tr>
<tr>
<td>
<?php 
 
require "{template_url}/incl/bott_incl.php"
?>

</td>
</tr>
</table>
{footer}

postcard_preview.html:
Code: [Select]
{header}

<script language="JavaScript"><!--

function musicOff() {

document.midi.stop()

}

function musicOn() {

document.midi.play()

}

function changeButton() {

if (document.onoff.B1.value=='Music Off') {

document.onoff.B1.value='Music On';

musicOff()

}

else {

document.onoff.B1.value='Music Off';

musicOn()

  }

}

function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=350,left = 250,top = 150');");

}



//--></script>

{if efecto_card}

<script language="JavaScript" src="./efectos/{efecto_card}.js"></script>

{endif efecto_card}



<p align="center">{if msg}<b>{msg}</b>{endif msg}</p>

<form name="previewCard" action="{url_postcard}" method="post">

  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" background="./background/{bg}">

    <tr>

      <td><br></br> <center><br>

        <table border="4"  cellspacing="0" cellpadding="0" bgcolor="{bg_color}"  bordercolor="{border_color}" style="border-collapse: collapse">

          <tr>

            <td valign="bottom">

              <table border="0" cellspacing="0" cellpadding="10" bgcolor="{bg_color}" bordercolor="{border_color}" style="border-collapse: collapse">

                <tr>

                  <td valign="top">{image}</td>

                  <td valign="top" width="200" height="43">

                    <div align="right"><img src="./sellos/{stamp_card}" border="0" /></div>

                    <div align="right">&nbsp;</div>

                    <div align="right">&nbsp;</div>

                    <b>

                    <font color="{font_color}">Saludos : {recipient_name}<br />Soy :

                    <font face="{font_face}" color="{font_color}" >{sender_name}</font></font></b><p>

                    <b><font face="{font_face}" color="{font_color}" size="4">{headline}</font></b>

<br /><br />

                    <font face="{font_face}" color="{font_color}" size="2">{message}</font>

<br /><br />

                    <br />

<a href="mailto:{sender_email}" style="text-decoration: none"><font face="{font_face}" color="{font_color}" size="2">{sender_email}</font></a></p>

                    <p align="center">{if mid}<EMBED name="midi" SRC="midi/{mid}" HIDDEN="TRUE" AUTOSTART=true width="128" height="128"></embed><input type="button" value="Music Off" name="B1" onClick="changeButton()" class="button">{endif mid}

                    </p>

                    <p align="center">

                 {if poema_card}<b><font color="{font_color}">Tienes un poema:</font></b><p align="center">

                 <b><input type=button class="button" value="Ver poema" onClick="javascript:popUp('./poemas/{poema_card}.html')">

                   

                    </b>{endif poema_card}</td>

                </tr>

              </table>

            </td>

          </tr>

        </table>

                <p align="center">

        <br />

        <br />

        <b>{lang_sender} : ({sender_email})&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {lang_recipient} : ({recipient_email})&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {lang_postcard_email_format}

        ({postcard_email_format})</b><br></br> </td>

    </tr>

  </table>

  <p align="center">

    <input type="hidden" name="bg_color" value="{bg_color}" />

    <input type="hidden" name="border_color" value="{border_color}" />

    <input type="hidden" name="font_color" value="{font_color}" />

    <input type="hidden" name="font_face" value="{font_face}" />

    <input type="hidden" name="bg" value="{bg}" />

    <input type="hidden" name="mid" value="{mid}" />

    <input type="hidden" name="efecto_card" value="{efecto_card}" />

    <input type="hidden" name="poema_card" value="{poema_card}" />

    <input type="hidden" name="stamp_card" value="{stamp_card}" />

    <input type="hidden" name="template_card" value="{template_card}" />

    <INPUT type="hidden" name="email_format" value="{email_format}" />   

    <input type="hidden" name="sender_name" value="{sender_name}" />

    <input type="hidden" name="sender_email" value="{sender_email}" />

    <input type="hidden" name="recipient_name" value="{recipient_name}" />

    <input type="hidden" name="recipient_email" value="{recipient_email}" />

    <input type="hidden" name="headline" value="{headline}" />

    <input type="hidden" name="message" value="{message}" />

    <input type="hidden" name="action" value="sendcard" />

    <input type="hidden" name="image_id" value="{image_id}" />

    <input type="hidden" name="back_url" value="{back_url}" />

     <input type="button" value="{lang_edit_postcard}" onclick="document.forms.previewCard.elements['action'].value = 'modifycard';document.forms.previewCard.submit();" class="button" />

    <input type="submit" value="{lang_send_postcard}" class="button" />

  </p>

</form>

{footer}

postcard_send.html:
Code: [Select]
{header}

<script language="JavaScript"><!--

function musicOff() {

document.midi.stop()

}

function musicOn() {

document.midi.play()

}

function changeButton() {

if (document.onoff.B1.value=='Music Off') {

document.onoff.B1.value='Music On';

musicOff()

}

else {

document.onoff.B1.value='Music Off';

musicOn()

  }

}



function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=350,left = 250,top = 150');");

}



//--></script>

{if efecto_card}

<script language="JavaScript" src="./efectos/{efecto_card}.js"></script>

{endif efecto_card}



<p align="center">{if msg}<b>{msg}</b>{endif msg}</p>

<form name="onoff" action="{url_postcard}" method="post">

  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" background="./background/{bg}">

    <tr>

      <td><br></br> <center><br>

        <table border="4"  cellspacing="0" cellpadding="0" bgcolor="{bg_color}"  bordercolor="{border_color}" style="border-collapse: collapse">

          <tr>

            <td valign="bottom">

              <table border="0" cellspacing="0" cellpadding="10" bgcolor="{bg_color}" bordercolor="{border_color}" style="border-collapse: collapse">

                <tr>

                  <td valign="top">{image}</td>

                  <td valign="top" width="200" height="43">

                    <div align="right"><img src="./sellos/{stamp_card}" border="0" /></div>

                    <div align="right">&nbsp;</div>

                    <div align="right">&nbsp;</div>

                    <b>

                    <font color="{font_color}">Saludos : {recipient_name}<br />Soy :

                    <font face="{font_face}" color="{font_color}" >{sender_name}</font></font></b><p>

                    <b><font face="{font_face}" color="{font_color}" size="4">{headline}</font></b>

<br /><br />

                    <font face="{font_face}" color="{font_color}" size="2">{message}</font>

<br /><br />

                    <br />

<a href="mailto:{sender_email}" style="text-decoration: none"><font face="{font_face}" color="{font_color}" size="2">{sender_email}</font></a></p>

                    <p align="center">{if mid}<EMBED name="midi" SRC="midi/{mid}" HIDDEN="TRUE" AUTOSTART=true width="128" height="128"></embed><input type="button" value="Music Off" name="B1" onClick="changeButton()" class="button">{endif mid}

                    </p>

                    <p align="center">

                 {if poema_card}<b><font color="{font_color}">Tienes un poema:</font></b><p align="center">

                 <b><input type=button class="button" value="Ver poema" onClick="javascript:popUp('./poemas/{poema_card}.html')">

                   

                    </b>{endif poema_card}</td>

                </tr>

              </table>

            </td>

          </tr>

        </table>

                <p align="center">

        <br />

        </br> </td>

    </tr>

  </table>



         

         

         

         

         

        </tr>

      </table>

    </td>

  </tr>

</table>

<p align="center"><a href="{url_home}">{site_name}</a></p>

{footer}
« Last Edit: January 30, 2008, 07:51:58 PM by 4IBabs »