Sendy (hosted with Hostinger) email campaigns time-out constantly - sendy

Even with the CRON job setup (below) my Sendy email campaigns time out after around 1,400 sends (about 10% of the list).
/usr/bin/php /home/u202277730/domains/blastoff.us/public_html/sendy/scheduled.php
Hostinger customer-service have been dancing around the issue, and swear that they are not throttling the outbound SMTP send. Can anyone help?
Rowan

Definitely use SES to send out emails, that way mail merging with the api will be far faster and more powerful, and you don't have to put up with mail deliverability issues.
An AWS lightsale node starts at 3.50/mo but also allows you to use the SES free tier, (62k emails a month, about $6.20 worth).
Hope this helps and also saves you a few dollars here and there.
Matt

Related

Gmail not receiving my mails anymore after accidental massive send (10k+)

I messed up something on my code and made my server send 10k+ emails to my own email address last night.
After receiving ~8k this morning, I barely haven't received any mail in the last 8 hours besides sometimes one of the automated ones at a rate of ~10/hour.
Has anyone already experienced this?
I haven't found how to tell gmail about this. Nowhere I have a message saying "your mailbox is slowed down because of abusing use" or something.
Can anyone help or should I wait and go on vacation for a few days?
Edit:
Thanks for the help. To add more details:
Those emails have been sent from a non-gmail SMTP server, say example.com to me#example.com, which I automatically redirect to myaddress#gmail.com.
I thought at first that the problem was coming from the example.com mail server, but it happens this parts works very well for sending and receiving for any other email#example.com.
My emails sent from myaddress#gmail.com are also sent. It is only to receive a mail in myaddress#gmail.com inbox that it won't work.
This makes me guess that this is not a SPAM-filtering issue, since sending works fine.
Edit2:
#bearacuda13, there ain't much code to show. The sequence of failures are:
A delayed_job that calls itself recursively every hour, silently increasing the number of jobs in the database, without any error
A heroku API sunset that starts to make them fail all at once.
An exception mailer to tell me about the exception raised
Done :)
Try https://mxtoolbox.com/blacklists.aspx to see if you've been added to a blacklist. If you have, it's a serious pain to get off of those lists.
When you send mail, it gets routed through several areas on the internet before winding up in your gmail. Any of those routes has the possibility to flag and blacklist emails from someone they think is a spammer. If you're sending 10k emails in an hour, you've probably triggered the "spammer" criteria.
To get off the lists, you need to contact the organization that has blacklisted you. It might be easier to get a new static IP or domain name.
So the solution has been to wait. In 24 hours I still had not received them all, but at got some message:
which made me feel like messages were on their way.
48 hours later, I now have the feeling I caught up with all my emails.
If this occurs to you, be patient!

How can I send notification emails from prase to my users

I want to send notification email from parse to my users but I have spent too much time in it. Alas! I can't find path. Please anybody guide me how can I do it.
Sending notification emails is not a service that is offered by Parse. And given that in about 7 months, no services will be offered by Parse at all, this is a good time to start shifting to a different backend solution.

MX and A Records with Google Apps

So I have this weird problem at my company with our email system.
(And I'll preface this by saying that I'm a web/graphic designer forced into an IT role as well, so forgive my noobish-ness please)
I just switched our company over to Google Apps for Business to take advantage of all of Google's apps and features.
The MX records for all six of our domains have been switched over to Google for days now, and it seems to be working very well except for a couple of things...
Those users in the organization who haven't switched their Outlook/Thunderbird/Mail App to Google's settings are still sending and receiving mail through the old system, which is hosted by MyHosting.com, even though the MX records clearly show that mail should be going to Google's servers.
Our website contact forms are still sending through the old system as well and NOT Google. For instance, woodshedsmokehouse.com contact form sends an email to info#woodshedsmokehouse.com on the old system, instead of sending it to info#woodshedsmokehouse.com at our Google Apps account (which is a 'nickname' of info#cheftimlove.com).
Now, here's where I think there might be some confusion... maybe, again I'm a noob.
All six of our domains have A Records of SMTP and MAIL that still point to MyHosting.com's mail servers.
Is this the issue? If so, how can I fix it? Google Apps support has not said a word about altering A Records
Any insight and help is more than greatly appreciated. Thank you!
I can understand why it's sending through the old domain, but I can't understand the receiving part. Are the emails they are receiving through the old domain a "Reply To Email" Or "New Emails".
I know A records are used as backup MX Records. And MX record are not needed at all, if your hosting the mail server off the A record location.
I'm curious, if you found a solution and an explanation. I checked your MX Records and they seem fine of the 2 domains you listed. I also use MyHosting, but I host my own email servers.
If you can post the headers of the email on the ones they receive and send, that would be helpful.

