Giter Site home page Giter Site logo

Comments (5)

ninthwalker avatar ninthwalker commented on May 23, 2024

It should do special password characters fine.
You said 'your mail server'. Do you mean you run your own? If so, this may or may not work for you.
First it needs to go through an ssl/tls port.
Second, since gmail is most popular we use the AUTH type of 'plain'. Your mail server may use a different type such as Login or something.

So you may have to use a different mail provider for this.

from nowshowing.

Ti133700N avatar Ti133700N commented on May 23, 2024

Thanks for the quick reply. I use my own mail server indeed (that I configured from scratch). I'm using STARTTLS on port 588 and Plain Auth.

from nowshowing.

Ti133700N avatar Ti133700N commented on May 23, 2024

Now I'm getting this error when doing docker exec nowshowing combinedreport

/var/lib/nowshowing/mailReport.rb:60:in `sendMail': undefined method `each' for nil:NilClass (NoMethodError)
	from /usr/local/sbin/combinedreport:386:in `main'
	from /usr/local/sbin/combinedreport:394:in `<main>'

from nowshowing.

ninthwalker avatar ninthwalker commented on May 23, 2024

EDIT: If you run it in test mode do you still get that same error, or an auth login error on your server again? docker exec nowshowing emailreport -t

It's still not working and giving errors because of your mail server setup most likely. The code used just may not be compatible with your server.

Here is the block of code for sending the email. Like mentioned earlier, this was set for gmail primarily. You could try editing this file manually in the docker with vi and fooling around with it. It's located at "/var/lib/nowshowing/mailReport.rb"

def sendMail(body)  
        options = { :address              => $config['mail']['address'],  
                    :port                 => $port,  
                    :domain               => 'otherdomain.com',  
                    :user_name            => $config['mail']['username'],  
                    :password             => $config['mail']['password'],  
                    :authentication       => 'plain',  
                    :enable_starttls_auto => true  }  
            Mail.defaults do  
            delivery_method :smtp, options  
end  

from nowshowing.

ninthwalker avatar ninthwalker commented on May 23, 2024

Closing

from nowshowing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.