Script to execute command multiple time, do the following,
=-==--==-
for ((n=0;n<5;n++)) do command1 command2 ;done
-==-=-=-=-=
=-==--==-
for ((n=0;n<5;n++)) do command1 command2 ;done
-==-=-=-=-=
Script to execute command multiple time, do the following,
=-==--==- for ((n=0;n<5;n++)) do command1 command2 ;done -==-=-=-=-=
0 Comments
When send email without message headers, email header will be in the form of "root@hostname" and there is a chance of mail going to spam folder. To solve the case, you can use the below PHP script with message headers,
<?php $to = "[email protected]"; $subject = "Contact Us"; $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; $headers = "From: [email protected]"; $sent = mail($to, $subject, $message, $headers) ; if($sent) {print "Your mail was sent successfully"; } else {print "We encountered an error sending your mail"; } ?> Now copy this to the public_html directory and change the permission accordingly. Access the URL domain.com/phpmailscript.php Done |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
July 2015
Categories |