Maximum sending rate and daily quota for Gmail+Google Apps Script?

I wrote a small Google Apps Script to send out personalized e-mails (conference invitations) individually to recipients (i.e. one recipient per e-mail). As a workaround to the issue of e-mails sent using GmailApp.sendEmail not showing up in the Sent Mail folder, I have one script send the e-mails to itself (i.e. the sender and recipient are the same), then another script to forward those to the appropriate recipients. There are only about 100 (maybe less) verified recipients, but I'm concerned that sending out the e-mails as fast as the script executes might get them flagged as spam due to the rate at which they are being sent. My questions are the following:
If a Google Apps Script accesses a Gmail account to send and forward e-mails using GmailApp, does it incur a sending rate limit (e.g. in e-mails/second, kB/second, etc.)?
Which quota applies to said script? Is it Gmail's 500/day or Google Apps' 100/day?
P.S. I found this discussion about quotas, but I'm not sure if my case falls under either of the scenarios described therein.
There are no such limits. There is a limit on the body size per email - 20KB
It's 500 emails/day for Gmail users and free Google Apps users. Please note though that CCing and BCCing are all counted against your quota. So if you send one email and CC it to 500 hundred people you would have used up all your quota for that day. Also, there are additional quotas when sending emails within a domain.
Also, the method MailApp.getRemainingDailyQuota() will tell you how many more emails you can send that day.
All the quotas are described here:
https://developers.google.com/apps-script/guides/services/quotas
How are e-mails sent using GmailApp.sendEmail not showing up in the Sent Mail folder?

Best Way To Receive Email Website

I am developing a website -- in the prototype stage, soon to be alpha. I will provide an email address to each account that allows the user to deposit stuff -- not a real email account, just an endpoint for sending things to the site. Many sites provide this kind of service nowadays. I think the first one I saw was Photobucket, which let's you send photos as email attachments.
My question is, what is the best way to implement this kind of service?
In my prototype, I have written a POP3 client which fetches all newly delivered mail (currently from a test Gmail account). My service processes each new mail and attachments, and immediately removes it from the email server.
I could certainly outsource to an email service with POP3 and be done with it. The problem is cost. Most services I have seen provide much more than I need, and they charge per account. I expect to have many accounts and low traffic volume.
So I'm leaning towards hosting email receipt myself. I am open to Windows or Linux. The code that processes incoming emails runs on Windows, but I have other services running on Linux. I have seen a number of open source and free email servers, such as hMailServer and MailEnable (Windows) and qmail, Postfix and exim (Linux).
I guess I have a slight preference towards Linux because of lower hosting costs, but if a Windows service can provide cleaner integration, that might be worth it. As far as features, I would like to have some spam filtering, but it's is not a huge priority. POP3 is adequate for retrieval, but a more direct API would be nice. I will need some kind of API for programmatically provisioning new accounts.
All suggestions are appreciated. Do you know how others implement this kind of service?
UPDATE: I ended up using hMailServer, which is a free mail server that runs on Windows. It seems to be quite mature and robust. It has a COM interop library which makes accessing emails, accounts, etc. from my .NET server app very easy indeed.
If you're going the host-your-own-email-server route, I would probably just use POSTFIX and pipe all your email to a PHP script, which processes the email.
Here's a quick'n dirty tutorial on setting up the email pipe if you're using cPanel:
http://kb.siteground.com/article/How_to_pipe_an_email_to_a_PHP_script.html
If not, here's how to do it:
http://answers.google.com/answers/threadview?id=562518
The bottom line is, you need to have an open SMTP connection to accept email. If you have your own server, then you can install a SMTP server on the machine. Usually, you have filesystem access to the location the email files are placed. Be sure to select a SMTP server that allows this, and that the email are in a format that you can parse.
Then, you can just monitor the file location for incoming emails.
If you can't pipe your emails (using the Postfix suggestion), and you don't have your own server (for example, on a shared hosting plan), then you will need to query a POP3 or IMAP mailbox server for your emails, and parse them accordingly.
I wanted to get emails in real time so I worked out my own solution with google app engine. I basically made a small dedicated google app engine app to receive and POST emails to my main site. That way I could avoid having to set up an email server.
You can check out Emailization (a little weekend project I did to do it for you), or you this small GAE app that should do the trick.
I kinda explained it more on another question.
Hope that helps!

Resources