posting through email
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9510
Printed Date: 30 March 2026 at 3:54am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: posting through email
Posted By: jamesyin
Subject: posting through email
Date Posted: 03 February 2004 at 2:18pm
|
is there a way to allow automatic posting of topics through emails?
thanks!
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 03 February 2004 at 2:36pm
There isn't as ASP can't get mail from a mail server without third party expensive components installed on the server.
------------- 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: jamesyin
Date Posted: 03 February 2004 at 3:10pm
|
so which 3rd party components allow me to process emails on the web server? does cdonts or cdosys process emails?
thanks!
|
Posted By: Semikolon
Date Posted: 03 February 2004 at 3:44pm
|
you could create a script with for example aspPOP3 from ServerObjects and run it on a computer, make it refresh every 2nd minute and when a new mail arrives, it sends it to the post message script automatically.. this will require hell alot of work.. and knowledge in the subject
|
Posted By: dpyers
Date Posted: 03 February 2004 at 6:27pm
CDONTS and CDOSYS are smtp components - they allow you to send email only. You'd need a pop3 component like smikilon mentioned. Many webhosts don't allow pop3 components. You'd also have to be careful how you set it up and administer it or you're in for a spamfest.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: thekiwi
Date Posted: 03 February 2004 at 6:35pm
|
Semikolon wrote:
you could create a script with for example aspPOP3 from ServerObjects and run it on a computer, make it refresh every 2nd minute and when a new mail arrives, it sends it to the post message script automatically.. this will require hell alot of work.. and knowledge in the subject |
Yea ... we did this for one forum.
POP3 components aren't expensive ... most are even free, but itwas very very involved.
- The from address for all posts needed to have added the ID of the message, eg mailto:forumname.61645@fourm.domain.com - forumname.61645@fourm.domain.com
- You needed a global wild card for that subdomain, eg forum.domain.com so that anything sent to it ended up in the POP3 box
- The POP3 checker had to interface with your online database ... relatiovely easy ... but you had to parse the TO field to get the fourm and message ID to which the reply was addressed, collect the Message Content, parse the FROM address and check that against your Member base (note this means posts can be faked)
- Based on the Message ID, you then insert in the following ways: Either next in line, or after the message they replaied (ie moving posts which got in first). We went for the former where we just tacked the message below the last in the thread.
We made sure that all Email postings needed to be moderated ... to make sure we didn't have some clever person impersonating someone else. Near impossible to stop tho' with somehow using keys/PGP/Sigs in the Email received from the persons Email client.
So ... it is possible ... but quite involved 
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: thekiwi
Date Posted: 03 February 2004 at 6:39pm
jamesyin wrote:
so which 3rd party components allow me to process emails on the web server? does cdonts or cdosys process emails?
thanks!
|
If you are keen to explore this check http://www.hotscripts.com/ASP/Scripts_and_Components/Email_Systems/index.html - http://www.hotscripts.com/ASP/Scripts_and_Components/Email_S ystems/index.html or do a search on google.
You basically want a POP3 component
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: michael
Date Posted: 03 February 2004 at 6:53pm
If you use SQL Server it has builtin mail capability (depending on the mail server you use). With some wiz you can mail to the "SQL Server" Mail account directly, and it will put it in the database, well that is if you know how to configure it... no web server needed.
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: dpyers
Date Posted: 03 February 2004 at 7:10pm
Good info thekiwi, I'm bookmarking this one 
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: thekiwi
Date Posted: 03 February 2004 at 7:16pm
|
If as a collective group we can agree on a free POP component that most are OK with installing I can make available some code for doing this.
I guess the "best" would be to have an array of components selectable (lie BOrg does with SMTP), but that makes it a huge MOD. WOuld also have to have the "option" of turning POP3 onn/off.
If someone is keen, would be quite a cool project. I might be able to do this as part of a current project ...
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: psychopath
Date Posted: 09 February 2004 at 2:33pm
If this was available, I'm sure it would be a great additional feature - but the limitations (which allow others to abuse the return messages) seem to outweigh the advantages. At least I know this topic is here now - thanks to thekiwi - so I'll be watching with interest!
------------- Mike
http://www.psychozine.co.uk - PSYCHOPATH
|
Posted By: thekiwi
Date Posted: 06 April 2004 at 4:42pm
OK ... just an update on this.,
I now have a WWF install doing exactly this.
EMails arrived with the content of the posting.
The EMail recipient can simple click reply in their Email programme,
type their message, and the posting will arrive back at the forum, in
the correct thread etc etc.
It also obeys the permissions for posting, so if you dont have access, your message is simply deleted.
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: dpyers
Date Posted: 10 April 2004 at 12:15am
|
Very cool. 
What component did you wind up using? Any chance of posting the code somewhere?
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: psychopath
Date Posted: 10 April 2004 at 1:32pm
Is this available?
------------- Mike
http://www.psychozine.co.uk - PSYCHOPATH
|
Posted By: thekiwi
Date Posted: 14 April 2004 at 3:42am
psychopath wrote:
Is this available? |
Yea ... if you want it:
http://webwiz.infobahn.co.nz/forum_posts.asp?TID=8&PN= 1
- You have to be using SQL Server, as I have used triggers on some
of the tables for the insertion of posting message and a stored
procedure of rthe actual posting of an Email and allowing for the
security of the sender
- There is only one edit to any WWF page, and that is the page
sending out the Email notifications, as the FROM field needs to include
the forum and topic being posted from.
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: thekiwi
Date Posted: 14 April 2004 at 3:43am
dpyers wrote:
Very cool. 
What component did you wind up using? Any chance of posting the code somewhere? |
Borg
you have a misconfig for forum postings in your forum. The above posting appeared via Email as:
Forum: Web Wiz Forums Support
Topic: posting through
email
Posted By: -boRg-
Very cool. 
What component did you wind up using? Any chance of posting the code
somewhere?
|
You will note it says its from you.
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: thekiwi
Date Posted: 14 April 2004 at 3:45am
dpyers wrote:
Very cool. 
What component did you wind up using? Any chance of posting the code somewhere? |
I used JMail for the Script collecting the Emails from a POP box.... although you could use anything.
You ideally need access to your server running WWF as I wrote a Windows script that runs on a schedule every 5 mins.
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
Posted By: dj air
Date Posted: 14 April 2004 at 5:57am
Borg
you have a misconfig for forum postings in your forum. The above posting appeared via Email as:
Forum: Web Wiz Forums Support Topic: posting through email Posted By: -boRg-
Very cool. 
What component did you wind up using? Any chance of posting the code somewhere?
You will note it says its from you.
|
bruce knows about this but there are more pressing issues...
|
Posted By: thekiwi
Date Posted: 26 April 2004 at 4:54pm
psychopath wrote:
Is this available? |
OK Ive installed it at http://webwiz.infobahn.co.nz to see how involved
it was for a 7.7a fresh install and it went in flawlesly.
Couple of catches
- At the moment it only uses JMail, but the Windows Script can easily be written for various components.
- The Windows Script resides on the WWW Server (ie created a new
Scripts folder in the WWF install) and is run by Microsoft Schedular
every 5 mins. Thus you need acecss to the server, or atleast your
ISP to setup the schedule.
- The Script checks a remote POP3 box which has a wildcard for a
"domain". In this case its easier to setup a subdomain (eg
forum.domain.com) with an MX record allowing all mail to be collected
in the POP3 box.
- The VBScript above collects all the Emails from the POP3 box and
places them in a new table called emailmessages. It also collects
any attachments and saves them to the forum hard drive (renaming them
to avoind and duplicate issues)
- All messages in the above table are then processed by a Stored
Procedure (the step above also uses a stored procedure). This
proc checks for messages of a certain status (ie not yet imported to
forum), checks the users posting privs (based on Email address) , and
then either adds a new topic or adds a new reply to an existing
topic. Thus it is possible to actually start a new thread via
Email. If a message fails any of the security checks, it is
deleted and not posted.
- Once a message is added to the fourm, the processing Proc above
then sends out the notifications in exactly the same manner as the
Forum ASP does (and does the same checks, eg not sending to the current
user). This allows total interaction via Email, ie reply to a
post, and also have the Email post sent out to everyone else.
THis latter step uses a third table called "mailtable", which basically
holds Emails being sent from the forum stored procedures and these are
sent by a SQL job.
- The only change to WWF code is in the following WWF pages
forum_posts.asp
if isNull(strAuthorIP) then 'CJH Added EMail Icon
response.write(VbCrLf &
" <img
src='forum_images/e-mail_sent.gif' alt='sent via Email' width='18'
height='17' border='0'>")
end if
|
This will show a little Email Icon for posts delivered by Email
post_message.asp
strEmailMessage = strEmailMessage
& "<p>" & strTxtEmailEmailToReply & "<br
/>"
|
So that there is a comment in the delivered Emails about clicking reply
(this therefore needs the CONST set in your language file)
and
'Call the function to send the e-mail
blnEmailSent = SendMail(strEmailMessage,
decodeString(strUserName),
decod eString(strUserEmail), strMainForumName,
decodeString(intForumID & "." & lngTopicID &
"@forum.domain.com"), strEmailSubject, strMailComponent, true)
|
All in all it seems to work really well. The attachments are
successfully added to the forum posting, as tho' they wer done via the
WWW interface. It also obeys formatting comments, in that if the
Email posting is in HTML, then it posts (Email and WWW) via HTML.
If in plain text, then the Email that gets sent out is also plain
text. Saves seeing HTL code headers.
------------- Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting
|
|