cakephp emailers duplicating email component issue - cakephp-1.2

I am using cakephp 1.2.8 To schedule newsletters we are using email component and set the URL in cron job.
The issue we facing is, its sending emails multiple times. We have checked in logs and cron. No issue in cron as well as code. How to identify the issue ? Is there issue in cake 1.2 ??

You may use a separate table to store pending emails. Check the table each time before sending emails. Once the email has been sent, delete the emails from the table. It may resolve your issue.

Related

How to check Outlook folder has mail or not

What Azure service allows us to run at a fixed interval (IE every 5 min), and if a given Outlook/mailbox folder has one or more emails in it, then send one notification email?
We have a Logic App that does email processing. If the processing fails for whatever reason, the email is placed into a "Failed" folder, and an email notification is sent out. The issue is when a dependent service is down, we are getting hundreds of email an hour.
We tried creating a second Logic App that runs every 5 min, sending email if it found email in the folder that is "flagged", but we still received one email per flagged email.
We are thinking a separate service that runs every so often, and if a folder has email in it, then send out a single email.
Actually there is a Outlook trigger action to detect if there is an email is flagged. It supports to change the Folder,Importance,Interval and add other parameters to match.
And this is the action Optional Parameters description.

Google Data Studio Scheduled Email doesn't work for Additional Recipients

As described at https://support.google.com/datastudio/answer/9263641, there is now the Scheduled Email feature for Google Data Studio Reports.
We tried to set up a scheduled email in my organization and we noticed that the emails do not work for anyone except the person who set up the schedule. All emails have been verified to be correct and all users receiving the email have access to the underlying data source(s) (not sure if that matters though).
What do we need to do to get the scheduled email working for additional recipients? Even if it was only 1 other email, we could set up an email group and handle getting it to everyone that needs it.
This isn't actually an issue, after further investigation these emails were being caught by my company's spam filter. Once I whitelisted data-studio-noreply#google.com, I was able to receive the messages.

Slow delivery with Gmail API

We are using the Gmail API to send emails to our users at the time of registration. Everything has been working fine, but lately (since about a month) some emails are taking some minutes to arrive.
There is no error or log, it is just slow. Pasting the headers of an email into https://toolbox.googleapps.com/apps/messageheader/analyzeheader we can see that the email is delayed some minutes on a server from Google
The Google Developers Portal links to this tag in stackoverflow for support, but we couldn't find more information about it.
How can we know why is this happening? and how can we prevent it?
Any help would be greatly appreciated
Thanks
-- UPDATE
We tested using SMTP with JavaMail directly to send the emails and the delivery times are back to normal

Check email id real or fake in AngularJS project

I have a web project in AngularJS and using NOdeJS and ExpressJS on Backend.
I have a contact form in my application when I click on submit form data is sent as an email. This I have achieved using npm package called nodemailer.
But, now I wanted to check if that email id exists in real world (fake or real) before sending an email. So what is the best way to achieve this?
Can any one help me with this?
Thank you
There are some open source api like http://api.mailtest.in/v1/XXX
Where XXX is the domain from email. Which means if XXX exists as domain you can assume that mailbox might exist. Try using curl / parser to fetch the response via api call if its true means domain exists and email might exist as well.
Theoratically its possible by actually sending email and verifying the response itself. Check this https://github.com/hbattat/verifyEmail
But still there are certain conditions, many times the responses are not being sent by Mail Exchange servers for security reasons. Also your email can be blacklisted by doing this.
The real world scenario might be simple with user interaction, send email and ask them to verify their mail using the secret shared in email.

Pulling facebook and twitter status updates into a SQL database via Coldfusion Page

I'd like to set up a coldfusion page that will pull the status updates from my own facebook account and twitter accounts and put them in a SQL database along with their timestamps. Whenever I run this page it should only grab information after the most recent time stamp it already has within the database.
I'm hoping this won't be too bad because all I'm interested in is just status updates and their time stamps. Eventually I'd like to pull other things like images and such, but for a first test just status updates is fine. Does anyone have sample code and/or pointers that could assist me in this endeavor?
I'd like it if any information relates to the current version of the apis (twitter with oAuth and facebook open graph) if they are necessary. Some solutions I've seen involve the creation of a twitter application and facebook application to interact with the APIs; is that necessary if all I want to do is access a subset of my own account information? Thanks in advance!
I would read the max(insertDate) from the database and if the API allows you, only request updates since that date. Then insert those updates. The next time you run you'll just need to get the max() of the last bunch of updates before calling for the next bunch.
You could run it every 5 minutes using a ColdFusion scheduled task.
How you communicate with the API is usually using <cfhttp />. One thing I always do is log every request and response, either in a text file, or in a database. That's can be invaluable when troubleshooting.
Hope that helps.
Use the cffeed tag to pull RSS feeds from Twitter and Facebook. Retain the date of the last feed scan somewhere (application variable or database) and loop over the feed entries. Any entry older than last scan is ignored, everything else gets committed. Make sure to wrap cffeed in a try/catch, as it will throw errors if the service is down (ahem, twitter) As mentioned in other answers, set it up as a scheduled task.
<cffeed action="read" properties="feedMetadata" query="feedQuery"
source="http://search.twitter.com/search.atom?q=+from:mytwitteraccount" />
Different approach than what you're suggesting, but it worked for us. We had two live events, where we asked people to post to a bespoke Facebook fan page, or to Twitter with a hashtag we endorsed for the event in realtime. Then we just fetched and parsed the RSS feeds of the FB page, and the Twitter search results, extracting what was new, on a short interval... I think it was approximately every three minutes. CFFEED was a little error-prone and wonky, just doing a CFHTTP get of the RSS feeds, and then processing the CFHTTP.filecontent struct item as XML worked fine
.LAG

Resources