View Single Post
Old 04-21-2012, 11:08 PM   #1
woodx99
Junior Member
woodx99 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2012
Device: kindle touch
A problem: call calibre-smtp.exe by CreateProcess in C++

Hello, everyone ,
I am a newer to calibre. Recently I want to send a email by call calibre-smtp.exe using CreateProcess() function in C++. The result is the CreateProcess() function return success, but maybe calibre-smtp.exe does not work, And nothing happend. so I donot call CreateProcess(), and changed to system() function, I doesnot work too.
But I run the calibre-smtp.exe and its param in cmd line (OS: windows7 64bit), it worked fine and email can be send successfully. The cmd line is:
"C:\Program Files (x86)\Calibre2\calibre-smtp.exe" -e SSL -r smtp.qq.com -u myuserid -p mypassword --port 465 -v -s "Email_title" xx@qq.com yy@foxmail.com "mailBody"

what is the matter? Do anyone know it?

woodx99 is offline   Reply With Quote