Roundcube Community Forum

 

Access Email Programmatically

Started by vagwada, November 05, 2012, 02:27:31 PM

Previous topic - Next topic

vagwada

I am seeking a way to have automated tests send and retrieve email using C# programatically without having to open a browser. Does the RoundCube API expose any such functionality? If not is it possible to write a plugin that will make this possible?

SKaero

I guess you could technically make a plugin to do something like that, but it would be far easier to use native C# IMAP and SMTP libraries.

vagwada

Is there any documentation on accessing RoundCube this way? We were using GMail's API at one point but it kept changing and breaking our tests. Due to security restrictions we now have to use internal test accounts in RoundCube but I'm puzzled as to how to access it from code and can't seem to find any examples anywhere. Any help would be most appreciated...

SKaero

No you'd need to make a plugin. I'm still not sure why you want to go through RoundCube, RoundCube is just a webmail client that connect to a mail server it would be far more efficient to connect your application directly to the mail server.

vagwada

Okay - I think I get it now. I thought that RoundCube was the whole stack i.e. Server & Client. I'll look into this furtehr on my end.

Thanks!