I want to be able to send emails from Magnolia CMS using a Gmail account. What are the steps to follow?
I am having authentication issue when trying to verify the setup by sending a test email.
Here are the steps for dummies:
Back in Magnolia, go to your user profile and provide an email. That’s where the test email will be sent to (see step 7) /admincentral#app:security:systemUsers;/:treeview:
Back in your Gmail account: settings: allow IMAP
Back in Magnolia, go to the mail app: /admincentral#app:mail:main;
Add your SMTP settings (auth via SSL worked for me) as described here
Always in Magnolia, try to send a test email: /admincentral#app:mail:verify;
Back in your Gmail account: receive that warning email from Google (see screenshot) & follow the link in that email to allow "less safe apps"
Back in Magnolia, try to send a test email again /admincentral#app:mail:verify;
Voila :)
Note: the /admincentral* are the url path to jump directly to the relevant section of admin central, this is only informative & hopefully will help you save time.
Resources
Magnolia CMS mail module: documentation.magnolia-cms.com/display/DOCS/Mail
support.google.com/mail/answer/7126229?visit_id=1-636117997050481062-4194544010&rd=2
support.google.com/a/answer/176600?hl=en
Related
I have a keycloak (4.4.0-Final) installation.
Scenario:
sendgrid is configured as mail agent (and test mail sending is ok)
I create a new user in keycloak admin console and I pass it the action "verify email"
I get an email with a link to verify my email address, but when I click the link, I get the error "We're sorry...
An error occurred, please login again through your application."
I now have a closer look at the URL and I see 2 times = => http://keycloakurl/.....login-actions/action-token?key=eyJhbGciOiJIUzUx...&client_id=client-...
When I change = to = , the url works.
Does someone know if this is a bug in sendgrid, or a bug in the keycloak templates?
I know you have moved ahead with Mailjet but I would like to share my solution here as it may help others. I noticed this issue only happens if Email Tracking is enabled at SendGrid side. Try after disabling all tracking configurations under Setting -> Tracking screen.
The issue was not keycloak, but sendgrid (ref: https://issues.jboss.org/browse/KEYCLOAK-8536). We fixed the issue by dropping sendgrid and going to mailjet.
i have a open cart website on my go-daddy hosting, my C-panel email in go-daddy is having some issue and the go-daddy is working on it. till then i want to use the email of my BIG ROCK hosting.
i want to know the SMTP settings of Big Rock and the MX entry
When ever you login in to the CPANEL , you will get this notice on the top.
Attention! Please register your email IDs used in non-smtp mails through cpanel plugin. Unregistered email IDs will not be allowed in non-smtp emails sent through scripts.
Go to Mail section and find "Registered Mail IDs" plugin in paper_lantern theme.
Just follow these steps and it will work.
I am using SendGrid as the email provider in my application. When I place a link in the email it gets re-encoded to a link on the SendGrid servers. Can I trust this link with my password resets? I know that I am already trusting SendGrid with my links by sending through their servers but what is the purpose of rewriting the urls. To use the link you need to also know the email address and it is only valid for 20 minutes.
The link in my email looks like
http://myserver/resetpassword/oLsjShCLh7tFpyl8cEzbghHpS59iazhD
and it gets encoded in the email as
https://u5478763.ct.sendgrid.net/wf/click?upn=hvVg2ntCa8InWO5OtVSRJPdvIiofcS3RGII270TrJ9aOSJX2MZ9RkcgQLgnRLLNMjjo5mMQVejYxIGVPoz-2BfxtM55lXWiXwtNWvE42LzFPE-3D_Q0Y0L54uOhrrHtFzGFlMm55yZkDAUn39DjKFOTu4BtReZW14K4ruKT7IkXyh4pWHctN-2FYlmmFj2J7a6-2BHy0UN0PZDTzqKnADTi10YJeXfirMSGqGLkjKxZZY1iGRjCkgddBCiyIBiLfBs3VS4GmrB5SPa7uCb9KYcZdqm5AvebY6pyGitqdcpmDSVV6zHjR1oK3NZQboFfjng-2Fqv6PQHekU7irw1BWOtP5ja3RxfUKE-3D
This is because you have Click Tracking enabled in your account. Log into your SendGrid dashboard, and from the navbar on the left side click on Settings -> Tracking and disable Click Tracking.
I have set up a magento store of my own for my business of grocery products.
I have almost configured each and everything.
I have a mail server and can have as many email addresses as I require.
I have a theme set up for the store.
While a user tries to log in and has forgot a password, there is a link to click saying "Forgot Password".
On clicking it, it displays "An email has been sent to your account with new password details."
I know this will not send an email as I have to configure entire system.
I do not want to send a new password by email. Instead I want to send a link. On clicking this link, the user can go the it and have an option of password reset.
Please help me with this. It will be much much appreciated.
Magento's standard "Forgot Password" functionality works exactly as you've described - it sends a link to the user to reset his or her password - it doesn't just send a new password.
Magento uses Zend_Mail to send emails. By default, Zend_Mail will use PHP's mail() function (via Zend_Mail_Transport_Sendmail), which will usually send emails via sendmail or similar, depending on the PHP configuration.
If you have your own mail server that you'd prefer to use, you can configure Magento to use SMTP. This does require some code, but, luckily, there are some good extensions out there that already do this, like aschroder/Magento-SMTP-Pro-Email-Extension.
I am having some hard time getting my PHP script to send emails with a SMTP Gmail account. I am using PHP and Symfony2 SwiftMailer, but it seems that the problem lies with my Gmail account configuration. In my logs, I end up with the following error message:
"ERROR - Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "new.user.name#gmail.com" using 1 possible authenticators"
Luckily, I had another Gmail account working with another application, seemlessly. Rescuing these parameters (user and password) on my new box, eveything works just fine.
in parameters.yml I have (working fine):
parameters:
mailer_transport: gmail
mailer_host: ~
mailer_user: old.user.account#gmail.com
mailer_password: old-password
And here is the version giving auth error message:
parameters:
mailer_transport: gmail
mailer_host: ~
mailer_user: new.user.account#gmail.com
mailer_password: new-password
Needless to say I have checked, rechecked and checked yet again user and password.
I reviewed my Gmail account settings under "Forwarding and POP/IMAP" in my new account: I could find nothing about SMTP.
Searches made me aware some captcha policy may interfere with SMTP accounts. I read here that I should try to enter a captcha phrase, which I do here, and get the nice message:"Account access enabled", "Please try signing in to your Google account again from your new device or application."
Trying again. No luck.
All this is happening from my local dev environment (both OK mails, and NOT OK mails).
How I could get to use SMTP with a newly created Gmail Account ? Any idea ?
Actually, double-checking my inbox, I saw I received a mail from Google explaining someone was trying to enter my account. There, I found a link to the configuration parameter I was looking for:
https://www.google.com/settings/security/lesssecureapps
==> I just had to check: "Make my account less secure.", and was able to get mails sent.
In the mean time, I have found that Gmail SMTP service is getting pretty unrelyable and introduces captcha every now and again (here). I seems there is not much you can do about it. On the other hand, I read stronger passwords seem to help in some cases (here).
I must also say that with a newly created account, I was not able to get this working. Even unchecking the "make my account overly secure" option. It really looks like Gmail is phasing out its SMTP service.
UPDATE
I wanted to mention that there are some excellent and free (or very, very cheap for high volumes) alternatives for sending emails. For example, you could check Mandrill, SendGrid or Amazon SES, among others.
Using the link https://www.google.com/settings/security/lesssecureapps gave me the message: this setting is disabled by your administrator.
I had to go to admin.google.com and login with the same account details and look for the same setting there. Full url was https://admin.google.com/AdminHome#ServiceSettings/notab=1&service=securitysetting&subtab=lesssecureappsaccess
Then the first link worked, so also there I enabled less secure apps. Now I was able to use Gmails SMTP.
Maybe this helps someone: I had the same encounter with gmail, but in my case, when I logged into the gmail account that I configured in my code as SMTP mail sender user, I was greeted by a warning message saying that somebody tried to use my user and pass and that attempt was blocked (hence my error message). It asked me to confirm if that was me or not, so after I clicked the 'That was me' button and tried my code again all worked fine.
Making my account less secure helped me https://myaccount.google.com/lesssecureapps