Print Page | Close Window

Email

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=13923
Printed Date: 01 April 2026 at 12:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Email
Posted By: Gullanian
Subject: Email
Date Posted: 21 February 2005 at 10:39am
Hi

I'm interested in writting a hotmail style system for a website, but on a smaller scale.  I have a few questions, if anyone could answer them, it would be great!  All questions relate to ASP.

How do you retrieve emails from a webserver?
How do you send emails from an email account on a webserver?
How do you create new email accounts on the server?

Any answers appreciated!

Tom




Replies:
Posted By: WebWiz-Bruce
Date Posted: 21 February 2005 at 10:50am
To answer your first question you need to use an email component that has POP 3 tools. Jmail 4 pro version has this, not sure if any others support POP 3, but I'm sure there is.

The second question, any email component can be used to send emails with whatever email address you like.

Not sure about the last question as I imagine it would be quite a complex task, I would look for something that already does that.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Gullanian
Date Posted: 21 February 2005 at 11:12am
Thanks for your answers!

Regarding the POP3 thing, do all webservers use POP3 accounts?  Are there any alternatives I need to build for?


Posted By: Mart
Date Posted: 21 February 2005 at 11:13am
For the last  question - your POP3 server may have some open API's that you can use for setting up and managing the server


Posted By: Gullanian
Date Posted: 21 February 2005 at 11:17am
I think I'm going to try and build my own component to do the management of the Pop3 accounts.  I read that using P3Admin.dll and some others you can do this fairly easily, but if I created a component that used these DLL's:

    Am I allowed to sell it?
    Will it work on any windows server?


Posted By: Phat
Date Posted: 22 February 2005 at 4:34am
Check out http://www.dart.com/samples/pop.asp

or

http://www.chilkatsoft.com/WebMail.asp




Posted By: dpyers
Date Posted: 22 February 2005 at 10:40am
Assuming you're going to use only pop3 and smtp - and not imap - basically what you need to do is write services that can listen and do i/o on port 110 and 25. This is typically done by creating a dll that accesses the windows api either directly through c, c++, or .net or indirectly through vb.
 
Almost all web servers will have port 25 and/or port 2525 open for sending mail. Usually port 110 is shutdown for receiving mail as there's typically a dedicated mail server - not a web server - for that so you need to be able to support and query pop3 on a remote machine instead of monitoring port 110 locally.
 
Sending mail is something that's pretty common and you can use cdo or cdonts examples found almost everywhere without needing to create a dll. If you want to handle send errors/kickbacks or maintain a "sent mai"l folder though, you may need your own smtp dll.
 
A pop3 receive mail component is not terribly hard to write if port 110 is open. Basically you listen on the port and stream all traffic to a data handler. The RFC is pretty good for documenting the things you need to look for in the steram. The difficulty with the app comes in managing and displaying the received mail.
 
The windows api's for pop and smtp haven't changed substantially in a long time so older vb examples using the win32 api should work for creating a dll.
 
For an example of the pop3 admin and display stuff you'd need to handle, check out JMailBox which uses the JMail component.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Mart
Date Posted: 22 February 2005 at 11:16am
I have a webmail app lying around somewhere wrote in C#.NET... would you like the source?


Posted By: Gullanian
Date Posted: 22 February 2005 at 3:10pm
That'd be fanatastic!  And thanks for your lowdown dypers.  If you could send it to gullanian - gmail.com that'd be brilliant.


Posted By: Mart
Date Posted: 22 February 2005 at 4:25pm
Sent, by second looks its wrote in Vb.net not C#


Posted By: Bluefrog
Date Posted: 24 February 2005 at 4:27am
You should check the emails that any component that you use produce well formed email. I can't tell you how miserably horrible it is to test them all, but if you don't want to hit the trash bin with your emails, it's a necessary evil Ouch 

-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net