Page 1 of 1

Send email doesn't work

Posted: 24 Aug 2013, 20:04
by Hire
Hi,

I don't know if this is the right section but in that case move this topic :D

However, I have a problem with --def mailto ( --def gmail works instead ). I want filebot send an email to a local email ( ie [email protected] ) but doesn't work. I cannot say how because any traceout about that. How can I get any log about that? How can I resolve this?

Thank you :D

Re: Send email doesn't work

Posted: 25 Aug 2013, 02:44
by rednoah
Can't work because the mail gets sent via GMail SMTP. Now GMail mail server will of course immediately scrap any mails sent to @localhost.

You'd have to modify the script to send mails to localhost.

Re: Send email doesn't work

Posted: 25 Aug 2013, 10:40
by Hire
And how? I don't know :D

Thank you

Re: Send email doesn't work

Posted: 31 Aug 2013, 07:05
by rednoah
Learn a bit of Groovy. Save the script as local file and then make your edits. Then call filebot -script /path/to/script.groovy

Read this:
http://prolificworks.blogspot.tw/2012/0 ... ilder.html

Though I already predefine helpers for this:
http://filebot.net/scripts/lib/ant.groovy

e.g.

Code: Select all

sendmail(mailhost:'smtp.gmail.com', mailport:'587', ssl:'no', enableStartTLS:'yes', user:'[email protected]', password:'correcthorsebatterystaple', from:'[email protected]', to:'[email protected]', subject:'Hello Ant World', message:'Dear Ant, ...')