include ("head.inc.php"); if (isset($_POST["submitButton"]) and strtolower( $_POST['code'] ) === $_SESSION['spam_code'] && checkEmail($_POST["email"]) and $_POST["name"] and $_POST["message"]) { //Load in the files we'll need require_once "lib/Swift.php"; require_once "lib/Swift/Connection/SMTP.php"; $smtpserver = "mail.creativesolutions.bg"; try { //Start Swift $swift =& new Swift(new Swift_Connection_SMTP($smtpserver)); $text = "Iskane za kompjutyrna poddryzka: Ot: %NAME% adres: %ADDR1% %ADDR2% %TOWN% %POSTCODE% phone: %LAND% mobile: %MOBILE% email: %EMAIL% syobstenie: %MESSAGE% "; //Create the message $message =& new Swift_Message("Support from Creative Solutions", str_replace(array("%NAME%", "%ADDR1%", "%ADDR2%", "%TOWN%", "%POSTCODE%", "%LAND%", "%MOBILE%", "%EMAIL%", "%MESSAGE%"), array($_POST["name"], $_POST["address1"], $_POST["address2"], $_POST["town"], $_POST["postcode"], $_POST["landline"], $_POST["mobile"], $_POST["email"], $_POST["message"]), $text)); $message->setCharset("utf8"); //echo str_replace(array("%NAME%", "%ADDR1%", "%ADDR2%", "%TOWN%", "%POSTCODE%", "%LAND%", "%MOBILE%", "%EMAIL%", "%MESSAGE%"), array($_POST["name"], $_POST["address1"], $_POST["address2"], $_POST["town"], $_POST["postcode"], $_POST["landline"], $_POST["mobile"], $_POST["email"], $_POST["message"]), $text); //Now check if Swift actually sends it if ($swift->send($message, "support@creativesolutions.bg", "support@creativesolutions.bg")) echo ""; else echo ""; if ($swift->send($message, "dimo@ucc.uni-sofia.bg", "support@creativesolutions.bg")) echo ""; else echo ""; } catch (Swift_ConnectionException $e) { echo "There was a problem communicating with SMTP: " . $e->getMessage(); } catch (Swift_Message_MimeException $e) { echo "There was an unexpected problem building the email:" . $e->getMessage(); } catch (Exception $e) { echo "There was an unexpected problem sending the email:" . $e->getMessage(); } } else if (isset($_POST["submitButton"])) $error = "Please, fill in the required fields appropriately."; ?>
You can contact Creative Solutions by phone, Skype, email, letter post or by using the contact form on this page.
Please feel free to ask us about any of the products or services you find here or tell us your requirements and we will try to help. Please provide as much detail as possible so that we can refer your request to the most appropriate member of staff/enginner to provide you with the solution you need.
Contact Form