Click here to Subscribe to Our RSS Feed
Powered by MaxBlogPress  

Archive for the ‘ PHP ’ Category

How to configure SMTP Authentication in the Wordpress?
Many hosting companies don’t allow clients to send emails from localhost, so it requires us to configure the authentication in our website applications, please don’t expect the hosting provider can change their settings on the hosting server:) Some applications have configured SMTP authentications already, you just need to [...]

Now we all know Digg.com is such a popular hot website. Then we got a question, would you like to build a digg website with yourself? Indeed, you can find there’re many digg applications on the Internet, which digg application will be suit for your requirements? I’ve searched on Google for a long time and [...]

Joomla SEO Hosting

Does your web hosting support Joomla? As we all know, Joomla is one of the most popular open source Content Management System application. 
Joomla is the most popular Content Management Systems (CMS) in the Opensource world. It’s flexible and user friendly features are contributing in it’s popularity as a CMS. Packt Publishing has been awarding Joomla [...]

Preventing PHP Form Email Spam

Without adding a PHP routine which will check all the 3 input boxes on your PHP contact form for http, CR and LF characters then your PHP contact form is open for abuse. A quick simple fix for any PHP contact form is to check the input boxes for the CR (’r’) and CF (’n’) [...]

Here’s a sample for using SMTP. Webhost4life REQUIRES all customer to use SMTP authorization in order to send out email.
IMPORTANT:  From email address and your authorization email addres MUST be same.

< ?php
require(”class.phpmailer.php”);
$mail = new PHPMailer();$mail = new PHPMailer();
$mail->CharSet =”utf-8″; // You can adjust the Charset according to your language
$mail->IsSMTP();
$mail->Host = “mail.Yourdomain.com“;
$mail->SMTPAuth = true;
$mail->Username = “youremail@yourdomain.com”;
$mail->Password [...]

NOTE: This artical is for Window Hosting Only.  For Linux Hosting, please refer tohttp://webhost4life.com/kb/question.php?qstId=235
You need to:
1. use your email server as the smtp, this is usually mail.yourdomain.com with webhost4life
2. authenticate to the smtp server
3. make sure your “From” address is exactly the same as your login address in NetworkCredential class

Sample php code using aspemail COM+. [...]

Have you been the victim of a contact form spam attack from your PHP contact form on your website? Many people have and it is quite easy to prevent contact form spam and mail form injection header attacks. Or just use the PHP contact form script which will prevent any malicious email contact form spam [...]