How to to send mail using gmail in Laravel?

first login to your gmail account and under My account > Sign In And Security > Sign In to google, enable two step verification, then you can generate app password, and you can use that app password in .env file. Your .env file will then look something like this MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=myemail@gmail.com MAIL_PASSWORD=apppassword MAIL_ENCRYPTION=tls … Read more

Why do I receive a DMARC report everyday? [closed]

In short: it’s all good. Here’s the explanation for this: DMARC stands for Domain-based Message Authentication, Reporting, and Conformance. It is in fact a ruleset made for reporting back to you on the quality of the email messages received from your domain. You are receiving those XML reports because it’s what you asked with the … Read more

How to get focus to a Chrome tab which created desktop notification?

You can just place window.focus() in Google Chrome. It will focus to that window when clicked. var n = window.webkitNotifications.createNotification(‘ico.gif’, ‘Title’, ‘Text’); n.onclick = function(x) { window.focus(); this.close(); }; n.show(); I opened the inspector in Gmail, added the above code, moved to a different tab, and ran it. The notification appeared and once clicked, it … Read more

How can I shift-select multiple checkboxes like GMail?

I wrote a self-contained demo that uses jquery: $(document).ready(function() { var $chkboxes = $(‘.chkbox’); var lastChecked = null; $chkboxes.click(function(e) { if (!lastChecked) { lastChecked = this; return; } if (e.shiftKey) { var start = $chkboxes.index(this); var end = $chkboxes.index(lastChecked); $chkboxes.slice(Math.min(start,end), Math.max(start,end)+ 1).prop(‘checked’, lastChecked.checked); } lastChecked = this; }); }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> <html> <head> </head> <body> … Read more

Animated icon in email subject

#Short description: They are referred to internally as goomoji, and they appear to be a non-standard UTF-8 extension. When Gmail encounters one of these characters, it is replaced by the corresponding icon. I wasn’t able to find any documentation on them, but I was able to reverse engineer the format. #What are these icons? Those … Read more

Net::SMTPAuthenticationError when sending email from Rails app (on staging environment)

I had the same problem: emails were sent from development, but not from production (where I was getting Net::SMTPAuthenticationError). This drove me to conclusion that the problem was not with my app’s configuration, but with Google. Reason: Google was blocking access from unknown location (app in production) Solution: Go to http://www.google.com/accounts/DisplayUnlockCaptcha and click continue (this … Read more

Sending email fails when two factor authentication is on for Gmail

Create a custom app in you Gmail security settings. Log-in into Gmail with your account Navigate to https://security.google.com/settings/security/apppasswords In ‘select app’ choose ‘custom’, give it an arbitrary name and press generate It will give you 16 chars token. Use the token as password in combination with your full Gmail account and two factor authentication will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)