Posts

Showing posts from November, 2016

send mail from local host without any smtp

Image
We cannot send mail from local host to any mail Servers without any help of smtp server: some intro: Various forms of one-to-one   electronic messaging   were used in the 1960s. Simple Mail Transfer Protocol  ( SMTP ) is an   Internet standard   for   electronic mail   (email) transmission. SMTP communication between mail servers uses port 25.   Mail clients   on the other hand, often submit the outgoing emails to a mail server on port 587. Despite being deprecated, mail providers sometimes still permit the use of nonstandard port 465 for this purpose. Although proprietary systems (such as   Microsoft Exchange   and   IBM Notes ) and   webmail   systems (such as   Outlook.com ,   Gmail   and   Yahoo! Mail ) use their own non-standard protocols to access mail box accounts on their own mail servers, all use SMTP when sending or receiving email from outside their own systems. there are too m...

multiple file upload

For Basik file upload Basic File Upload Options for File upload

websites

http://www.bakraonline.com/ http://www.bakramandipakistan.com/ http://www.bakraonline.pk/ http://eidqurbani.com.pk http://www.myqurbani.com http://www.qurbanionline.com/ http://www.farmsanctuary.org

using Java queery in Cakephp

          <script  type="text/javascript">           function hideOneShowTwo() {               //  again using toupdate form one                    // var dataString = 'id='+id;                           $.ajax({                             type: "Get",                             datatype:'json',                             url: '<?php echo Router::url(array("controller" => "vacancies", "action" => "getupdate")); ?>' ,                             data: {       ...

Make new Notifications using notific8

http://www.jqueryscript.net/other/jQuery-Windows-8-Style-Notification-Plugin-notific8.html $.notific8(data, {zindex: 1500,horizontalEdge: 'bottom',verticalEdge: 'left', theme: 'lime',});

Send mail through Gmail

https://blog.shaharia.com/send-email-from-localhost-in-cakephp-using-cakeemail/ public $gmail = array(         'host' => 'ssl://smtp.gmail.com',         'port' => 465,         'username' => 'syedfaizan966@gmail.com',         'password' => '*************',         'transport' => 'Smtp'     ); for google link https://www.google.com/settings/security/lesssecureapps here is code [12:53:59 AM] Faizan Shah: extension=php_openssl.dll [12:54:16 AM] Faizan Shah: $name='usman';         $pass='123';         $confirmation_link = "http://" . $_SERVER['HTTP_HOST'] . $this->webroot . "users/login/";         $message = 'Hi,' . $name . ', Your Password is: ' . $pass;         App::uses('CakeEmail', 'Network/Email');         $email = new CakeEmail('gmail'); ...

Social Login through Cakephp

Image
first link I used is http://miftyisbored.com/complete-social-login-application-tutorial-cakephp-2-3-twitter-facebook- google/ then for Google settings  follow this link https://developers.google.com/identity/sign-in/web/devconsole-project then https://developers.google.com/identity/protocols/OpenIDConnect#setredirecturi and then it helps me https://developers.google.com/identity/protocols/OpenIDConnect#sendauthrequest some Help from here http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html here is credentials Page for Google there was a space issue :D Social login from faceBook finding Errors found   some   solutions i think i should replace  hybridauth php-graph-sdk-5.4.1  social/facebook finaly going to use hybried 2.7 version after that i found this error                                           sported links http...