Sending e-mails with authentication

View: New views
6 Messages — Rating Filter:   Alert me  

Sending e-mails with authentication

by José Marí­a Fernández González :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi eXistentialists!
        I have been looking at the extension mail module at trunk because in our GOPHER system (to be introduced in ISMB/ECCB) we need to send e-mails on specific events. As far as I have seen among the different module functions there is a deprecated one called send-email which could be used, but as I cannot give it the credentials in order to authenticate against our mail server it is not the one I need.

        So, my question is there any other more complete function to send e-mails? If it is not, I could try writing it.

        Best Regards,
                José María
--
"La violencia es el último recurso del incompetente"
        - Salvor Hardin en "La Fundación" de Isaac Asimov
"Premature optimization is the root of all evil." - Donald Knuth

José María Fernández González
e-mail: josemariafg@...

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Sending e-mails with authentication

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The mail module in trunk has been updated significantly by Andrzej and
is now based on Java Mail.

The old version was a custom SMTP client that I hand cranked. The new
version should offer all the features of Java Mail, with
authentication being one of those such features.

Have a look at the one in trunk and see if that helps you. I have not
tested authentication myself yet and have an outstanding recent
enquiry on the mailing list to investigate for someone who cannot
connect to their Google Account (SSL/TLS) from it.

Cheers Adam.


2009/6/23 José Marí­a Fernández González <josemariafg@...>:

> Hi eXistentialists!
>        I have been looking at the extension mail module at trunk because in our GOPHER system (to be introduced in ISMB/ECCB) we need to send e-mails on specific events. As far as I have seen among the different module functions there is a deprecated one called send-email which could be used, but as I cannot give it the credentials in order to authenticate against our mail server it is not the one I need.
>
>        So, my question is there any other more complete function to send e-mails? If it is not, I could try writing it.
>
>        Best Regards,
>                José María
> --
> "La violencia es el último recurso del incompetente"
>        - Salvor Hardin en "La Fundación" de Isaac Asimov
> "Premature optimization is the root of all evil." - Donald Knuth
>
> José María Fernández González
> e-mail: josemariafg@...
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Sending e-mails with authentication

by Michael Sokolov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FYI - I've often found that when having problems w/SSL connections this was a huge help:

System.setProperty ("javax.net.debug", "ssl,handshake");

If you this property is set when the connection is attempted, the SSL layer dumps all kinds of useful diagnostic info (on System.err I think)

-Mike

Adam Retter wrote:
The mail module in trunk has been updated significantly by Andrzej and
is now based on Java Mail.

The old version was a custom SMTP client that I hand cranked. The new
version should offer all the features of Java Mail, with
authentication being one of those such features.

Have a look at the one in trunk and see if that helps you. I have not
tested authentication myself yet and have an outstanding recent
enquiry on the mailing list to investigate for someone who cannot
connect to their Google Account (SSL/TLS) from it.

Cheers Adam.


2009/6/23 José Marí­a Fernández González josemariafg@...:
  
Hi eXistentialists!
       I have been looking at the extension mail module at trunk because in our GOPHER system (to be introduced in ISMB/ECCB) we need to send e-mails on specific events. As far as I have seen among the different module functions there is a deprecated one called send-email which could be used, but as I cannot give it the credentials in order to authenticate against our mail server it is not the one I need.

       So, my question is there any other more complete function to send e-mails? If it is not, I could try writing it.

       Best Regards,
               José María
--
"La violencia es el último recurso del incompetente"
       - Salvor Hardin en "La Fundación" de Isaac Asimov
"Premature optimization is the root of all evil." - Donald Knuth

José María Fernández González
e-mail: josemariafg@...

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

    



  

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Parent Message unknown Re: Sending e-mails with authentication

by Andrzej Jan Taramina :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joe:

> I have been looking at the extension mail module at trunk because in our GOPHER system (to be introduced in
> ISMB/ECCB) we need to send e-mails on specific events. As far as I have seen among the different module functions
> there is a deprecated one called send-email which could be used, but as I cannot give it the credentials in order to
> authenticate against our mail server it is not the one I need.

It's on my to do list to flesh out the mail extension more fully, including the writing of a new send function to
replace the old one.

Might get some more work done on that in the next week or so.

--
Andrzej Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Sending e-mails with authentication

by José Marí­a Fernández González :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andrzej,
        as far as I have seen, half of the work is already done (in essence, session handling), and, depending on the approach you choose to follow for authentication (explicit through Transport vs Authenticator callbacks) it can be easier or not. In any case, good job!

        Best Regards,
                José María

Andrzej Jan Taramina wrote:

> Joe:
>
>> I have been looking at the extension mail module at trunk because in our GOPHER system (to be introduced in
>> ISMB/ECCB) we need to send e-mails on specific events. As far as I have seen among the different module functions
>> there is a deprecated one called send-email which could be used, but as I cannot give it the credentials in order to
>> authenticate against our mail server it is not the one I need.
>
> It's on my to do list to flesh out the mail extension more fully, including the writing of a new send function to
> replace the old one.
>
> Might get some more work done on that in the next week or so.
>

--
"La violencia es el último recurso del incompetente"
        - Salvor Hardin en "La Fundación" de Isaac Asimov
"Premature optimization is the root of all evil." - Donald Knuth

José María Fernández González
e-mail: josemariafg@...

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Sending e-mails with authentication

by Andrzej Jan Taramina :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

José:

> as far as I have seen, half of the work is already done (in essence, session handling), and, depending on the
> approach you choose to follow for authentication (explicit through Transport vs Authenticator callbacks) it can be
> easier or not. In any case, good job!

Thanks.....first cut, I'm planning to just support the easier route for authentication through explicit Transport.  If
there is a need down the road, I might look at Authenticator callbacks, though that might be a bit tough to integrate
cleanly into an XQuery function call.

--
Andrzej Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open