Came here due to KZbin's algorithm, stayed for the content. Even for stuff I thought I had a good grasp on, there are always valuable gems inside every video that make me go "What? You can do this?"! I can't thank you enough for the good work and awesome way of presenting the material. Keep up the excellent work Gio! Please don't stop. We need more! Thanks again!
@ProgramWithGio2 жыл бұрын
That's awesome, thank you so much 🙏 💙
@hansschuijff2 жыл бұрын
Great lesson again. I like that you teach as much about the php language, as oop design concepts and how to setup a working dev environment and use populair packages. A great start for anyone that wants to step into modern code practices. Thanks, Gio. Learning a lot from you.
@ProgramWithGio2 жыл бұрын
Happy to hear Hans, thank you 🙌
@hannanmiah12402 жыл бұрын
best php tutorial I've seen ever.
@ProgramWithGio2 жыл бұрын
Thank you 🙌
@constantinci2 жыл бұрын
Great as usually. You simply read my mind (mailhog) 😃.
@ProgramWithGio2 жыл бұрын
Thank you. Glad it was useful 🙌
@Zubbee2 жыл бұрын
Wow. This is all new to me. I followed and practiced as well. It's great to see how some of these things work. Thanks Gio. I'm fired up to move on.
@ProgramWithGio2 жыл бұрын
Great to hear 💙
@edwardai2092 жыл бұрын
Clear and solid explanation for Emailer Package
@ProgramWithGio2 жыл бұрын
Glad you like it 🙌. Thank you
@martin21262 жыл бұрын
Amazing tutorial. Very detailed and knowledgeable. Thank you very much!
@ProgramWithGio2 жыл бұрын
Happy to hear that, thank you 🙌
@sergeykonov456211 ай бұрын
Great as usually.
@ProgramWithGio10 ай бұрын
Thank you
@abdallakaram53762 жыл бұрын
Great Gio Back welcome back master
@stephen.cabreros Жыл бұрын
w0w we simply swap mailer to our custom mailer as an example of implementing an interface or implementation, splendid
@ProgramWithGio Жыл бұрын
Glad you like it, thank you
@aleksandrkanygin26722 жыл бұрын
Awesome, watching your course i improved not only my php skills specifically, but coding overall. I see a lot of improvements in my JS code after watching your course to this point. Thank you 👍👍👍
@ProgramWithGio2 жыл бұрын
That's so awesome, thank you 💙💙
@Jam-ht2ky Жыл бұрын
totally agree. The firm i work in used to be PHP mainly but they switched to JavaScript because of performance reasons but they brought a lot of practises of PHP to javascript and studying this series helped me become better with both
@hsemix2 жыл бұрын
Thanks for the good content
@ProgramWithGio2 жыл бұрын
You're welcome
@truthteachers Жыл бұрын
Bro, I need help really bad. (1) You installed MailHog using docker and some of us are not using docker (2) at timestamp 8:35, your video is not showing the use classes and when tried to import the class, my script imports classes which i assume to be correct (3) The is view for "users/register" which is not mentioned in the video. To resolve (1) I setup my email account in my own shared vps host but do not where to include the user password.
@ProgramWithGio Жыл бұрын
The source is in the repo, link in description. So you can compare the use statements, not everything can be visible in the videos at all times. The view file is just a simple HTML also part of the source. As for mailhog it can be installed on windows without Docker as well. You can do a bit of googling to find instructions how to set it up without Docker. There is executable file you can download github.com/mailhog/MailHog/releases You don't have to use mailhog, you can also just create mailtrap account for example or use any other SMTP service/account, just configure the credentials properly. You can check the Symfony mailer docs for exact options. Watch from 6:15 I explain DSN so you'll just have to replace it with your credentials, username, password, host, port.
@truthteachers Жыл бұрын
@@ProgramWithGio The repo is end product for the video. The use statements do not seem to match those that are imported as we progress. I decided to drop mailhog which seems to be way outdated (2020) for Windows. I will use my vps email server. I am also testing with PHPMailer which simpler to use then symfony/mailer (very complicated).
@truthteachers Жыл бұрын
@@ProgramWithGio Just an update. I tested using the symfony and phpmailer libraries. Both worked fine with my vps email server. Thank you.
@khancross2 жыл бұрын
Yeah ok but how to implement this mailer to a HTML website? You start here 2:46 with a PHP document. Where is this from and what to do with this PHP document?
@ProgramWithGio2 жыл бұрын
There is a link to the source repo in the description. HTML part is done off the recording, it's just a form with post request to the register route, nothing fancy.
@khancross2 жыл бұрын
@@ProgramWithGio Is it enough to upload this PHP form and make ?
@memack1012 жыл бұрын
Thank you.
@ProgramWithGio2 жыл бұрын
💙
@devanii2 жыл бұрын
Very nice! Do you leave the dsn in production empty? Or to null
@ProgramWithGio2 жыл бұрын
Thank you. No in production that would be filled in.
@devanii2 жыл бұрын
@@ProgramWithGio ah but with the user and pass filled in
@ProgramWithGio2 жыл бұрын
@@devanii yup
@topalek Жыл бұрын
Do you plan to more laravel courses?
@ProgramWithGio Жыл бұрын
Yes after we finish the PHP series
@expresscoding3525 Жыл бұрын
Hello sir, I've a question, you removed this line of code: $mailer = new Mailer($transport); from UserController while refactoring at near the end of the lesson, but it still works, how is that possible, please explain it sir.
@expresscoding3525 Жыл бұрын
at 12:54 when you started refactoring ?
@ProgramWithGio Жыл бұрын
We are injecting that as a dependency in the constructor, keep watching & you will see that we add the custom mailer class & bind it in the container
@liym-ntairaylangdji344110 ай бұрын
Hello sir, please what about sending emails with Google? How does it work?
@ProgramWithGio9 ай бұрын
Not sure what you mean
@liym-ntairaylangdji34419 ай бұрын
@@ProgramWithGio what I actually meant was how I could send emails using gmail smtp beacause I tried with mailhog but I got this error "Uncaught Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "mailhog:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo for mailhog failed: Temporary failure in name resolution in /var/www/html/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154"
@DigitaSkills1012 жыл бұрын
I am a little lost how can we access the config variable without using this keyword and since when is this function is available
@ProgramWithGio2 жыл бұрын
Hey, are you referring to the Config class or the $_ENV super global? We covered both of them in the series. If you are referring to accessing array properties on Config class that's done via magic getter method (also covered in the series). Please include the timestamp for the part that's confusing and I'll be happy to clarify it further 👍
@DigitaSkills1012 жыл бұрын
@@ProgramWithGio Sorry for the trouble but the problem is solved , I didn't know that we could access class properties without the "$this" keyword in the magic __construct function. Your tutorial helped me know that. Thanks 👍
@ProgramWithGio2 жыл бұрын
@@DigitaSkills101 awesome, no problem at all. Thanks 🙏
@mateuszb43872 жыл бұрын
Modern PHP Bible
@ProgramWithGio2 жыл бұрын
Thank you 🙌
@nooralmoswy73472 жыл бұрын
composer : The term 'composer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. that is what happen when trying composer composer require symfony/mailer 😟😟
@ProgramWithGio2 жыл бұрын
My assumption is that you are trying to run composer commands in PowerShell where it's not available. Launch the Linux OS terminal if you are using WSL2 on Windows. Also try googling that error.
@ნოდარდავითულიანი2 жыл бұрын
ძაან გთხოვ, შეგიძლია გააკეთო ეს ვიდეო contact form -ით? ანუ კლიენტი წერს თავის იმეილს სახელს ტექსტს და ეს მისდის საიტის მფლობელს მეილზე
@ProgramWithGio2 жыл бұрын
ვეცდები, მადლობა რჩევისთვის.
@ნოდარდავითულიანი2 жыл бұрын
@@ProgramWithGio არაფრის. ძალიან დამეხმარებოდა ეგ ვიდეო
@ნოდარდავითულიანი2 жыл бұрын
ხომ არ მოგიფიქრებია ჩაწერა? დდ
@ProgramWithGio2 жыл бұрын
@@ნოდარდავითულიანი არა. ალბათ კურსის ბოლოსკენ თუ გამოვნახე თავისუფალი დრო. ეხლა დრო არ მაქვს და ბევრი სხვა ვიდეო მაქვს ჩასაწერი.
@belloabdulroufolatunbosun54392 жыл бұрын
Phpmailer vs symfony mailer
@ProgramWithGio2 жыл бұрын
I haven't used Phpmailer so wouldn't be able to give you a good answer to that but I'm sure it's a good alternative as well
@lairotuT-TutorialАй бұрын
This lesson will keep me busy for a while :-) Great great stuff Gio! First of possibly many questions: in the Symfony package @ Symfony\Component\Mime\Message.php I can see inside the constructor: $this->headers = $headers ? clone $headers : new Headers(); You mentioned cloning in some lessons before but I am not really understanding why in case of an Email we should clone this object instead of just passing it through? $this->headers = $headers ? $headers : new Headers(); At least I would (if really needed, clone the headers object one layer above and in addition would get rid of the nullable Headers... that makes no sense imo as we create the object if it is not existing ergo: We will obviously always need it. public function __construct( private Headers $headers, private ?AbstractPart $body = null, ) {} Would you agree?
@ProgramWithGioАй бұрын
I'm sure Symfony developers had a reason for it. Cloning means that changes to the properties of the headers variable wont have effect on the object outside of the Message class. So if you had headers object outside of Message class & you passed it down and the Message did not clone it, when Message class makes changes to properties of the Headers object, it would affect the outer scope as well & that may not always be desired. So cloning it ensures that modifications to headers object only affects the Message class & nothing else outside of it
@lairotuT-TutorialАй бұрын
@@ProgramWithGio Well, I kept the cloning but as mentioned moved it upwards and got rid of the nullable to force error in case it should ever be null. Thanks again for your incredible high effort in answering each and every post! You are just the GOAT!
@AlexDolon10 ай бұрын
Hey Gio, I try to send emails using mailhog but I get this error "Uncaught Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "mailhog:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo for mailhog failed: Temporary failure in name resolution in /var/www/html/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154". Please what could be the solution?