Home | Reviews | GUIpedia | Forum | Fun500


trollyAsgard Mail server comming soon.
hi, i'm writing a mail system in php for asgard. the server part is done. now i'll write the mail client, it will certainly be released tomorow.
2009-05-078:16 AM

pharoahRe:Asgard Mail server comming soon.
Are you sure that what you've written is a mail server? Usually accepting SMTP requests is done by Apache, I didn't think you could make it work in PHP (at least not in a day).
2009-05-079:06 AM

trollyRe:Asgard Mail server comming soon.
it's not realy a mail server, but a private messaging system.
2009-05-0712:34 PM

ToddRe:Asgard Mail server comming soon.
A mail server would require shell access to handle POP3, IMAP, and SMTP requests. Plus does Apache handle SMTP, Pharoah? Apache handles mostly HTTP requests but I thought something like Sendmail or some daemon like that could handle SMTP. I think you can route SMTP requests through Apache but ultimately they're sent to the server's mail daemon which handles SMTP. On XS, I have it handled through Sendmail.
2009-05-071:12 PM

trollyRe:Asgard Messaging System Available
You can install it with the online installer note: this messaging system allow you to send messages to registerd users. registration form is embedded in the program, you will see, it's easy to use
2009-05-071:35 PM

pharoahRe:Asgard Messaging System Available
"Plus does Apache handle SMTP, Pharoah? Apache handles mostly HTTP requests but I thought something like Sendmail or some daemon like that could handle SMTP." You're right -- I've never actually done any server level stuff. All my web coding is done under shared hosting. Hell, I can't even write an IMAP client without the PHP IMAP module installed (hence the lack of QML webmail).
2009-05-073:41 PM

trolly:Asgard Messages client screen shots
there is some screen shots from the first release of the message client. the main screen: [img]http://asgard.theguiblog.com/screens/mail1.jpg[/img] the incoming messages box (the sender is "trolly" because i've send message to myself) [img]http://asgard.theguiblog.com/screens/mail2.jpg[/img] the message edit window (new message) [img]http://asgard.theguiblog.com/screens/mail3.jpg[/img] the message edit window (message reply) [img]http://asgard.theguiblog.com/screens/mail4.jpg[/img] in fact, the message client work like a cms messaging system: [ul] [li]it send info by loading php page with wget, the actions parameters are given in the url (like any browser will do with a form)[/li][li]the php page take the info with the $_GET method, and put the result to the output[/li][li]finaly, the client can read the status from the output file[/li][/ul]
2009-05-074:13 PM

trollyRe:Asgard Messaging System Available
i've made some search, php can easyly send mail: function sendmail($user,$destin,$object,$content) { $headers ="From: ".$user."@asgard.comn"; $headers .="Reply-To: ".$user."@asgard.comn"; $headers .="Content-Type: text/plainn"; $headers .="Content-Transfer-Encoding: 8bit"; if(mail($destin, $object, $content, $headers)) { return true; } else { return false; } }
2009-05-075:29 PM

trollyRe:Asgard Messaging System Available
i've updated the server and the client, now it can send mail (in text format) to a real address
2009-05-075:43 PM

pharoahRe:Asgard Messaging System Available
Yep, sending mail in PHP is extremely easy (I use it to have myself notified of errors with Feedable),it's receiving it that's tough. There's a module that lets PHP open IMAP/POP3 mailboxes, but I don't think it's installed here and I know it's not on XS.
2009-05-076:35 PM

BrandonRe:Asgard Messaging System Available
A Fun500 5 Client for this would be cool.
2009-05-078:17 PM

ToddRe:Asgard Messaging System Available
[b]Pharoah wrote:[/b] [quote]Yep, sending mail in PHP is extremely easy (I use it to have myself notified of errors with Feedable),it's receiving it that's tough. There's a module that lets PHP open IMAP/POP3 mailboxes, but I don't think it's installed here and I know it's not on XS.[/quote] I can install it if you'd like. trolly, really awesome client! Your GUI is like the DOS version of GNOME I never saw. lol
2009-05-0710:29 PM

pharoahRe:Asgard Messaging System Available
It would be gteat if you could install the php imap package. Of course, any QML webmail client would be inherently insecure, but it would be cool to have one.
2009-05-081:52 PM

