How to open multiple Yahoo Messenger on single PC Read more: How to open multiple Yahoo Messenger on single PC

  • Click on Start -> Run…
  • Type Regedit in Run text box and hit enter to launch Registry Editor
  • Now, navigate to HKEY_CURRENT_USER > Software > Yahoo > Pager > Test.
  • On the right pane, right click and click on New > DWORD value
  • Rename the new registry key as Plural.
  • Right Click on “Plural” and Select “Modify”. Change the cell value in “Value Data” to 1 (For Vista & Windows 7 users) .
source : http://www.niharsworld.com/2008/08/20/how-to-open-multiple-yahoo-messenger/

Backup Database MySQL menggunakan MySQLDump

1. Backup Satu Database

Untuk membackup seluruh database maka format yang digunakan adalah:
mysqldump -u [username] -p[password] [nama_database] > [nama-file].sql

Misal kita ingin membackup MySQL dengan passwordnya 123456 dari database latihan dan jika sudah dibackup maka namanya adalah latihan, maka perintah diatas menjadi:
mysqldump -u root -p123456 latihan > latihan.sql

2. Backup Tabel Database

Untuk membackup satu atau lebih tabel yang ada di dalam suatu database maka formatnya adalah sebagai berikut:
mysqldump -u [username] -p[password] [nama_database] [table1] [table2] … > [nama-file].sql

Misal kita ingin membackup tabel tes1 dan tes2 yang berada di dalam database latihan dan jika kedua tabel itu sudah dibackup maka namanya adalah  duatabel, maka perintah diatas menjadi:
mysqldump -u root -p123456 latihan tes1 tes2 > duatabel.sql

3. Backup Dua Atau Lebih Database

Jika kita ingin membackup dua atau lebih database menjadi satu maka formatnya adalah sebagai berikut:
mysqldump -u [username] -p[password] –database [database1] [database2] … > [namafile].sql

Misal kita ingin menggabungkan database latihan dan database teman digabung menjadi satu dengan nama gabung, maka format diatas menjadi:
mysqldump -u root -p123456 –database latihan teman > gabung.sql

4. Backup Seluruh Database

Jika kita ingin membackup seluruh database yang berada di Mysql, maka formatnya adalah sebagai berikut:
mysqldump -u [username] -p[password] –all-databases > [namafile].sql

Misal kita ingin membackup seluruh database yang berada di root dengan nama gabungan, maka format di atas menjadi:
mysqldump -u root -p123456 –all-databases > gabungan.sql

5. Backup Kompress Database

Jika kita ingin hasil mengkompres backup database, maka formatnya sebagai berikut:
mysqldump -u [username] -p[password] [database] | bzip2 -c  > [namafile].sql.bz2
atau
mysqldump -u [username] -p[password] [database] | gzip -c  > [namafile].sql.gz

Misal kita ingin membackup database latihan dan dikompress menggunakan bzip2 atau gzip dengan nama latihan, maka format di atas menjadi:
mysqldump -u root -p123456 latihan | bzip2 -c  > latihan.sql.bz2
atau
mysqldump -u root -p123456 latihan | gzip > latihan.sql.gzip

Jika kita ingin melakukan variasi backup seperti backup seluruh database, backup beberapa tabel saja atau yang lainnya maka hanya diubah sebelum tanda | dengan pola mengikuti format sebelumnya. Misalnya kita ingin membackup seluruh database mysql dan hasilnya berupa kompresan dengan gabungan maka perintahnya:
mysqldump -u root -p123456 –all-databases | gzip > gabungan.sql.gzip
atau
mysqldump -u root -p123456 –all-databases | bzip2 -c > gabungan.sql.bz2
Dan perlu diketahui bahwa hasil file kompresan bz2 mempunyai ukuran yang lebih kecil dibandingkan dengan gzip.

sumber : http://www.zulfanruri.com/backup-database-mysql-menggunakan-mysqldump.htm

PHP Sending Email

Sending a Simple Text Email

<?php
//define the receiver of the email
$to = ‘youraddress@example.com’;
//define the subject of the email
$subject = ‘Test email’;
//define the message to be sent. Each line should be separated with \n
$message = “Hello World!\n\nThis is my first mail.”;
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail sent” : “Mail failed”;
?>

Sending HTML Email

<?php
//define the receiver of the email
$to = ‘youraddress@example.com’;
//define the subject of the email
$subject = ‘Test HTML email’;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;
//add boundary string and mime type specification
$headers .= “\r\nContent-Type: multipart/alternative; boundary=\”PHP-alt-”.$random_hash.”\”";
//define the body of the message.
ob_start(); //Turn on output buffering
?>
–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/plain; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

