Heroku's mailgun account says temporarily disabled. " Business verification is required". How do you do the verification so as start sending mails through heroku app.
You can find this information here
(first result for Google search "business verification mailgun")
Related
I need help in understanding the exact path I should follow to solve my problem.
I hava a gmail address(I can say this gmail is used by my java application) Whenever a mail comes to this gmail address. I want my application to know and get the email from my gmail inbox and proceed with the further logic.
So far Going through the google docs I have created a topic and a subscribe which has subscribed to that topic. Using push mechanism I'm also able to call my endpoint whenever a message get published manually from google console to that topic.
Now I want if any email comes to my gmail address, it should notify my endpoint and after I can just fetch the email from the gmail and proceed with the logic.
Here As I have only mine gmail address which I will be accessing I don't think I need to go for Oauth2 mechanism for gmail authentication purpose.
I went through the documentation which says. I should create a watch request, then maybe if any gmail inbox receives a mail it will notify my endpoint and then I can fetch the mail and proceed further. But I'm not sure what and how exactly I should proceed Do I need a service account if yes I have already created a service account and downloaded my private key.
GoogleCredential.fromStream(new FileInputStream("file.json"))
.createScoped(Collections.singleton(GmailScopes.MAIL_GOOGLE_COM)).createDelegated("xxxxx.iam.gserviceaccount.com");
then I'm calling watch request as :
Gmail gm = new Gmail.Builder(GoogleNetHttpTransport.newTrustedTransport(), JSON_FACTORY, googleCredBuilder()).build();
WatchResponse res = gm.users().watch("me", request).execute();
I got this error.
POST https://www.googleapis.com/gmail/v1/users/me/watch
{
"code": 400,
"errors": [
{
"domain": "global",
"message": "Precondition check failed.",
"reason": "failedPrecondition"
}
],
"message": "Precondition check failed.",
"status": "FAILED_PRECONDITION"
}
Can someone please help how exactly I should proceed to achieve my goal.
Thank you.
"Precondition check failed.",
Means that you are trying to use a service account with a standard google gmail address.
Service account authorization only works with gmail api and google workspace accounts once domain wide delegation has been configured.
You have two options
swtich to using a google workspace domain account.
Use Oauth2, set your application to production and not test so that the refresh token wont expire. Authorize your application once store the refresh token, then upload it to the server. It will be able to use the refresh token to request a new access token whenever it needs.
i get an addon sendgrid for my app of heroku, but when i want go to my account of sendgrid,i need send email for the confirmation and heroku choose automatically an Heroku email example: appXXSADAS0878#heroku.com, i confirm this email, the same way how say the tutorial but i not have access to this, then my sendgrid account never is authenticated and after of 10 minutes waiting the confirmation the account is banned.anyone can help me with this?, i am deploying a rails app.
this tutorial that i follow for the add on sendgrid
https://devcenter.heroku.com/articles/sendgrid
I do not know why would Heroku tell SendGrid to send the confirmation email to a #heroku.com email address.
However, consider using SendGrid without the Heroku add-on (you do not need SendGrid's add-on installed on Heroku, to send emails from your application).
I used mailtrap to run email verification locally, and everything seemed working fine. Once I pushed it to heroku, mailtrap stopped working to send the emails. I've tried a bunch of things including the sendgrid addon, but my account was suspended as I logged in to sendgrid.
Someone is supposed to register, and then get an email to verify their email...It is for a voting platform and I need maximum security.
To send emails in production in your Laravel application you need to use one of the supported drivers listed in the documentation:
"smtp", "sendmail", "mailgun", "mandrill", "ses", "sparkpost", "log", "array"
Mailtrap cannot work in a production environment as users won't receive emails to their inbox. If you need to use sendgrid, they have a detailed tutorial on how to do so using the SMTP driver here
I'm not sure why your account was disabled, but just create a new one, don't use the Heroku sendgrid addon.
Mailtrap tag line is Safe Email Testing for Staging and Development so if you are using it in production you may are doing it wrong way.As per your description it is clear why sendgrid has suspended your account but i would recommend you to use postmark or mailgun.
Heroku provide add-ons called "Mailgun Email Validation" try use it.
We've been using Mandrill for years to deploy our app's signup confirmation and password reset emails. This has worked perfectly as we've had SPF and DKIM records added to the DNS configuration according to Mandrill's documentation for verifying sending domains.
However, after merging the Mandrill account with a new Mailchimp account--which is mandated by April 27th--it's requiring me to send a verification email to an address at that domain. The problem is that we don't have a mail server set up to receive emails. The domain is only used to send the "noreply#domain.com" emails.
Any ideas on how I might resolve this? Mailchimp is not giving an option to undo the merge, so effectively I have an app that users are not able to sign up for at the moment, which is problematic to say the least.
You'll want to configure at least one mailbox on that domain somehow to receive mail. That's the only way to confirm ownership of the domain.
I am new with the "outlook" api. i want to get all calender event,contact and mail from "outlook account".
but i does not get appropriate result with "outlook" account its working fine with "office365" account
i follow this documentation for get all required data
and i create application for getting data from here
but every time when i login with my outlook account it's give me an error like this.
Please help me out.
Thanks in advance...
Just ran into the same problem and found an explanation here. It appears we're going to have to wait for the accounts to be enabled unless you request a testing account as described in the link. Confirmed the same results when using the non-enabled account in the Outlook Oauth Sandbox.
From the first link
Because enabling mailboxes on Outlook.com for the Outlook REST API happens over a period of time, your existing Outlook.com account may take a while to get enabled. To test your app accessing data on Outlook.com mailboxes that have already been enabled, you can request a new, enabled Outlook.com developer preview account by emailing outlookdev#microsoft.com.
If your app accesses Outlook.com mailbox data, it should handle scenarios where the user's mailbox has not yet been enabled for the Outlook REST API. In such situations, when you make a REST request, you would get an error like the following:
HTTP error: 404
Error code: MailboxNotEnabledForRESTAPI or MailboxNotSupportedForRESTAPI
Error message: “REST API is not yet supported for this mailbox.
Step 1 :
Click the Below Link :
https://oauthplay.azurewebsites.net/?code=M657b8bab-e543-f849-134c-0a2f85179a67&state=17661047-2a14-4c90-9edd-0119f841b559
Step 2:
Step 3 :
Step 4 :
Step 5 :