invite handler mailing

Status
Niet open voor verdere reacties.

phille125

Gebruiker
Lid geworden
3 aug 2009
Berichten
57
hoe kan ik via in deze code xhtml steken om een mail te versturen.
via een scherm worder een naam en mail adres gevraagd en in dit bestand verwerkt. de mail die verstuurd word naar de guest zou een mailing moeten zijn (en uitzien)

PHP:
<?php
$subject = "Educational Revue 2010";
					$date = "Datum van aanvraag: " . date("d/m/Y H:i:s");
					$mail = $_REQUEST ["mail"];
					$Name = $_REQUEST ["Name"];
					$Fistname = $_REQUEST ["Fistname"];
					$invate_name = $_REQUEST ["invate_name"];
					$invate_mail = $_REQUEST ["invate_mail"];
					$link = '<a href=https://twitter.com/angela_bradley>My Twitter</a>';
					$to = $invate_mail;


					if ($Name == "")
					{
						echo ("Fill out your name<br />");
						echo ("<br /><a href='Javascript:history.back()'>go back</a>");
					}
					elseif ($mail == "")
					{
						echo ("Fill out your E-mail address<br />");
						echo ("<br /><a href='Javascript:history.back()'>go back</a>");
					}
					else
					{
						mail ("$to", "$subject $contacttype", "$date\n$Name $Fistname\nmail:$mail\nlink:$link", "From:$Name<$mail>\r\n");
						mail ("$mail", "$subject $contacttype", "$date\n", "From:$to<$to>\r\n");
						echo ("Dear $Name,<br />");
						echo ("We have send your Guest an e-mail .<br />");
						echo ("<br /><a href='Javascript:history.back()'>go back</a>\n");
            	    }
           		?>
en dit is de mailing die mee moet
HTML:
<body style=" background-color:#FFFFFF;">
<center>
<p style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:9px; color:#999999; padding:0px 0px 0px 250px;">If this mail does not display properly, click <a href="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/MPImailing.html" target="_blank">here</a>.</p>
<table style="border:0; border-collapse:collapse; padding:0; margin:0; vertical-align:top;">
  <tr align="center" valign="top">
    <td style="width:10px; border:0; padding:0; margin:0;"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/shadingL.jpg" width="10px" height="1240px" /></td>
    <td style="width:600px; padding:0; margin:0;">
      <table style="border:0px; border-collapse:collapse;">
        <tr>
          <td style="padding:0px; margin:Opx; width:600px;"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/visual.jpg" width="602px" height="128px" border="0px" alt="Meeting Industry - Educational Revue 2010" /></td>
        </tr>
        <tr>
          <td style="margin:Opx; color:#FFFFFF; background-color:#4c84c1; padding:3px 14px 3px 14px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px;">Tuesday 19 October 2010 &nbsp;<font size="-1">Antwerp Hilton Hotel</font></td>
        </tr>
        <tr>
          <td style="margin:Opx; color:#666666; background-color:#ffffff; padding:3px 14px 3px 14px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;">
            <table>
              <tr>
                <td style="font-size:13px"><p style="font-size:16px;">"A united meeting industry, discovering new frontiers"</p>
                <p>A wide angle and entertaining mix of all kinds of information, tips and tricks,
                    interviews, news and trends of value for the meeting industry.<br />Get inspired by more then 20 speakers in one day.</p>
                  <p>Special guest: <em>Jan Verheyen.</em></p>
                  <p>For more information click <a href="http://www.educationalrevuempibelgium.be" target="_blank">here</a></p></td>
              </tr>
              <tr>
                <td style="background-color:#EEEEEE; margin:20px; padding:8px"><p style="font-size:13px; padding:0px; margin:0px">Programme</p>
                  <ul>
                    <li>Welcome - 9h15</li>
                    <li>Revue - 10h00 &gt; 19h00</li>
                    <li>Drinks - 19h00 &gt; 20h00</li>
                  </ul></td>
              </tr>
              <tr>
                <td style="margin:0px; padding:0px;"><p style="font-size:13px">Speakers</p>
                  <table width="500px" border="0px" style="border-collapse:collapse; margin:0px; padding:0px;">
                    <tr>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/verheyen.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Jan Verheyen" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/leki.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Leki" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/konings.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Herman Konings" /></a></td>
                      
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Jan Verheyen</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Karoline Kamosi - Leki</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Herman Konings</td>
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/branson.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Len Branson" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/richie.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Peggy Richie" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/dewit.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Steve De Wit" /></a></td>
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Len Branson</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Peggy Richie</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Steve De Wit</td>
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/raats.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Karl Raats" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/vanremoortele.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Martine Vanremoortele" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/hesselingM.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Michiel Hesseling" /></a></td>
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Karl Raats</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Martine Vanremoortele</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Michiel Hesseling</td>
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/hersee.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Robert Hersee" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/mukherjee.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Ron Mukherjee" /></a></td>
                      <td width="30%" style="text-align:center; margin:Opx;"><a href="http://www.educationalrevuempibelgium.be/speakers.html" target="_blank"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/hesselingW.jpg" width="80px" height="107px" border="3px" style="border-color:#eeeeee;" alt="Foto Wouter Hesseling" /></a></td>
                    </tr>
                    <tr>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Robert Hersee</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Ron Mukherjee</td>
                      <td width="30%" style="text-align:center; padding:3px 5px 20px 5px; margin:Opx;">Wouter Hesseling</td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td style="margin:Opx; color:#FFFFFF; background-color:#4c84c1; padding:5px 14px 5px 14px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:18px; text-align:center;"> Get inspired - Get connected - Get informed - Get ready! </td>
        </tr>
        <tr>
          <td>
            <table style="border:0px; border-collapse:collapse; width:600px">
              <tr>
                <td width="33%" style="text-align:center; padding:8px"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/sponsorMCI.jpg" width="160" height="55" /> </td>
                <td width="33%" style="text-align:center; padding:8px"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/sponsorHilton.jpg" width="110" /> </td>
                <td width="33%" style="text-align:center; padding:8px"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/sponsorSoundfield.jpg" width="160" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table></td>
    <td style="width:10px; border:0; padding:0; margin:0;"><img src="http://www.educationalrevuempibelgium.be/mpi/mailingMPIz/shadingR.jpg" width="10px" height="1240px" /></td>
  </tr>
</table>
</center>
</body>
 
dit zou u op weg moeten helpen . Dus goed kijken naar de tekst die moet ingevuld worden.
PHP:
$headers["From:"] = "web<$from>";
//$this->headers["MIME-Version"] = "1.0";
//$this->headers["Content-Transfer-Encoding"] = "8Bit";
$headers["X-Mailer"] = "PHP/".phpversion();
$headers["Reply-To:"]= "$from";
$headers["Content-Type:"] = " text/html; charset='iso-8859-1'";
$html = (string)file_get_contents("mijnpathenfilenamevantemplate");
$issend = mail($email,$subject,$html,$headers);
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan