1) { die("Error with ECard Details"); } $ECardDetail = mysql_fetch_array($result); if ($ECardDetail["SentDate"]=='0000-00-00 00:00:00') { $CMessage = "Hey ".$ECardDetail["ToName"].",\n\nYou've just received a HappyChristmas eCard from ".$ECardDetail["FromName"]."!\n\nTo view your card just click on this link: http://$DomainFrom/ecards/view/$CardNumber\n\nWe hope you enjoy your HappyChristmas card, why not visit our site and send a card back to ".$ECardDetail["FromName"]." or someone else you know!\n\nThe Happy Christmas Team\nwww.happychristmas.com"; require_once 'Mail/mime.php'; require_once 'Mail.php'; $MailTo = $ECardDetail["ToEmail"]; $MailHeaders['From'] = "\"HappyChristmas eCards\""; $MailHeaders['Subject'] = 'HAPPYCHRISTMAS! eCard from '.$ECardDetail["FromName"]; $MailHeaders['To'] = "\"".$ECardDetail["ToName"]."\"<$MailTo>"; $MailHeaders['Errors-To'] = "ecards@happychristmas.com"; $crlf = "\n"; $MailParams['auth'] = True; $MailParams['username'] = "PHPOut"; $MailParams['password'] = "PHPOut"; $MailParams['host'] = "mail.raqsys.com"; $mime = new Mail_mime($crlf); $mime->setTXTBody("$CMessage"); $body = $mime->get(); $MailHeaders = $mime->headers($MailHeaders); $mail =& Mail::factory('smtp', $MailParams); $mail->send($MailTo, $MailHeaders, $body); $SQLQuery = "UPDATE tblECardDetails SET SentDate=NOW() WHERE ID=".$ECardDetail["id"]; mysql_query($SQLQuery); } header("Location: /ecards/ecardsent.php"); break; } } ?> Online Christmas Ecards and Christmas Shopping at Happy Christmas

- Christmas E-Cards & Online Fun

Christmas E-Cards


Your Name
Your eMail
Receiver Name
Receiver eMail
Message
 
1) { die("Error with ECard Details"); } $ECardDetail = mysql_fetch_array($result); $SQLQuery = "SELECT * FROM tblECards WHERE id=".$ECardDetail["CardType"]; $result =mysql_query($SQLQuery); $CardInfo=mysql_fetch_array($result); $ToVerified = CheckEmail($ECardDetail["ToEmail"]); $FromVerified = CheckEmail($ECardDetail["FromEmail"]); ?>
Your Happy Christmas E-Card is below...
To   (Email Address Invalid)
From   (Email Address Invalid)
" height="" align="baseline"> "> " height="" align="baseline" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#B5CEE6" scale="exactfit" wmode="transparent"> " align="middle" />
message:
The Entered Email Addresses Are Invalid - Please Press "Back" in your browser to Correct and Re-Send.

Calling all budding designers... Want to showcase your own work here?
Get in touch and feature your ecard designs in front of thousands of visitors every week :-)

Gift Search