Hi Mans
I can´t take any credit for the serverside mail script.....Eric
supplied me with it some time back. So I am sure he won´t mind my
passing it on.
You will see that you simply need to direct the TW form email to the
server mailtext.php file, which you can simply configure to your own
email details....
the mailtext.php file is here -
http://dl.getdropbox.com/u/284644/mailtext.php
and the script for the tiddler form code -
Send message to....
{{smallform{<html>
<form method=post target=responseframe action="
http://server_address/
mailtext.php" style="display:inline">
<input type=hidden name=to value="send to email">
<input type=text name=name style="width:49%" value="YourName"
onfocus="this.select()">
<input type=text name=from style="width:49%" value="Your Email"
onfocus="this.select()"><br>
<input type=hidden name=subj value="Message Heading">
<font size=-2>Seu Mensagem:</font><br>
<textarea rows=7 cols=50 name=msg style="width:99%"
onfocus="this.select()"></textarea><br>
<div style="text-align:center">
<font size=-2>fill in and then clic..</font>
<input type="submit" value="send"
onclick="var f=this.form;
if (f.name.value==f.name.defaultValue)
{ alert('Please enter your name'); f.name.focus(); return false; }
if (f.from.value==f.from.defaultValue)
{ alert('Please enter your email address'); f.from.focus(); return
false; }
if (!f.msg.value.length)
{ alert('Please enter a message'); f.msg.focus(); return false; }
var target=this.form.nextSibling;
target.style.display='block';
">
</div>
</form><div class="fine" style="text-align:center;display:none">
server response:<br>
<iframe src="" name="responseframe" id="responseframe"
marginheight=0 style="display:block;border:0;padding:0;margin:
0;width:100%;height:9em;">
</iframe>
</div><hide linebreaks></html>}}}
<<tiddler HideTiddlerTags>>
....this gives a simple way for TW readers to send a message to the
specified email address.
I would love to have a TW that becomes a simple email client...so I
could read and organise incoming emails as well......haven´t got
far...but I am hoping to get time to play with mpop (http://
sourceforge.net/projects/mpop/)...and see if I can get it to work via
a TW....
Skye
On 22 Set, 11:49, Måns <
humam...@gmail.com> wrote:
> Hi Skye
>
> I can't answer your question - but I have a few questions regarding
> the mailtext.php-script - for you instead (if that's ok?):
> 1)
> How did you setup the UFOPautomailtext.php on your server?
> 2)
> What do I need to install/activate on my server to use a similar
> script?
> 3)
> Can I setup a mail.php - script to run from any serverhost?
> 4)
> Can I have a look at your mail.php-script (or a modified copy)?
>
> I've been searching for a simple serverbased solution -
> Uptill now I have used Claroline or Moodle as a platform (in an
> iframe) for sending emails, not having to startup the "senders" local
> mailclient.
> I would like to be able to integrate a mailform in my own TWs and I
> looked at MiniRelay to see if it could be used in some way- but it is
> just for local usehttp://
www.pendriveapps.com/portable-smtp-server-mini-relay/