Send email doesn't work

All your suggestions, requests and ideas for future development
Post Reply
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Send email doesn't work

Post 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
User avatar
rednoah
The Source
Posts: 19141
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Send email doesn't work

Post 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.
:idea: Please read the FAQ and How to Request Help.
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Re: Send email doesn't work

Post by Hire »

And how? I don't know :D

Thank you
User avatar
rednoah
The Source
Posts: 19141
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Send email doesn't work

Post 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, ...')
:idea: Please read the FAQ and How to Request Help.
Post Reply