RSS Feed
Via Email

Chat with Me
Nov 29

Bye Bye PHP Mail()

Email, PHP, Web Scripting  No Comments

Are you still using PHP mail() function to send email on your webpage? Guess it’s time to say bye bye :D

Why? Because mail() function will use the webserver to send email instead of a real mail server. However, we recently found out that the recipient mail server will check the sender IP and when it notices that the sender IP is not an email server, then it will block the message and the messages will never get through to recipient mailbox. This problem seems to be applicable to some email server (recipients’) such as Yahoo, AOL and other companies.

How to solve this problem? Easy, don’t use webserver to send email, but use a real email server with SMTP. If you’re using PHP, simply download phpmailer class and send email using SMTP.

Below is the code sample that you need to write on your webpage:

require(“class.phpmailer.php”);

$mail = new PHPMailer();

$mail->IsSMTP(); // send via SMTP
$mail->Host = “mail.yourdomain.com”; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = “emailer@yourdomain.com”; // SMTP username
$mail->Password = “password”; // SMTP password

$mail->From = “from@yourdomain.com”;
$mail->FromName = “Sender’s name”;
$mail->AddAddress(“to@otherdomain.com”);

$mail->Subject = “subject here”;
$mail->Body = “message body here”;

if(!$mail->Send())
{
echo “Mailer Error: ” . $mail->ErrorInfo;
exit;
}

echo “Message has been sent successfully.”;

That’s it ;) You can even add more functionality such as HTML email, attachments, send to CC & BCC with simply add more properties to the mailer class and without having to worry about your mail got bounced back by some mail servers out there. Please refer to PHPMailer’s documentation for more info :)

And for those of you who are using wordpress then WP_Mail SMTP is the best plugin you need.

Nov 27

Cyber Coral was Featured on Newspaper!

News  4 Comments

We are so happy to let you know that Cyber Coral was featured on Batam Pos, the biggest newspaper in Batam. The article was published full color on page 31, on Sunday – 23 September 2007 edition.

You can read copy of the articles below, or click the image to enlarge.

However, we would like to clarify 1 thing on the article that Cyber Coral is no longer our part-time project. It has become our top priority since we’re now depending solely on Cyber Coral and other websites under the Cyber Coral Network.

Cyber Coral Featured on Batam Pos
btw, that’s not our picture :p

Read the rest of this entry »

Nov 27

The Fact Behind Unlimited Space & Unlimited Bandwidth

Web Hosting  10 Comments

Have you ever seen hosting providers offering unlimited space or unlimited bandwidth in their hosting package? We bet you have seen it. Some hosting providers use those two terms as marketing traps to attract their customers. We use the term “traps” because the term unlimited for space & bandwidth surely don’t exist.

How do we prove it?
Simple, have you ever heard about harddisk with unlimited capacity? :p

No such thing ever existed. Never! So how can the hosting providers claim that they can host your website with unlimited disk space quota?

So how about unlimited bandwidth?
Every hosting providers have their own contract with ISP that provide their internet connections. ISPs have the price for internet connections based on bandwidth. The higher the bandwidth, the higher the price would be. However, no ISP has ever offered a package for unlimited bandwidth.

ISPs offer only unlimited access with limited bandwidth, not unlimited bandwidth. So, how can hosting providers can have hosting packages with unlimited bandwidth while they have limited bandwidth from their ISP?

Read the rest of this entry »

« Older Entries Newer Entries »