Laravel Send Mail using Mailtrap (Easy for Beginners)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
alright guys in this video we are going to send a mail okay and we are using Mill trap which is you know fake mill big meal like you can you know like email we can say in mail okay it's mail trap you can go to mill credit IO and now we have to log in or sign up I'll sign up and I will use let's say email let's say code online at the rain gmail.com an option password let's say code online now I will change that because you can use that alright I will say something else I won't say you I'm not a robot let's sign up and yeah let's say that mmm okay now let's login yeah remember me and login you have to confirm that email oh my god I don't have that email right so I have to use real one so I have to create again new one alright that's okay we'll just really use github account alright sorry guys okay we'll see email our you know email here okay our fake mail so let's go to our larva land and we want to show that email with our product it's great whenever we create a product say here after we submit and our products period we want to show that EBL okay so let's let's do that lets go to our controller for our control all right and after the product this is lined with so which create our product so after product is created we want to say male actually let's let's have our app key and app secret new project will say laravel series novels series add this project you'll reach the project let me please upgrade your plan watch I haven't made any oh so demo inbox is our product let's go here yeah now let's actually copy these things water required let's go to our env that env where is that let's close all of these or is that here it is laravel gives our you know male trap here it is SMTP SMT don't melt rabbit IO male 4 to 5 to 5 username let's copy user name around let's copy DS let's paste that here I will delete that you know user account so you cannot use that and yeah encryption no mail from address now okay maybe that will work okay let's stop the server and let's do PHP artisan sir after our env changed alright and let's let's now let's see in the mail we'll say mail same let's we'll make up you know view file to to say what we want to say it ok we'll say it will make our emails folder in which will say path drug created blade put a created blade and we want to send our let's let's have one bearable to you know to store whatever our product is created and we'll send that to every so say product you parry it will convert Habra to airy and after that after that you will have function dollar masses all right and that's a function so okay and after that was a dollar message says it's a message message to whom I'll say message to code online what is our email address where is that and no but I know code online my name pad the rich gmail.com please don't say an any random emails okay email let's say code online we'll see what Dan starts okay and I will say subject we want to say production so in just subject then it was so whatever that is done okay subject of mail you know and yeah yeah yeah that's it now let's create our what happened dollar mass is today's sky and don't know what happened what happened what happened I gotta make up ok Messi's to whom dollar message - oh cool online like this it should be alright now what happened again let's change the line the minute semicolon here and yeah yeah yeah that's good now let's uh let's make our you know do inside view we'll make a folder and name it emails and inside that we can you know like product created product updated product deleted whatever you can use this and after deleting you can use that after up taking you can use that okay whatever you can do chains email look okay so let's say what is your product created so let's say product created CR e atat created dot blade dot PHP and inside that will say I will say is hello product watch created alright and we'll say let's let's let's in how we have dollar product access okay so we'll just because we I've seen that to area so we'll say product name let's let's do that alright let's create a product okay let's say that's it for me let's say watch again what one price I don't have any I don't have option alright watch and let's submit that and let's see if we get email no oh so I didn't use that okay so if I had to use this class alright so where where is that where is that where is that I'll controller we have to use that at top top so we'll say use I don't know if it's okay I think it's okay that's your first ad continue and yeah I can let surface we will say watch one rise and file watch all right let's sum each what is this [Music] laravel meal let's seal it meal facade yeah so what is that gato no gods oh you know meals here it is in eliminates about that facade smelt so let's use that let's refresh okay guy you had to redirect okay so can I change message without a sender address seen their address oh so let's go to our environment I think mail from I think we need Dan let's say code code online calm so it'll it'll give our that okay let's do ok guys you have to do that come on let's let's restart the server to when you will say that code code online doesn't comply with RFC oh oh that is Tommy anyway let's do gmail calm at the rid gmail.com sip that let's restart again and let's refresh let's continue you had to do now authorized otherwise I'll quote I'll change code okay oh my god thousand time because that would mail problem because we are just sending mail after the Parag is created but our code was wrong okay we're here it used to you know where is that it used to create the product but mail wasn't sending that that was a problem let's take if there is an email for us yeah here it is you can see that only one male because yeah oh what is that so let's let's let's let's let's let's do that actually we have review you have you have I mean we have to use two curly braces say that let's let's add one okay because we have added a tons you know let's let's do that here we'll say TV TV one online alright prize whatever like and Oh Baby come on submit what is that undependable product name product price to make real option procreated undefined round so this parabola is not is not you know defined let's see here here we have said Telegraph to Airy I don't know what is that let's try you know there is nothing wrong so it will create two but again I know just this time it'll work or not oh come on yeah it has worked let's see if our if if it's give even gives us that name oh my god no no no so let's see how begins in mail let's see in our mind you know github it's gonna be a long but shouldn't worry I'm gonna take you okay resources views emails were created and oh that was an area let's do once that that and now again I think I'm making a mistake yeah right alright let's create one dish really final I'm sure TV football fries and file some meat constant name assumed names were in future future version what is that God good afternoon they made our name why is that why it is giving an error oh the other name that that was soloist so this is the last time right why this yo so product has title not name my mistake okay all right this is a final time this is this is my promise okay this is final time you don't have to do that again alright TV for all riding and also have price and many think this is for long video so I'm just going to quit okay in the next video we'll we'll see what we can do
Info
Channel: Code Online
Views: 9,474
Rating: undefined out of 5
Keywords: laravel, email, mail, mailtrap, mailgun, fake mail, mail using laravel, mail using mailtrap
Id: yIoKD8HF5rU
Channel Id: undefined
Length: 14min 30sec (870 seconds)
Published: Sat May 09 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.