Complete Tutorial on Sending Emails with Laravel Mailable Class ua-cam.com/video/yEPK2LpbgDk/v-deo.html Create a REST API with Laravel ua-cam.com/video/uJIHJ_i3oNc/v-deo.html
Thanks for the awesome tutorial my email verification is working,before I did the email verfication, I was to validate if email alredy exist, but now Im getting this SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
Thanks! That's fairly easy. When marking the user as a valid one, after comparing the code from email, check with the created_at property with the current date and time. If that gap or the difference is too longer than your desired gap, then don't mark the user as a valid one. Show a custom error message too.
Thank you bro nice tutorial.. but it can be used to send email for production ? i mean if i hosting my laravel project can i send the email tho using this? or this just can be working on localhost ?
Thank you so much for this tutorial. You are wonderful. However, I encountered a problem and I have been stucked for 3 days now. I keep getting this error "class 'illuminate\Support\Facades\Mail' not found. despite adding the file to my controller page. Please kindly offer some suggestions that will help me out of this issue. Thanks
You're welcome! Did you import that class to the controller ? I was using PHPStorm as the IDE. It auto imports all the classes and libraries. So, I might not have imported it manually in the video.
It's a swift mailer exception. Refer to this answer. stackoverflow.com/questions/1490042/swift-mailer-error-swift-rfccomplianceexception-on-an-email-that-actually-work
@@coderawesome hey when i followed this. it shows me this. Call to undefined method Swift_Mime_Headers_MailboxHeader::getGrammar() how do I define a this method I'm sorry I'm new
Even if you use a IDE who creates relations for you, you should mention adding each on each page at a good moment. This is sad for someone who trying to follow and then facing on multiple error msg.
After I completed your tutorial step by step, I found that your validation in register form was broken. What can I do to solve this problem? Please tell me, thanks.
Sorry I didn't realize that. You can write the validation rules using the Validator class inside the register method itself or create a separate Request file and use that in the method.
These are the Mail credentials in the .env file. Make sure u enable "less secure app" in your Gmail account settings. In depth tutorial about sending emails: ua-cam.com/video/yEPK2LpbgDk/v-deo.html
@@coderawesome Hi, Thank you for your Reply. I fixed it (Just clear cache and run "php artisan serve". my next question is, I am building a Custom Login. so, How can I check is_verified = 1 or not. my exsiting code is, $credentials = $request->only('email', 'password');
if (Auth::attempt($credentials)) { return redirect()->intended('home');
We could've use that too. But that's more Laravel specific. My purpose was to cover the generic idea and the way of doing it. I'm really glad you suggested that. Thanks!
i got this error when i register ..can you solve this problem anyone Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to smtp.gmail.com:2525 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )
If I understands correct, you're asking about the form action of the signup form right ? It's the same register route. No need to change that URL. We only override register method.
@@helakajayakody2853 That's the email verification route. Replace that url with ur project's host (localhost or any domain) and route. And of course you need to include the verification hash too.
@@helakajayakody2853 well, it's the same verify route I have put in the email. We have to hardcode that url because we cannot include the url by calling the route('route_name') funtion since the user click thay link outside our application
Complete Tutorial on Sending Emails with Laravel Mailable Class
ua-cam.com/video/yEPK2LpbgDk/v-deo.html
Create a REST API with Laravel
ua-cam.com/video/uJIHJ_i3oNc/v-deo.html
Very functional bro to send campaign emails.
Thanks!
This video was truly helpful and educative. Thanks a lot!!!
thank you so much for your feedback!
Very nice video. Thanks a lot brother. I have implemented verification learning from here.
You are most welcome!
Thanks for the awesome tutorial my email verification is working,before I did the email verfication, I was to validate if email alredy exist, but now Im getting this SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
Thanks a lot! You can use Validator class add a validation rule to check if the email already exists.
@@coderawesome tks sorted
good tutorial, thanks very much. How do I make the link expire after a particular time?
Thanks! That's fairly easy. When marking the user as a valid one, after comparing the code from email, check with the created_at property with the current date and time. If that gap or the difference is too longer than your desired gap, then don't mark the user as a valid one. Show a custom error message too.
Thank you bro nice tutorial.. but it can be used to send email for production ? i mean if i hosting my laravel project can i send the email tho using this? or this just can be working on localhost ?
Thanks! Yes you can use this in production.
@@coderawesome yeah thanks mate, i already hosted my project, and its work fine.
@@mythzee5710 how u write href at signup.blade? i'm newbie at laravel hope u can answer me
Thank you so much for this tutorial. You are wonderful. However, I encountered a problem and I have been stucked for 3 days now. I keep getting this error "class 'illuminate\Support\Facades\Mail' not found. despite adding the file to my controller page.
Please kindly offer some suggestions that will help me out of this issue. Thanks
You're welcome!
Did you import that class to the controller ? I was using PHPStorm as the IDE. It auto imports all the classes and libraries. So, I might not have imported it manually in the video.
Problem solved. Thanks a million. Looking forward to more awesome vidz from u
Thank you so much ! Successfully added on my project
Glad it helped! Thanks for the comment!
This is a great tutorial. Thank you for the amazing content!
Glad you liked it! You're most welcome!
Thank you man. Awesome tutorial. This is exactly what I need to implement to my app.
Glad it was helpful!
thanks brother but the github code is error like this
Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
This error is generally caused when the email filed is empty
This is really awesome tutorial. Please do more !!! thanks! master
You're very welcome brother.
Symfony\Component\Routing\Exception\RouteNotFoundException
Route [verification.notice] not defined. i got this error sir please guide me
Which editor you use?
PhpStorm
All tutorials use gmail as email examples. The verification link appears as plain text if you use yahoo or hotmail and cannot be clicked!
Yeah, agreed. Always keep the link as a plain link just in case. So that the user can copy it and paste it in the browser.
Thank you so much explained really well
Thanks!! Glad it was helpful!
I get error code like this Swift_RfcComplianceException
Address in mailbox given [1edfa93617920d] does not comply with RFC 2822, 3.6.2. .. any idea ?
It's a swift mailer exception. Refer to this answer. stackoverflow.com/questions/1490042/swift-mailer-error-swift-rfccomplianceexception-on-an-email-that-actually-work
@@coderawesome didnt work sir
solve it by runnig
php artisan config:cache
php artisan config:clear
@@coderawesome hey when i followed this. it shows me this. Call to undefined method Swift_Mime_Headers_MailboxHeader::getGrammar()
how do I define a this method I'm sorry I'm new
Target class [App\Http\Controllers\Auth\Request] does not exist.
how to fix this
You might wanna manually import that class to the file.
Even if you use a IDE who creates relations for you, you should mention adding each on each page at a good moment. This is sad for someone who trying to follow and then facing on multiple error msg.
Yes agree with your point. For the later tuts I manually import those libraries.
After I completed your tutorial step by step, I found that your validation in register form was broken. What can I do to solve this problem? Please tell me, thanks.
Sorry I didn't realize that. You can write the validation rules using the Validator class inside the register method itself or create a separate Request file and use that in the method.
just add this line inside the register method: $this->validator($request->all())->validate();
@@morfawelvis1694 thanks man
What is your env settings!!! I am getting mil in trapmail butnot on gmail
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=youremail@gmail.com
MAIL_PASSWORD=emailpassword
MAIL_ENCRYPTION=ssl
These are the Mail credentials in the .env file. Make sure u enable "less secure app" in your Gmail account settings.
In depth tutorial about sending emails: ua-cam.com/video/yEPK2LpbgDk/v-deo.html
It is showing me sender address not found
@@coderawesome Cual es la aplicaciòn menos segura, la de verificaciòn en 2 pasos
Perfect!
Thanks a lot!
thank you
You're welcome!
how can u get ur localhost adress to put it in plzz
You can put ur localhost address in in href just like the way u do with normal URLs
Hi brother.
When i click verification link in computer mail its working. But mail link not working when i click in gmail in mobile.plz give solution
Where is the project hosted ?
I am getting Address in mailbox given [] does not comply with RFC 2822, 3.6.2. error when I register. Help?
Can you check if the email address is not null ? This normally happens when u enter a null value for that.
@@coderawesome is this with the migration table? I have to set the email to not null?
@@BrentDominic could u fix it? I have the same problem
@@BrentDominic .env file setup
@@mrsam8728 ive done this and used optimize and clear cache but still nothing happens do u know another way
Swift_RfcComplianceException
Address in mailbox given [54e38ff10a5f53] does not comply with RFC 2822, 3.6.2.
Can you help ?
This happens when the email address is null. add a dd() before calling the method and check if the correct values are taken from the ENV.
@@coderawesome Hi, Thank you for your Reply. I fixed it (Just clear cache and run "php artisan serve".
my next question is, I am building a Custom Login. so, How can I check is_verified = 1 or not.
my exsiting code is,
$credentials = $request->only('email', 'password');
if (Auth::attempt($credentials)) {
return redirect()->intended('home');
Is that laravel 7 or 6? Plz tell
It's Laravel 7.0
really helpful ....
Glad to hear that! Thanks!
Sir is this work in laravel 9
It should work, but there might be easier ways of doing the same stuff in Laravel 9
@@coderawesome ok sir thanks for the guidance
ErrorException
Trying to get property 'email' of non-object
This is very straightforward error. That 'email' key is missing.
hey!..
Did you solve it!
@@coderawesome i have got the same Error!
any Solve plz!
Why don't you use verified_at
We could've use that too. But that's more Laravel specific. My purpose was to cover the generic idea and the way of doing it. I'm really glad you suggested that. Thanks!
Thanks man
You're welcome! And thanks a lot for your feedback!
NICE
Thanks a lot!
why to do all this? laravel 7 has built in email verification .
Yes it has. This is for older versions and other mailing or verification purposes.
i got this error when i register ..can you solve this problem anyone
Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to smtp.gmail.com:2525 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
)
Did you enable "less secure app" option in the Google account you used for the SMTP credentials ?
thank sir
You're welcome! And Thanks a lot for your feedback!
what is the url link in the signup-email.blade.php. what should i add instead of that email
If I understands correct, you're asking about the form action of the signup form right ? It's the same register route. No need to change that URL. We only override register method.
@@coderawesome i'm asking about this Click Here!. what should i add instead of this href link. I couldn't figure it out
@@helakajayakody2853 That's the email verification route. Replace that url with ur project's host (localhost or any domain) and route. And of course you need to include the verification hash too.
@@coderawesome I COULDN'T FIND ANY ROUTE LIKE THAT IN YOUR PROJECT APART FROM /VERIFY IN THE WEB.PHP FILE
@@helakajayakody2853 well, it's the same verify route I have put in the email. We have to hardcode that url because we cannot include the url by calling the route('route_name') funtion since the user click thay link outside our application
Cannot send message without a sender address what should I do?
Well, you should have a sender address.
@@coderawesome can you tell where to put sender address ?
38:59
show .env file, please!
I'm sorry about that. I'll update the description with the .env content.
Hello Mr. coder aweso.me. I have a problem why is it my confirm password not working?
Can you mention if you're getting any errors ?
Very functional bro to send campaign emails
Thanks!