Friday, 7 July 2017

smtp mail using phpmailer and zoho


$mail = new PHPMailer();
$mail->SMTPDebug = 3;
$mail->SMTPAuth = true;
$mail->Host = "";
$mail->Port = 465;
$mail->SMTPSecure = 'ssl';
$mail->Username = "";
$mail->Password = "12345678";

$mail->SetFrom('', 'Web App');
$mail->Subject = "A Transactional Email From Web App";
$mail->AddAddress('fullemail', 'name');
if(!$mail->send()) {
    echo 'Message could not be sent.';
    echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
    echo 'Message has been sent';

Friday, 4 December 2015

importing parent stylesheet in child theme css

@import url("../Parallax-One/style.css");

Monday, 17 August 2015

Usefull linux commands

Recursively Zip a Directory and Files on Linux

zip -r /path/to/folder
to unzip to current directory,
unzip -d .
To get the size of directory
 du -sh dirname 

Monday, 22 December 2014

A quick way to generate lorelm ipsum text

I created a small application using appspot to generate lorelm ipsum text quickly and add free one.

I think i will explain you how i created and it will be helpful for others to learn appospot's initials.

Thursday, 24 July 2014

Friday, 25 January 2013

slow ssh connection on ubuntu

Simply edit sshd_config  by typing

 >> sudo vim /etc/ssh/sshd_config

Add the line to the bottom of file

UseDNS no

Restart the ssh service

>> sudo service ssh reload

After this it will not delay for ssh login.