|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2022
Device: kindle
|
when running this python script
sp.Popen(["cal/calibre-smtp.exe", "-a dummy.epub", "jonas.charrier1@gmail.com karine.charrier@kindle.com \"mailBody\""]).communicate() i get this error You must specify the from address, to address and body text on the command line even after reading the doc :https://manual.calibre-ebook.com/gen...ibre-smtp.html i dont really understand how i must use it. Any help would be aprecciated. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to understand how to use Popen to pass arguments. This is well documented in the python std library.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2022
Device: kindle
|
I think i found the problem, a fourth argument seems to be needed (after from to and the body)
but i dont know why (i left it blank) |
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2022
Device: kindle
|
did the default relay "http://retail-smtp-in.amazon.com/" use to work ?
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no default relay. And you really should take the time to understand how to use subprocess.Popen
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| smtp error | mark_e_h | Calibre | 2 | 07-02-2021 11:55 PM |
| ebook-convert.exe doesn't work with deDRM plugin, unlike GUI or calibredb.exe | fireattack | Conversion | 8 | 09-26-2020 08:14 PM |
| fetch-ebook-metadata.exe python error | dzog | Calibre | 2 | 11-04-2016 06:26 AM |
| (Suggestion) Move ebook-viewer.exe to the main directory next to calibre-portable.exe | avid01 | Library Management | 6 | 07-03-2014 04:55 AM |
| A problem: call calibre-smtp.exe by CreateProcess in C++ | woodx99 | Development | 5 | 04-25-2012 05:37 AM |