I am trying to send emails using Gmail SMTP relay using a laravel 5.6 application. I have a g-suite education account and using one of the emails of that account. Using simple SMTP settings it works fine however daily quota is only 2000 emails but for the relay, the quota is 10000 email.
the issue is the relay settings work sometimes and fail the other time.
here are the settings
MAIL_HOST=smtp-relay.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD="an app password generated through the email settings"
MAIL_ENCRYPTION=TLS
I am getting the error "Expected response code 250 but got code "550", with a message "550-5.7.1 Invalid credentials for relay" and email sending fails...
If you're sending over 2000 emails a day it might be better to start using a solid mail provider like mailtrap, mailgun or postmark.
It sounds odd to me that it works for one part of the emails and it fails for the other emails. It either works or it doesn't. You can say that Google is a party that probably has everything up and running 99% of the time! If it sometimes works I would probably contact Google itself and ask them if they can provide any directions.
Sorry to revive this old thread.
I'm facing a somewhat similar issue. I've signed up with a mail provider (sendgrid), to send the transactional emails of my app. The thing is, they get flagged as "promotional" and end up in the buckets of all popular mail providers. (eg. Google, Live, Yahoo, etc.). For example, sending a "thank you for registering here is your email verification link" ends up in "Promotions" tab in Gmail or Spam folder in Yahoo/micrsoft-domains.
make sure you have valid spf record for your domain. It's likely that the sender domain is being considered promo not sendgrid.... but really you should be asking them rather than here on an unrelated thread
@Snapey Asked them twice already for help. Their reply is "here is a list of 5 things to do" which is all related to marketing emails, and I specifically wrote "transactional emails". Seems to me that they don't really care. I came here as a last resort, maybe the community has experience with things like email deliverability.