par
nops » 19 juin 2009, 16:14
bonjour a tous
j'ai recupere pageflip pro php tout fonctionne trés bien mes j'ai un souci au niveau d'envoi de mail serait il possible quelqu'un puisse resoudre mon probleme
voici le php
fichier config php
Code : Tout sélectionner
<?php
// E-MAIL SETTINGS //
$fromName="Toutou-Matou"; // <-- Sender Name
$senderEmail="[email protected]"; // <-- Sender E-mail
$senderUsername="SenderMailUsername"; // <-- Sender E-mail Username
$senderPassword="SenderMailPassword"; // <-- Sender E-mail Password
$senderMailServer="[email protected]"; // <-- Sender Mail Server
$Charset="8859-1"; // <-- Mail Character Set Code
$StfSubject="Check out this"; // <-- Tell a Friend Mail Subject
$StfLink="http://www.google.fr"; // <-- Your Publication Link For Tell a Friend
?>
fichier send to friend PHP
Code : Tout sélectionner
<?php
$file="Config.php";
include $file;
$userEmail=$_POST["userEmail"];
$userMessage=$_POST["userMessage"];
if ($userMessage=="") $userMessage="...";
$mBody="<font style='color:#000000;font-family:tahoma;font-size:11px'>";
$mBody=$mBody."<b>Your Friend :</b> <a href='mailto:" . $userEmail . "'>" . $userEmail . "</a><br/><br/>";
$mBody=$mBody."<b>thought you might be interested in :</b> <a href='" . $StfLink . "'>" . $StfLink . "</a><br/><br/>";
$mBody=$mBody."</font>";
$headers="From: " . $fromName;
$headers .= "<" . $senderEmail .">\r\n";
$headers .= "Reply-To: " . $userEmail .">\r\n";
$headers .="Content-Type: text/html; charset='iso-" . $Charset ."'";
if (mail($userFriendEmail, $StfSubject, $mBody, $headers)){
echo "sending=1";
}else{
echo "sending=0";
}
?>
dois je avoir une base mysql pour les mails
merci pour votre aide
[/code]
bonjour a tous
j'ai recupere pageflip pro php tout fonctionne trés bien mes j'ai un souci au niveau d'envoi de mail serait il possible quelqu'un puisse resoudre mon probleme
voici le php
fichier config php
[code]
<?php
// E-MAIL SETTINGS //
$fromName="Toutou-Matou"; // <-- Sender Name
$senderEmail="
[email protected]"; // <-- Sender E-mail
$senderUsername="SenderMailUsername"; // <-- Sender E-mail Username
$senderPassword="SenderMailPassword"; // <-- Sender E-mail Password
$senderMailServer="
[email protected]"; // <-- Sender Mail Server
$Charset="8859-1"; // <-- Mail Character Set Code
$StfSubject="Check out this"; // <-- Tell a Friend Mail Subject
$StfLink="http://www.google.fr"; // <-- Your Publication Link For Tell a Friend
?>[/code]
fichier send to friend PHP
[code]<?php
$file="Config.php";
include $file;
$userEmail=$_POST["userEmail"];
$userMessage=$_POST["userMessage"];
if ($userMessage=="") $userMessage="...";
$mBody="<font style='color:#000000;font-family:tahoma;font-size:11px'>";
$mBody=$mBody."<b>Your Friend :</b> <a href='mailto:" . $userEmail . "'>" . $userEmail . "</a><br/><br/>";
$mBody=$mBody."<b>thought you might be interested in :</b> <a href='" . $StfLink . "'>" . $StfLink . "</a><br/><br/>";
$mBody=$mBody."</font>";
$headers="From: " . $fromName;
$headers .= "<" . $senderEmail .">\r\n";
$headers .= "Reply-To: " . $userEmail .">\r\n";
$headers .="Content-Type: text/html; charset='iso-" . $Charset ."'";
if (mail($userFriendEmail, $StfSubject, $mBody, $headers)){
echo "sending=1";
}else{
echo "sending=0";
}
?>[/code]
dois je avoir une base mysql pour les mails
merci pour votre aide
[/code]