emoncms / event_archived

Setup actions to occur when a feed goes above, below or is equal a set value. Set another feed or send an email
8 stars 25 forks source link

Email Event hard coded for SSL #23

Closed Bra1nK closed 4 years ago

Bra1nK commented 10 years ago

In event_model.php line 259 $mail->SMTPSecure = "ssl"; so changing to port "25 (No SSL)" in the UI just changes the port number and not the SSL status. I had to comment this line out to use a non SSL SMTP server.

elyobelyob commented 10 years ago

How about putting a fix in instead? You've done the hard work already ... so something like 'if $port is 443 { $mail->SMTPSecure = "ssl"; } ' ??

Bra1nK commented 10 years ago

I'll have a look when get a minute I'm working on setting up new RaspberryPi (Xmas present :)) with hard drive and somehow porting all my existing data over from the currently (older version SD Card only) running one. Nearly got it done yesterday but then the partition filled up and corrupted everything so I've just started again with a fresh image on a resized partition.

elyobelyob wrote:

How about putting a fix in instead? You've done the hard work already ... so something like 'if $port is 443 { $mail->SMTPSecure = "ssl"; } ' ??


Reply to this email directly or view it on GitHub: https://github.com/emoncms/event/issues/23#issuecomment-31345100

Brian Kelly Home Page http://kellybk.com Follow me on Twitter http://twitter.com/Bra1nK