Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2022, 08:27 AM   #1
schlaft
Junior Member
schlaft began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2022
Device: kindle
Post calibre-smtp.exe unclear error

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.
schlaft is offline   Reply With Quote
Old 10-26-2022, 09:46 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,778
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 10-26-2022, 10:17 AM   #3
schlaft
Junior Member
schlaft began at the beginning.
 
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)
schlaft is offline   Reply With Quote
Old 10-26-2022, 10:26 AM   #4
schlaft
Junior Member
schlaft began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2022
Device: kindle
did the default relay "http://retail-smtp-in.amazon.com/" use to work ?
schlaft is offline   Reply With Quote
Old 10-26-2022, 11:27 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,778
Karma: 22666666
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
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
smtp error mark_e_h Calibre 2 07-02-2021 10:55 PM
ebook-convert.exe doesn't work with deDRM plugin, unlike GUI or calibredb.exe fireattack Conversion 8 09-26-2020 07:14 PM
fetch-ebook-metadata.exe python error dzog Calibre 2 11-04-2016 05:26 AM
(Suggestion) Move ebook-viewer.exe to the main directory next to calibre-portable.exe avid01 Library Management 6 07-03-2014 03:55 AM
A problem: call calibre-smtp.exe by CreateProcess in C++ woodx99 Development 5 04-25-2012 04:37 AM


All times are GMT -4. The time now is 07:51 AM.


MobileRead.com is a privately owned, operated and funded community.