Friday 7 July 2017

smtp mail using phpmailer and zoho

<?php

require_once('class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 3;
$mail->SMTPAuth = true;
$mail->Host = "smtp.zoho.com";
$mail->Port = 465;
$mail->SMTPSecure = 'ssl';
$mail->Username = "fullmail@domain.com";
$mail->Password = "12345678";


$mail->SetFrom('fullmail@domain.com', 'Web App');
$mail->Subject = "A Transactional Email From Web App";
$mail->MsgHTML('test');
$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 filename.zip /path/to/folder
to unzip to current directory,
unzip file.zip -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.

http://quicklorem.appspot.com/

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.

Tuesday 31 July 2012