Deploy Angular Project with CI /CD to Hostinger with FTP

 1. creat a folder in your project root folder with name .github 2. create second folder in .github/workflows 3. create file in your .github/workflows/main.yml paste this code in main.yml file on :   push :     branches : main <--- select your branch name name : 🚀 Deploy website on push jobs :   web-deploy :     name : 🎉 Deploy     runs-on : ubuntu-latest     steps :     - name : 🚚 Get latest code       uses : actions/checkout@v3     - name : Use Node.js 18       uses : actions/setup-node@v2       with :         node-version : '18'           - name : 🔨 Build Project       run : |         npm install               npm run build       - name : 📂 Sync files       uses : SamKirkland/FTP-Deploy-Action@v4.3.4   ...

Laravel Mailer

 <?php


namespace App\Http\Controllers;


use Illuminate\Http\Request;

use Illuminate\Support\Facades\Mail;


use App\Http\Requests;

use App\Http\Controllers\Controller;


class Handover extends Controller {

//    public function index() {

//       $data = array('name'=>"Virat Gandhi");

   

//       Mail::send(['text'=>'mail'], $data, function($message) {

//          $message->to('abc@gmail.com', 'Tutorials Point')->subject

//             ('Laravel Basic Testing Mail');

//          $message->from('xyz@gmail.com','Virat Gandhi');

//       });

//       echo "Basic Email Sent. Check your inbox.";

//    }

   public function index(Request $request) {

      // return $request;

      $data = ['name'=>$request->name, 'shopname'=>$request->shopname,  'shopaddreess' => $request->shopaddreess, 'location' => $request->location];


      Mail::send('mail',['user'=>$data], function($message) {

         $message->to('scmau276403@gmail.com', 'Suraj Chauhan')->subject('Handover Contact Us Form - ');

         // $message->from('fmailtesting@gmail.com','Suraj The boss');

         $message->from('eemail.suraj@gmail.com','Suraj');


      });

      return redirect()->back()->with('formsubmitted','Form Submitted Successfully');


   }



 


}

Comments

Popular posts from this blog

Ms Office 2019 activation link