Author |
Topic |
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 30 May 2008 : 06:32:57
|
I saw this on a tutorial website - the code will go through your system and determine which email component(s) is/are installed on your system for your use.
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 30 May 2008 : 07:39:43
|
The Snitz code already has something similar, that is how it knows which components to show in the mail config screen< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 03 June 2008 : 07:21:43
|
There's also a file called testemailcomponent.asp in the tools.zip file that's exactly the same as the one you posted (with 2 additional components).
Perhaps you could e-mail one of the admins and let them know where you found that code as it was written by Richard for Snitz and is therefore subject to the Snitz license but the copyright information has been removed from what you posted.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
Art
Starting Member
USA
32 Posts |
Posted - 31 August 2009 : 11:04:39
|
Any idea on how a fellow might go about adding a component? I use HmailServer. I am running WS 2003. I have disabled the smtp server in IIS. I use HmailServer (very easy to configure multiple domain names, and it even works!). I can do a bit of C++, and some other languages, but I have never really messed with databases and certainly not a lot of .asp.
I found the following code in inc_mail.asp:
This all looks like something that is just adding tables to a database, right? If I am running HmailServer on my machine, and I want to link it up to Snitz, what are the nuts and bolts? I get that Snitz will need to store some stuff in the database to create the email, right? Once it does that, how does it go about getting hold of the mail server? Does it act as a mail program and log into an account? Does it control the e-mail server program directly? Does it just use a single account to send all messages (admin@whatever.org)? How does the email component and component name work in? are those just database tables that the mail server uses? This is a "case"... so how do you tell Snitz about another e-mail server to get variables for in the first place? |
http:\\StarFrontiers.org |
Edited by - Art on 31 August 2009 16:08:46 |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Podge
Support Moderator
Ireland
3775 Posts |
Posted - 31 August 2009 : 12:03:41
|
quote: so how do you tell Snitz about another e-mail server to get variables for in the first place?
You set the i.p. address or domain (e.g. mail.whatever.com) in the admin area of the forum. The email component will usually connect to the mail server via TCP/IP and do what's necessary in order to send the email. Its very similar to how your email client (Thunderbird, Outlook, etc.) would connect to a pop email account.
What you are trying to do is un-necessary and at such a low level that you do not need to go there (or even know about for that matter).
If you set up an email account on your mail server for your forum to use and configure the mail server correctly you can then set the email settings in the admin area without the need for code changes (or creating a new email component). The only time you may need to make some code changes to inc_mail.asp is if you need to supply your mail server with a username and password everytime an email is sent (desirable from a security point of view). |
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
Edited by - Podge on 31 August 2009 12:05:12 |
|
|
Art
Starting Member
USA
32 Posts |
Posted - 31 August 2009 : 12:29:06
|
EDIT: Took too long to reply, and got your next post late. Basically, you are saying that I can edit inc_mail.asp (is that the right one) to provide CDOsys with the right password etc, and then I am good to go. I assume that I need to edit this little bit here to be able to enter a username and password, as well as domain name
Original Post Got several domain names linked to this h-mail server...lots of addresses, forwarding rules etc. I have found that I can't turn on IIS smtp and h-mail at the same time. I am serching for the very definition of "email component" as well as many other little bits of information here on my first dive into this world. What I hear you saying is that CDOSYS, which I understand (I think) is a server extension (or part of .asp?) If I start down the road in this direction, are we saying that A. HmailServer will stay in place and CDOSYS will act as some sort of interface??? or B. CDOSYS works with an IIS default smtp server? or C. None of the above.
I am BTW, quite fond of examining just how wheels are built. I notice that from the array that this wheel has been re-invented some 20 times. I figure it might be just a bit of cookbook engineering at this point, rather than a re-invention. In any case, I will first go down the path you suggest, and look into what the heck CDOSYS is, and attempt to find documentation that isn't pure poo, as 99.9999% of any Microsoft documentation is. That is the reason for the huge IIS learning curve. The documentation was written in the most uselessly incomprehensible manner it possibly could be. That was the reason for Hmail in the first place. |
http:\\StarFrontiers.org |
Edited by - Art on 31 August 2009 16:09:22 |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
Posted - 31 August 2009 : 13:16:13
|
quote: HmailServer will stay in place and CDOSYS will act as some sort of interface
Correct.
All you need to send an email is an account on the HMail server setup under any domain. It doesn't really matter which domain is used. The username you will need will usually be the email address for the account you set up. In the admin area under Email Server Config enter the mail server domain name or i.p. address or 127.0.0.1 if the HMail server is on the same machine as the webserver. Hard code in the username and password into inc_mail.asp while uncommenting those three lines (remove the apostrophe at the beginning of the line).
If you get any errors, post them here. |
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
|
|
Art
Starting Member
USA
32 Posts |
Posted - 31 August 2009 : 15:57:03
|
After these modifications (I obscured the actual password):
I tried to send myself a test e-mail and got the following error:
The code for which is indicated here:
This forum has been tinkered with. I believe that there was an attempt to put in the Gatekeeper mod and another anti-spam mod sometime in the past. I believe Gatekeeper is broken. I don't know how to go about editing the database tables to kinda restore the database to a baseline configuration and start over, and this forum is about 9 years old with about 18 years worth of content (Data was re-configured to make the database content long long ago for forum continuity). The Active Users is in force (I installed). I don't think this code for pop_mail.asp was ever modified though.
|
http:\\StarFrontiers.org |
Edited by - Art on 31 August 2009 16:15:01 |
|
|
Art
Starting Member
USA
32 Posts |
Posted - 31 August 2009 : 16:16:34
|
BTW...Thank you much Podge. I appreciate you trying to protect me from myself |
http:\\StarFrontiers.org |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Art
Starting Member
USA
32 Posts |
Posted - 31 August 2009 : 21:37:03
|
Yeah, I get the "shouldn't be needed" messages. I think I should investigate what tabels SHOULD be in the database, vs which ones are actually there. It's a real pain not knowing enough to fix this issue when I have lots of other requests on my plate. I don't mind learning how to troubleshoot .asp code...but like []not right now[/i] I am thinking! Any suggestions on what I could post logs of or anything that might get to the bottom of this? Of course, I guess I could post a remote desktop login...heheheheheh. |
http:\\StarFrontiers.org |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Art
Starting Member
USA
32 Posts |
Posted - 01 September 2009 : 10:38:40
|
Ran it, didn't give any indication that it created any new tables. zip. Next choice??
|
http:\\StarFrontiers.org |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Art
Starting Member
USA
32 Posts |
Posted - 01 September 2009 : 13:02:23
|
There is no M_allowemail collumn under the Members table. Should I create it? If so, what would the data type be, and should I allow null values? I had no idea what table that column should be in, much less if it was ok to just create it. |
http:\\StarFrontiers.org |
Edited by - Art on 01 September 2009 13:05:28 |
|
|
Topic |
|