Hello World!!!
This is simple text email message.

–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/html; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

<h2>Hello World!</h2>
<p>This is something with <b>HTML</b> formatting.</p>

–PHP-alt-<?php echo $random_hash; ?>–
<?
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail sent” : “Mail failed”;
?>

Sending Email with Attachment

<?php
//define the receiver of the email
$to = ‘youraddress@example.com’;
//define the subject of the email
$subject = ‘Test email with attachment’;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;
//add boundary string and mime type specification
$headers .= “\r\nContent-Type: multipart/mixed; boundary=\”PHP-mixed-”.$random_hash.”\”";
//read the atachment file contents into a string,
//encode it with MIME base64,
//and split it into smaller chunks
$attachment = chunk_split(base64_encode(file_get_contents(‘attachment.zip’)));
//define the body of the message.
ob_start(); //Turn on output buffering
?>
–PHP-mixed-<?php echo $random_hash; ?>
Content-Type: multipart/alternative; boundary=”PHP-alt-<?php echo $random_hash; ?>”

–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/plain; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

Hello World!!!
This is simple text email message.

–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/html; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

<h2>Hello World!</h2>
<p>This is something with <b>HTML</b> formatting.</p>

–PHP-alt-<?php echo $random_hash; ?>–

–PHP-mixed-<?php echo $random_hash; ?>
Content-Type: application/zip; name=”attachment.zip”
Content-Transfer-Encoding: base64
Content-Disposition: attachment

<?php echo $attachment; ?>
–PHP-mixed-<?php echo $random_hash; ?>–

<?php
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail sent” : “Mail failed”;
?>

Example :

<?php
//define the receiver of the email
$to = ‘a@a.co.id’;
//define the subject of the email
$subject = ‘Selamat Ulang Tahun ke-19′;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: Administrator<administrator@a.co.id>\r\nReply-To: group_all@a.co.id\r\nDate: Thu, 2 Jul 2010 08:00:00 +0700″;
//add boundary string and mime type specification
$headers .= “\r\nContent-Type: multipart/mixed; boundary=\”PHP-mixed-”.$random_hash.”\”";
//read the atachment file contents into a string,
//encode it with MIME base64,
//and split it into smaller chunks
$attachment = base64_encode(file_get_contents(‘/var/www/mail/ultah_a.gif’));
//define the body of the message.
ob_start(); //Turn on output buffering
?>
–PHP-mixed-<?php echo $random_hash; ?>
Content-Type: multipart/alternative; boundary=”PHP-alt-<?php echo $random_hash; ?>”

–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/html; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

<DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
</head>
<body bgcolor=”#ffffff” text=”#000000″>
Selamat Ulang Tahun ke-19 yaa !
</body>
</html>

–PHP-alt-<?php echo $random_hash; ?>–
–PHP-mixed-<?php echo $random_hash; ?>
Content-Type: image/jpeg; name=”ultah_a.gif”
Content-Transfer-Encoding: base64
Content-Disposition: inline

<?php echo $attachment; ?>
–PHP-mixed-<?php echo $random_hash; ?>–

<?php
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail Sent” : “Mail Failed”;
?>

sumber : http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php

Kirim email dari konsole / terminal Ubuntu menggunakan akun gmail

1. server / linuxnya harus konek internet
2. punya akun gmail.
pertama di ubuntunya harus terisntall sendmail
$ sudo apt-get install sendmail
$ sudo apt-get install libio-socket-ssl-perl libnet-ssleay-perl perl
download senEmail
$ wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.55.tar.gz

extrak file nya
$ tar zxvf sendEmail-v1.55.tar.gz
copy folder sendEmail ke folder /usr/local/bin
$ sudo cp sendEmail-v1.55/sendEmail /usr/local/bin
ubah permision nya agar file tsb bisa di eksekusi oleh semua user
$ sudo chmod +x /usr/local/bin/sendEmail

cara menggunakan :
$ sendEmail -f alimuntaha@gmail.com -t alleey_mth@yahoo.com -u any title you like -m “Isi pesan” -s smtp.gmail.com -o tls=yes -xu alimuntaha -xp mlopeku

keterangan
-f = berisi dari mana email dikirim
-m = isi email
-xu = user untuk login gmail
-xp = pasword untuk gmail
-a = nama file jika menyertakan mengirimkan file

sumber : http://www.sinausantai.com/2009/05/kirim-email-dari-konsole-terminal.html

Follow

Get every new post delivered to your Inbox.