Failed to authenticate on SMTP server with username "xxxxx#xxxx.org" using 2 possible authenticators
I have two Mail (send mail controller) functions on laravel. One works fine with the credentials one throws this error? Not sure what is causing it.
Related
In my .env file I have:
MAILER_URL="smtp://localhost:25?encryption=&auth_mode="
But if I send a mail the log shows:
Could not send mail: Failed sending mail to following recipients: {{ recipients }} with Error: Unable to connect with STARTTLS. Error Code:0 Template data ...
Looks like it tries to use TLS but I don't want to. It worked before. Maybe it got broken by an update.
Looking at the documentation I also tried encryption=null with same result.
Debugging in vendor/shopware/core/Content/Mail/Service/MailerTransportFactory.php:36 I made sure my MAILER_URL was used.
I am using shopware 6.4.1.1 with symfony/mailer v5.2.10
How can I get mails working again?
By default, the SMTP transport in the Symfony Mailer performs TLS peer verification. You can disable this verification by setting the parameter verify_peer to 0, for example:
MAILER_URL="smtp://localhost:25?encryption=&auth_mode=&verify_peer=0"
I am working in codeigniter framework using imap library. I want to get all mails from my mail server into my web app.
My code is working fine when i am using
imap_open("{imap.gmail.com:993/imap/ssl}INBOX", my_email, my_password);
but whenever I tried to get access of my hostgator mail server I got these type of errors.
1: imap_open(): Couldn't open stream {mail.mydomain.com:993/imap/ssl}INBOX
2: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1).
3: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. (errflg=2)
According the HostGator Documentation you should provide (for secured imap):
A username, your full email address
Your password
Your full server name
Port: 993
SSL: SSL/TLS
You should end up with something like
imap_open("{full.servername.com:993/imap/ssl/tls}", "my.email#servername.com","pwd");
You could also try the normal incoming mail settings which requires
A username, your full email address
Your password
Your full server name
Port: 143
SSL: none
Resulting in:
imap_open("{full.servername.com:143}", "my.email#servername.com","pwd");
I have a laravel project uploaded on shared hosting via Go Daddy. I find that it's very 'moody, it often stops working.
Often i get time out errors and the erorr below
[2018-07-07n23:22:01] local.ERROR: Failed to authenticate on SMTP server with username "me#ne.org" using 2 possible authenticators {"exception":"[object] (Swift_TransportException(code: 0): Failed to authenticate on SMTP server with username \"x#x.x\" using 2 possible authenticators
I have tried using external smtp services such as mail chip or mailjet and also get errors.
MAIL_DRIVER=smtp
MAIL_HOST=smtp-mail.outlook.com
MAIL_PORT=587
MAIL_USERNAME=username
MAIL_PASSWORD=sdasda
MAIL_ENCRYPTION=TLS
I have even purchased outlook from Godaddy to try solve the issue and not rely on cpanel email.
Could this be becuase i have basic hosting and not business hosting?
Smtp details which we use are correct, for host smtp.office365.com mail is not sent every time.
Sometimes this error is generated,
Fatal error: Uncaught Swift_TransportException: Failed to authenticate on SMTP server with username "XXX" using 2 possible authenticators in vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php on line 181
Observed behaviour
Sometimes with the same details, emails are sent.
Expected behaviour
It should send an email every time.
Can anyone please tell me what should I do?
Is the login credentials you used correct and the.env file configured correctly? Here are two links that might be useful to you.
PHP Fatal error: 'Swift_TransportException' with message 'Failed to authenticate on SMTP server
Failed to authenticate on SMTP server error using gmail
Hi guis I have been migrating an application to new server, is an Ubuntu server but on the new server I have some problem to send emails using Cakephp 2.0.
If the host on cake mail config is localhost I have the following error:
SMTP Error: 530 5.7.0 Must issue a STARTTLS command first
Search on the internet the solutions may be is config SMTP ssl://mydomain.com.br on php.ini or using ssl host like this ssl://mydomain.com.br on cake mail config. On the first option nothing change, error persist and with host ssl on cake mail config I have the following error:
Unable to connect to SMTP server.
I make a simples test using only php mail() function and the email is been sent.
On this server I config postfix and dovecot may be this can be the problem?
you can use 'PHPMailer'.
it's simple and easy.
https://github.com/PHPMailer/PHPMailer