Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Sending an email with attachment without using SMTP?
#1
Hello,

I am making an application that generates PDF reports. But my application is on the Raspberry Pi, so the clients need an option that will allow them to send these reports via emails.

I can use smtplib but the problem is that my hosting provider restricts emails to 25 emails per 5 minutes.

If my application is being used by a lot of people to generate reports (which will most likely be the case) I will run out of that max limit.


How can I bypass this?
Quote
#2
Bump?
Quote
#3
What have you tried? And why did you write bump? (just asking)
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Quote
#4
Perhaps you need to consider some mail sending service, which you may have to pay for if the amount you want to send is quite high. Gmail has an HTTP API, but I don't know what their limits are like. Other services providing HTTP APIs include SendGrid and Mailgun.
Quote
#5
ndc85430 I think gave the most important details, but I wanted to say little bit more...

You can send emails with Python without using that limiting service. That said, in my experience at work, you can probably get away with running your own server if you're tolerant to potentially be flagged as spam, and re-training the mailboxes by manually marking them as non-spam (the people receiving your emails need to do this). Otherwise, yeah, you'll want a reputable service like one already mentioned on this thread.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
Quote
#6
(May-03-2020, 07:35 PM)ndc85430 Wrote: Perhaps you need to consider some mail sending service, which you may have to pay for if the amount you want to send is quite high. Gmail has an HTTP API, but I don't know what their limits are like. Other services providing HTTP APIs include SendGrid and Mailgun.

(May-04-2020, 11:33 PM)micseydel Wrote: ndc85430 I think gave the most important details, but I wanted to say little bit more...

You can send emails with Python without using that limiting service. That said, in my experience at work, you can probably get away with running your own server if you're tolerant to potentially be flagged as spam, and re-training the mailboxes by manually marking them as non-spam (the people receiving your emails need to do this). Otherwise, yeah, you'll want a reputable service like one already mentioned on this thread.


Thank you guys, this was exactly what I was looking for.
I don't want to risk get my office emails blocked.

So I will use some other service like the ones ndc85430 mentioned.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Including a Variable In the HTML Tags When Sending An Email JoeDainton123 0 71 Yesterday, 03:11 AM
Last Post: JoeDainton123
  ATT00001 instead of PDF attachment to an email dominiklucas 0 107 Jul-25-2020, 04:05 PM
Last Post: dominiklucas
  TimeOutError when trying to initiate smtplib.SMTP thecosmos 0 244 Jun-19-2020, 05:30 AM
Last Post: thecosmos
  SMTP problem MajK 6 300 May-09-2020, 07:47 AM
Last Post: MajK
  download base64 email attachment cferguson 3 450 Feb-25-2020, 06:50 PM
Last Post: cferguson
  Help Needed | Read Outlook email Recursively & download attachment Vinci141 0 430 Feb-21-2020, 04:45 AM
Last Post: Vinci141
  Issue with text encoding ans smtplib.SMTP.sendmail() JustSomeUsername383 1 797 Jul-23-2019, 03:15 PM
Last Post: JustSomeUsername383
  sending html file in email santoshi 3 1,084 Apr-05-2019, 03:59 PM
Last Post: nilamo
  Add png to the body of the email, not the attachment Ivan87 8 1,082 Dec-14-2018, 11:05 AM
Last Post: wavic
  python 'SMTP debugging server' not starting local error pcsailor 1 719 Nov-26-2018, 10:13 PM
Last Post: micseydel

Forum Jump:


Users browsing this thread: 1 Guest(s)