- 580
- 996 145
Mailtrap
United States
เข้าร่วมเมื่อ 28 ก.ย. 2021
The ultimate hub for all things email.
What is SDK? - Tutorial by Mailtrap
#mailtrap #mailtraptutorial #sdk #webdeveloper #webdevelopment #sdk_vs_api #emailservice
What is SDK? What does SDK stand for? Find answers in this Mailtrap tutorial. Learn the SDK meaning, see SDK examples, compare API vs SDK and find out more about SDK integration.
00:00 - Intro
00:21 - What is SDK?
00:49 - SDK examples
01:39 - How SDKs work
02:09 - SDK vs API
Learn more about Mailtrap and start for free at 🔗 l.rw.rw/mwxuwi9lxv
Watch other 🎥 Mailtrap videos on email infrastructure:
▶ Email API explained th-cam.com/video/6MNjq2dMwS8/w-d-xo.html
▶ What Is SMTP? th-cam.com/video/iUhDT3ZtWS0/w-d-xo.html
▶ Mail Agents Explained: th-cam.com/video/rgNr1dFAR9c/w-d-xo.html
Stay tuned!
Subscribe to our TH-cam channel and other pages on social media:
TH-cam: l.rw.rw/0gn08dl9d5
X: mailtrap
Facebook: Mailtrap
TikTok: www.tiktok.com/@mailtrap.io
Instagram: mailtrap.io
LinkedIn: www.linkedin.com/company/mailtrap
Disclaimer: We respect intellectual property rights. All the materials you see in this video, which belong to 3-rd parties, are used in line with the respective legislation.
What is SDK? What does SDK stand for? Find answers in this Mailtrap tutorial. Learn the SDK meaning, see SDK examples, compare API vs SDK and find out more about SDK integration.
00:00 - Intro
00:21 - What is SDK?
00:49 - SDK examples
01:39 - How SDKs work
02:09 - SDK vs API
Learn more about Mailtrap and start for free at 🔗 l.rw.rw/mwxuwi9lxv
Watch other 🎥 Mailtrap videos on email infrastructure:
▶ Email API explained th-cam.com/video/6MNjq2dMwS8/w-d-xo.html
▶ What Is SMTP? th-cam.com/video/iUhDT3ZtWS0/w-d-xo.html
▶ Mail Agents Explained: th-cam.com/video/rgNr1dFAR9c/w-d-xo.html
Stay tuned!
Subscribe to our TH-cam channel and other pages on social media:
TH-cam: l.rw.rw/0gn08dl9d5
X: mailtrap
Facebook: Mailtrap
TikTok: www.tiktok.com/@mailtrap.io
Instagram: mailtrap.io
LinkedIn: www.linkedin.com/company/mailtrap
Disclaimer: We respect intellectual property rights. All the materials you see in this video, which belong to 3-rd parties, are used in line with the respective legislation.
มุมมอง: 68
วีดีโอ
Mailtrap Email Logs
มุมมอง 7314 ชั่วโมงที่ผ่านมา
#mailtrap #mailtraptutorial #mailtraplogs #mailtrap_email #emaillogs #webdeveloper In this Mailtrap tutorial, we show you how to use Mailtrap email logs so you can debug email deliverability issues or check how emails performed. We cover everything from how to find email logs in Mailtrap to how to use the advanced filtering options and access detailed information. 00:00 - Intro 00:44 - Navigati...
Nodemailer with Gmail: Send Emails in Less than 10 Minutes
มุมมอง 66921 ชั่วโมงที่ผ่านมา
#mailtraptutorial #mailtrap #nodemailer #nodejstutorial #nodejsdevelopment #gmail_nodejs In this Mailtrap tutorial, we detail how to send emails in Nodemailer with Gmail. Learn how to send Nodemailer HTML emails and create Nodemailer Gmail app password, explore Nodemailer examples, and much more. 00:00 - Intro 00:30 - Creating app password 01:00 - Sending plain text emails with Nodemailer and G...
5 Minute Vue.js Email Form Validation with VeeValidate
5 Minute Vue.js Email Form Validation with VeeValidate
Autumn 2024 Mailtrap Product Updates - New Features Harvesting Season
มุมมอง 30314 วันที่ผ่านมา
Autumn 2024 Mailtrap Product Updates - New Features Harvesting Season
Flask Tutorial: Email Verification in Flask Contact Form
มุมมอง 4.8K14 วันที่ผ่านมา
Flask Tutorial: Email Verification in Flask Contact Form
The Dark Side Of Email Marketing Exposed
มุมมอง 4.9K21 วันที่ผ่านมา
The Dark Side Of Email Marketing Exposed
Best AI Tools for Email Management - Tutorial by Mailtrap
มุมมอง 4K21 วันที่ผ่านมา
Best AI Tools for Email Management - Tutorial by Mailtrap
Telnet Test Email (Linux) - Tutorial by Mailtrap
มุมมอง 3.9Kหลายเดือนก่อน
Telnet Test Email (Linux) - Tutorial by Mailtrap
Vue.js Email Form Validation with Formkit - Tutorial by Mailtrap
มุมมอง 7Kหลายเดือนก่อน
Vue.js Email Form Validation with Formkit - Tutorial by Mailtrap
Laravel 11 Multi Auth with Breeze - Tutorial by Mailtrap
มุมมอง 3.4Kหลายเดือนก่อน
Laravel 11 Multi Auth with Breeze - Tutorial by Mailtrap
The Shocking Cost of Undelivered Emails in 2024
มุมมอง 3.5Kหลายเดือนก่อน
The Shocking Cost of Undelivered Emails in 2024
Javax VS Jakarta - Java Mail Maddness Explained in 5 Minutes
มุมมอง 4Kหลายเดือนก่อน
Javax VS Jakarta - Java Mail Maddness Explained in 5 Minutes
Can AI Outsmart Email Scammers? Learn when NOT to use AI tools
มุมมอง 7Kหลายเดือนก่อน
Can AI Outsmart Email Scammers? Learn when NOT to use AI tools
Vue Custom Validation For Emails - Tutorial by Mailtrap
มุมมอง 9Kหลายเดือนก่อน
Vue Custom Validation For Emails - Tutorial by Mailtrap
Add reCAPTCHA to Flask Form - Tutorial by Mailtrap
มุมมอง 5Kหลายเดือนก่อน
Add reCAPTCHA to Flask Form - Tutorial by Mailtrap
AI Tools for Email Security - Top Cybersecurity Expert Tips
มุมมอง 8K2 หลายเดือนก่อน
AI Tools for Email Security - Top Cybersecurity Expert Tips
Telnet Test Email (Windows) - Tutorial by Mailtrap
มุมมอง 7K2 หลายเดือนก่อน
Telnet Test Email (Windows) - Tutorial by Mailtrap
Linux Test Email - Tutorial by Mailtrap
มุมมอง 8K2 หลายเดือนก่อน
Linux Test Email - Tutorial by Mailtrap
Vue.js Contact Form - Tutorial by Mailtrap
มุมมอง 9K2 หลายเดือนก่อน
Vue.js Contact Form - Tutorial by Mailtrap
Laravel Tutorial: 10 vs 11 what has changed for emails? - Tutorial by Mailtrap
มุมมอง 9K2 หลายเดือนก่อน
Laravel Tutorial: 10 vs 11 what has changed for emails? - Tutorial by Mailtrap
How to Send Email with Telnet and Why You Should Never Do This
มุมมอง 7K2 หลายเดือนก่อน
How to Send Email with Telnet and Why You Should Never Do This
How to Test My Email Deliverability And When to Do It - Tutorial by Mailtrap
มุมมอง 18K2 หลายเดือนก่อน
How to Test My Email Deliverability And When to Do It - Tutorial by Mailtrap
How To Check My Email Deliverability Manually?
มุมมอง 9K3 หลายเดือนก่อน
How To Check My Email Deliverability Manually?
Mastering Email Deliverability in 2025 The Top Tools You Need
มุมมอง 7K3 หลายเดือนก่อน
Mastering Email Deliverability in 2025 The Top Tools You Need
Expert Email Hack: Send Emails from Linux with Mailtrap API!
มุมมอง 10K3 หลายเดือนก่อน
Expert Email Hack: Send Emails from Linux with Mailtrap API!
PHP Email Verification - Tutorial by Mailtrap
มุมมอง 6K3 หลายเดือนก่อน
PHP Email Verification - Tutorial by Mailtrap
Simple Ways to Send Email from Linux Using SMTP - Tutorial by Mailtrap
มุมมอง 5K3 หลายเดือนก่อน
Simple Ways to Send Email from Linux Using SMTP - Tutorial by Mailtrap
Boost Your Email Deliverability to 100 % in 2025
มุมมอง 10K3 หลายเดือนก่อน
Boost Your Email Deliverability to 100 % in 2025
Jakarta mail: send email in Java using Gmail - Tutorial by Mailtrap
มุมมอง 4.6K4 หลายเดือนก่อน
Jakarta mail: send email in Java using Gmail - Tutorial by Mailtrap
brother i have an professional email ok along with my domain name got from godaddy when ever i try to use it in my code it says that username and password is not accepted why?
Where do you download the EA Send Mail Component Library from? Is there a cost?
Saved my day, Thanks
You’re welcome! We’re happy to help 😊 Stay tuned for more things email
me salvou, obrigado
Obrigado, estamos aqui para ajudar! 😊
3:55 Have you just pronounced "EmailToId" as "Email told"???
Maybe it was Email Toad? Who knows... ))))
I like the accent of the speaker
Thank you! We appreciate your kind words. Stay tuned for more things email!
Je suis content de cette vidéo sur l'envoi de mail en laravel
Merci beaucoup, nous apprécions énormément vos gentils mots.
@mailtrap. oui je suis passionné de la programmation web et je dis merci de plus de votre encadrement pour nous débutants. Je viens d'essayer mais c'est comme si chez moi la configuration ne marche pas bien.
Salut ! Merci beaucoup pour vos gentils mots. Ça fait déjà un an que nous avons réalisé cette vidéo. Gmail a depuis déplacé ses configurations. Pas d’inquiétude, elles sont toujours disponibles, mais elles se trouvent désormais dans les paramètres de votre compte Google -> Sécurité -> Validation en 2 étapes (sous "Comment vous connecter à Google"). Vous pouvez aussi utiliser la barre de recherche pour les retrouver :D Dites-nous si ça vous a aidé ! Si ce n’est pas le cas, n’hésitez pas à poser vos questions précises. Passez une excellente journée ! 😊
@mailtrap. merci beaucoup pour les conseils et les orientations je veux encore essayer
@mailtrap. vraiment j'aime la programmation web vraiment vous allez toujours m'aider à devenir quelqu'un dans la programmation web
When I started learning Flask six months ago, I really wish this video had been available. It would have made my journey so much easier!
Thank you for the feedback! We hope our videos are helpful to you and other learners.
This is perfect
Thank you so much! Stay tuned to our channel. More email things are on the way!
Time wasting, one of the worst tutorials, don't watch it.
Hi, thanks for sharing your thoughts. We're always looking to improve our content and make it helpful for everyone. We appreciate your feedback and regret you are upset.
what a waste of time, the gmail app password configuration and google workspace are core which you missed altogether. I wonder if any newbie will benefit from this video. Because if they do not know the basics on how Gmail does not allow using the account password with smtp clients since 2022 they'll be just beating around the bush without any success.
Hi, thanks for sharing your thoughts. We're always looking to improve our content and make it helpful for everyone. We appreciate your feedback and regret you are upset.
In this JavaScript email tutorial, you’ll learn how to use a third party email service and send email JavaScript. After watching the tutorial, you’ll easily send contact form data to email using JavaScript. Did you find this guide on JavaScript email sending insightful? Drop your thoughts, questions, or topics you'd like to see next in the comments. 👇
Follow along with this Mailtrap tutorial, where we uncover Python email validation. Learn how to write a python program to validate email address, from regex and Python packages to APIs. Have your own unique way of conducting email validation in Python? Tell us more in the comments!
In this video, we discussed everything about email IP reputation, including how to check email IP reputation, and how to improve IP email reputation. Curious about other similar topics? Tell us in the comments!
In today's video, we explained the differences between soft bounce and hard bounce email. We answered questions such as ‘what is soft bounce in email marketing?’, ‘how to fix soft bounce email?’, and ‘what do I do about hard bounce email?’ Did we help clarify the differences between hard and soft email bounce? Share your thoughts and any topics you'd love for us to tackle next in the comments below! ⬇
Email bounce has a direct impact on email deliverability. In this quick video, we discovered what is an email bounce, what is a good email bounce rate, what are the types of email bounce, and how to reduce email bounce rate. Have you struggled with email bounces? What do you do to avoid them? Let us know in the comments!
Today, we put together a Django forms tutorial for beginners. We covered how to create Django contact us form, how to add Django contact form validation, and how to send emails from Django forms. Have you built a Django contact form before or is this your first time? Did you find it difficult? Share your experience in the comments!
In this tutorial about Excel tips and tricks, we covered how to test emails in Excel with Mailtrap Email Testing. You’ll learn how to create an account, write an email-sending script, and send Excel test emails. Have you tried testing emails sent from Excel? Which tool did you use? Let us know in the comments.
Today, we put together a tutorial exploring how to send email from Excel. We covered Excel macro to send email, how to send automated email from Excel, how to send bulk excel email, etc. Do you send email from Excel frequently? Which methods do you prefer? Share your thoughts and experiences in the comments!
In today’s Mailtrap tutorial, we covered everything around email deliverability expert and why you may need one, who is an email deliverability expert, and how to avoid emails going to spam. We simplified concepts such as email deliverability metrics, email deliverability monitoring, email deliverability audit, and threw in some email deliverability tips. If there are specific aspects of email deliverability you'd like us to delve deeper into, or if there's another topic you're curious about, please do let us know in the comments below! ⬇
In today’s video, we explored what is email API, what does an API do, how email API works, what is an API client, and more. Is there anything else you’d like to know about email sending API? Let us know in the comments.
pls how do i get node.js
Hey, if you are talking about Mailtrap, you need to go to sending domains, add sending domain, and choose node.js from the integrations list. If you are talking overall, you can just install it from node.js platform
nice tutorial, do you want to make a multi login tutorial for breeze and filament. Breeze is for regular users to log in and filament is for admins.
Thanks for the idea and for your feedback! We appreciate, and will think about it!
In this guided tutorial, we demystified   (non breaking space) and HTML space. We covered what is nbsp, how to use nbsp tag in HTML, why it mightn’t be the best approach, and what to use instead. Did this guide clarify the use of   and the depth of HTML spacing ? Got more questions or areas you'd like us to answer? Your insights is what help us make better content. Comment below!
If you’re building a Python project or an app, it’s essential to test it. And, in this Mailtrap tutorial, we showed you how to test email in Python, write Python test email syntax, use subprocess function for Python email, and much more. What other email testing topics would you like us to cover next? Share your thoughts in the comments.
In this tutorial, we covered all things Python and Gmail, including how to send SMTP email with Gmail and Python, how to use Gmail API to send an email in python, how to send HTML emails, how to send email with Gmail attachment using Python, and much more. Did this tutorial clear up any confusions or challenges you previously faced? Are there other areas of email processes you'd like us to delve into? Comment below and share your thoughts ⭐
Today, we covered what are transactional emails, in what situations you may receive triggered emails, compared transactional vs marketing emails, and included useful email marketing tips. What other topics would you like us to cover next? Let us know in the comments!
If I send emails only as notifications, will the steps remain the same, or is there an additional step I should do? because I already made a folder for notifications that returns the view PHP in views folder. thanks in advance!
Hey, thanks for watching our videos, and thank you for the question. We are planning a tutorial on notifictaions in Laravel. But the quick response would be: the steps are a bit different. Laravel’s notification system abstracts some details and provides built-in support for different notification channels, including email. For email as notification: 1)Create a notification class using php artisan make:notification. 2)Implement the toMail() method within the notification class to format the email content. 3)Trigger the notification with $user->notify(new YourNotification());. Key Differences: - Notifications use the notify() method on the Notifiable model (like a User), whereas mailables use Mail::to(). - Class Type: Mailable classes are different from Notification classes in terms of structure and functionality. We hope this helps. Stay tuned!
@@mailtrap. thank you! i would love to see the tutorial. hope it come out as soon as possible :)
We are trying our best! Thank you!
In today’s Mailtrap tutorial, we explained C# email validation using MailAddress Class, C# email validation regex, and Data Annotations. What other email validation topics would you like to see next? Share your thoughts below!
We hope this Django mail tutorial has been helpful in sending Django test email and debugging Django email backend. What other aspects of Python frameworks would you like us to cover? Leave us a comment with your suggestions!
In this C Sharp tutorial, we covered C# email testing with Mailtrap fake SMTP server, from installing MailKit via NuGet to sending C# test emails. What other email testing topics would you like us to explain next? Comment below and let us know.
In this Ruby on Rails tutorial, we covered everything about Ruby on Rails email validation, from creating email regex Rails to using the email_validator gem. Let us know in the comments what other topics you'd like us to cover on Ruby on Rails…or any other framework you love!
In this Mailtrap tutorial, we detailed how to test email in Python with Mailtrap Email Testing. We covered testing Python email with smtplib and Mailtrap fake SMTP server. Have you ever used Mailtrap Email Testing to inspect and debug emails? Share your experience in the comments.
At Mailtrap, we offer businesses an actionable plan how to stop losing money on emails right now. Learn about Google Postmaster tool, GDPR compliance, new Google and Yahoo email rules, dedicated IP-addresses, and how to improve your overall email deliverability. Let us know what you think in the comments.
Why is therean error? (Trying to access array offset on value of type null) Please help
Thanks for watching! You may have a few solutions: 1) Make sure that the array or object you are trying to access is properly initialized and not null. For instance, if you are trying to access an array offset like $data['key'], check whether $data is null. if (!empty($data) && isset($data['key'])) { // Safe to access $data['key'] } 2) If the error occurs while sending an email, it could be related to missing or incorrect configurations. Verify your .env file has correct email settings: MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=your_username MAIL_PASSWORD=your_password MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=youremail@example.com MAIL_FROM_NAME="${APP_NAME}" 3) Ensure that none of these values are null. You can debug them by using: dd(config('mail')); 4) If you're passing data from the controller to the view, make sure that the data you're trying to access exists in the array being passed to the email view. Example controller: Mail::send('emails.example', ['data' => $data], function ($message) { $message->to('recipient@example.com') ->subject('Your Subject'); }); 5) If the error is related to email sending, enable error logging for email failures by configuring the config/mail.php file to use the log driver temporarily for debugging purposes: 'default' => env('MAIL_MAILER', 'log'), 6) f you’re passing data to the email, ensure the data exists in your controller action: $data = SomeModel::find($id); if (is_null($data)) { abort(404); // or handle the null case properly } Good luck!
are you sure that is working todays?! Because tehere is nomore solution without authenticating token and passkeys. your video should representate actual solution from 2024. but its from older years check it up please again.
Hi, thank you for watching! The video is from 1 year ago as you can see, so yes, thanks for the update!
poor and unorganized tutoirial, also, not working with gmail.
Thank you very much for your input! We are sorry your feelings of structure were hurt. However, we have tutorials for all kinds of tastes and topics. That's why we are called the hub for all things email. Please, enjoy our tutoral on Windows Powershell with Gmail SMTP, and have a wonderfully structured day <3. th-cam.com/video/EMNtsYHF55E/w-d-xo.html
You are one of the most useful channels. Thanks!
Thank you! We appreciate your compliment! Stay tuned for more things email!
Can telnet be use to send bulk email?
Thank you for watching and for your question. Here's our video about how to send emails with Telnet and why you should never do this: th-cam.com/video/Qru1XVVdTDI/w-d-xo.html
can i send cold emails using mailtrap?
Thank you for watching out videos, and for your question. No, Mailtrap forbids cold emailing at this point.
Pardon me, my "htmlContent" is very long, how can process this?
Thank you for watching our video and for your question. Try instead of embedding long HTML content in your Java code, store the HTML content in an external file. You can load the file dynamically when sending the email. This keeps your code clean and allows easier modifications to the email content. We hope this helps. Good luck!
I got error , message not delivered it discarded as high spam , I don't know why , I have my own ssl domain with private mail
Thanks for watching and for your question. A few common mistakes that may lead to error in this context: - Lack of Email Authentication (Configure your SPF, DKIM, and DMARC) - Improper SMTP Settings (Invalid or misconfigured settings (e.g., wrong port, incorrect SMTP server) can cause email services to treat the email as suspicious.) Here's the code, try to use it again: from flask import Flask from flask_mail import Mail, Message app = Flask(__name__) # SMTP Server Configuration (for example, using Gmail's SMTP server) app.config['MAIL_SERVER'] = 'smtp.gmail.com' app.config['MAIL_PORT'] = 465 app.config['MAIL_USERNAME'] = 'your-email@gmail.com' app.config['MAIL_PASSWORD'] = 'your-password' app.config['MAIL_USE_TLS'] = False app.config['MAIL_USE_SSL'] = True mail = Mail(app) @app.route("/send-email") def send_email(): msg = Message("Hello from Flask", sender="your-email@gmail.com", recipients=["recipient@example.com"]) msg.body = "This is the plain text body" msg.html = "<h1>This is the HTML body</h1>" try: mail.send(msg) return "Email sent!" except Exception as e: return str(e) if __name__ == "__main__": app.run(debug=True) Make sure the MAIL_USERNAME and MAIL_PASSWORD match your SMTP server credentials, and ensure you are adhering to the SMTP provider’s guidelines for email limits. Good luck!
This is not working, SMTP Error: Could not authenticate.
Hey man, I got the same error when I set up MT a while ago. The thing that bugged me was that I thought it was like Gmail SMTP, so I used my Mailtrap account name instead of 'username' that's in the credentials tab. Hope it helps my guy 🍻
Hey, thanks for your help and comment! Yes, it's true. One needs to use username from MT credentials, not the account name! Cheers! Thanks for being with us! Stay tuned!
Bro please help me. I am working on a to do list web app in which I want to send email notificationfor those users whose tasks are pending. And I am stuck 😢😢😢
@@whitishcreates which language/framework my guy?
@@ivandjuric3676 php and mysql.
I remember using telnet to send someone an email addressed from the White House when I was in college. There's been so many changes made to emails since then that it would likely be immediately rejected as fraudulent today. Using telnet to send emails is... honestly not worth the effort.
Is Mailtrap an email hosting? Not sure I understand
Thank you for watching and for your question. Mailtrap is an email delivery platform for devs and marketers. We offer email sending (user-triggered emails and email marketing campaigns) and email testing. We don't offer email hosting.
Awesome. Really love the editing in this video. Can we use custom Email templates that are designed using Beefree or such email template apps and pass arguments with gomail package. It would be great if such a tutorial is made available by the team. Thank you
Thank you for watching! We appreciate this nice feedback from you. Of course, we can make a video about email templates in GO. Stay tuned, and we'll deliver!
Beginner here! Can I also integrate or use that functionality to codeigniter 4 framework? need some guidance
Thanks for watching! And thank you for your question. Let's see. The core concept of email verification in PHP is the same as in CodeIgniter 4 since CodeIgniter 4 is built using PHP. Both approaches follow similar steps: User Registration: Store user details and a verification token in the database. Email Sending: Send an email with a unique link containing the token. Token Verification: When the user clicks the link, check the token and activate the user account. However, CodeIgniter 4 provides a framework structure and built-in libraries to simplify this process compared to raw PHP. Let me break down the differences: Key Differences: Framework Support: PHP: You need to manually handle everything-database connection, query preparation, email configuration, validation, routing, etc. CodeIgniter 4: It offers pre-built classes for emailing, routing, and database handling, which reduces code complexity. CodeIgniter's built-in services like Email make it easier to send emails. Routing: PHP: You’ll need to define the routing manually or use .htaccess to handle dynamic URLs for token verification. CodeIgniter 4: Routes are configured via the app/Config/Routes.php file, simplifying the process of mapping URLs to controller actions. Security: PHP: You need to manually implement security measures, such as sanitizing input, hashing passwords, and escaping data. CodeIgniter 4: The framework has built-in security features like CSRF protection, XSS filtering, and input validation, reducing the risk of common vulnerabilities. Email Handling: PHP: You would typically use mail() or external libraries like PHPMailer to send emails. CodeIgniter 4: The framework offers its own Email library, which simplifies email sending, configuration, and error handling. Validation: PHP: You must manually validate email addresses, user input, and token handling. CodeIgniter 4: Offers a validation library that helps validate user input with predefined rules. Check out this code comparisons: Raw PHP Verification: // registration.php (User Registration) $email = $_POST['email']; $token = bin2hex(random_bytes(16)); $hashedPassword = password_hash($_POST['password'], PASSWORD_DEFAULT); // Save user and token to the database $pdo->prepare("INSERT INTO users (email, password, token) VALUES (?, ?, ?)") ->execute([$email, $hashedPassword, $token]); // Send email $subject = "Verify your email"; $message = "Please click the link to verify your email: yourdomain.com/verify.php?token=$token"; mail($email, $subject, $message); // verify.php (Verification) $token = $_GET['token']; $stmt = $pdo->prepare("SELECT * FROM users WHERE token = ?"); $stmt->execute([$token]); $user = $stmt->fetch(); if ($user) { // Verify user $pdo->prepare("UPDATE users SET token = NULL, is_verified = 1 WHERE id = ?") ->execute([$user['id']]); echo "Email verified!"; } else { echo "Invalid token!"; } CodeIgniter 4 example: // app/Controllers/AuthController.php use App\Models\UserModel; class AuthController extends BaseController { public function register() { $userModel = new UserModel(); $userData = [ 'email' => $this->request->getPost('email'), 'password' => password_hash($this->request->getPost('password'), PASSWORD_DEFAULT), 'email_verification_token' => bin2hex(random_bytes(16)), ]; if ($userModel->insert($userData)) { $this->sendVerificationEmail($userData['email'], $userData['email_verification_token']); return redirect()->to('/login')->with('message', 'Please check your email to verify your account.'); } return redirect()->back()->withInput()->with('error', 'Registration failed'); } private function sendVerificationEmail($email, $token) { $emailService = \Config\Services::email(); $emailService->setTo($email); $emailService->setFrom('no-reply@yourdomain.com', 'Your Website'); $emailService->setSubject('Verify your email'); $emailService->setMessage("Click the link to verify your email: " . base_url('auth/verify/' . $token)); $emailService->send(); } public function verify($token) { $userModel = new UserModel(); $user = $userModel->where('email_verification_token', $token)->first(); if ($user) { $userModel->update($user['id'], ['email_verification_token' => null, 'is_verified' => 1]); return redirect()->to('/login')->with('message', 'Email successfully verified!'); } return redirect()->to('/login')->with('error', 'Invalid token!'); } } We hope this helps. Let us know. Good luck!
Does Mailtrap provides mail-boxes previews or do we still need to -dumbly - create email addresses like described?
Thank you for watching the video, and for your question! Yes, Mailtrap allows you to check how the HTML elements would look like in different mailbox providers, and offers suggestions on fixing the bugs accordingly.
@@mailtrap. Thanks for the reply. I saw the HTML checks, but nothing concerning "previews / screenshots".
What mean of log retention days
Please, contact our team at support@mailtrap.io to attend to your needs, and make a quote if you need customizable, or specific solutions. We would take care of your needs instantly. And you can get all the info in the full.