trollyAsgard MAIL with POP3 support !
now i'm working with php imap to make a pop3 retriever for the message system. it is in way to be donne, ... in local it work (using my apache and php configuration) i could get mail from my dad's ISR's pop3 sever and read it with the mail client in asgard
2009-05-083:36 PM

pharoahRe:Asgard MAIL with POP3 support !
Since you're not using QML, you have an opportunity to make a secure mail client. At the very least, you will have to submit the info (username, password, messages) via POST instead of GET. You should try to do HTTPS using WGET, it's not hard. If you use GET be sure to let everyone know when the program starts so they can be aware about the risk.
2009-05-083:51 PM

trollyRe:Asgard MAIL with POP3 support !
test almost complete, i can get message from my gmail account ussing "pop.gmail.com/pop3/ssl" for the server address. i could not use https because the main part of the code is in the php file in the host, ... sadly theguiblog work not in https. i'll add a message in the mail clent to aware the user that it use the get method. ps: how can i send info wia "post" method?
2009-05-084:18 PM

trollyGmail in asgard screen shoot
[img]http://asgard.theguiblog.com/screens/mail5.jpg[/img]
2009-05-084:45 PM

pharoahRe:Gmail in asgard screen shoot
"ps: how can i send info wia "post" method?" Google how to use WGET to send POST requests... I don't think it's that tough. Then you just use $_POST[] in PHP instead of $_GET[].
2009-05-084:56 PM

ToddRe:Gmail in asgard screen shoot
[b]Pharoah wrote:[/b] [quote]"ps: how can i send info wia "post" method?" Google how to use WGET to send POST requests... I don't think it's that tough. Then you just use $_POST[] in PHP instead of $_GET[].[/quote] If you can find some sort of fsock client, you can send HTTP POST requests like this: [code] POST HTTP/1.0 Connection: Close Content-Type: text/html test GO FSCK YOURSELF! [/code] When doing straight requests however, every line in the request header must be given "rn" for a carriage return and new-line. Then end with two empty "rn"s and put your data in.
2009-05-085:50 PM

trollyRe:Gmail in asgard screen shoot
what are the difference betwen the GET and POST method? is POST realy more secure than GET?
2009-05-088:13 PM

agumaRe:Gmail in asgard screen shoot
GET displays the data in the little bar on top. POST doesn't. The end.
2009-05-088:17 PM

trollyRe:Gmail in asgard screen shoot
i could not use post methode with wget + Qbasic, because it's a limitation in the shell string len from qbasic ... and wget require that i write --post-dat=" ..... " in the command line :(
2009-05-088:27 PM

pharoahRe:Gmail in asgard screen shoot
[code] GET displays the data in the little bar on top. POST doesn't. The end. [/code] That is by no means the only difference between GET and POST. Some other very important differences include: 1. GET requests are often cached, as they are designed to retrieve a certain resource without making any kind of change to the destination site (IE without submitting information). 2. GET requests are usually logged by the server that handles them. This means that it would be a fairly simple matter to read through these logs and find password information, which otherwise wouldn't be kept on the server side. QML uses GET because it is easy to implement, and Qbrowse was written before I knew about Wget and had only GetNet at my disposal. Since you're creating a proprietary client, sending POST requests would be best. Here's an article that explains get vs. post, but it can be a bit difficult to understand I'd imagine: http://www.cs.tut.fi/~jkorpela/forms/methods.html
2009-05-0811:18 PM

ToddRe:Asgard Messaging System Available
[b]Pharoah wrote:[/b] [quote]It would be gteat if you could install the php imap package. Of course, any QML webmail client would be inherently insecure, but it would be cool to have one.[/quote] Turned out I had it installed but disabled it earlier. It should be working in PHP now.
2009-05-0811:36 PM

trollyRe:Asgard Messaging System Available
sadly... my version of wget dont support "--post-data" or "--post-file" :(
2009-05-095:43 AM

BrandonRe:Asgard Messaging System Available
Maybe someone should recompile WGET for DOS? With just the features that GUIs would use?
2009-05-097:36 AM

Blog


2021 Brandon Cornell