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/
> not for delivering mails via a server.. -
>
> YS Måns Mårtensson
>
> On 22 Sep., 15:07, skye riquelme <riquelme.s...@gmail.com> wrote:
>
> > Hi All
>
> > I want to be able to monitor students use of their main course portal
> > (a TW)...and do it quietly.......I am thinking of a simple email
> > message sent to a dedicated email address...that I can monitor
>
> > I am playing with Erics email script and have reduced it to -
>
> > Automandar um email diretamente por á Skye:
> > {{smallform{<html>
> > <form method=post target=responseframe action="http://www.ipcp.org.br/
> > Mailings/UFOPautomailtext.php" style="display:inline">
> >         <input type=hidden name=to value="ufop2...@ipcp.org.br">
> >         <input type=hidden name=name value=config.options.txtUserName>
> >          <input type=hidden name=from  value=config.options.txtUserName
> > +"@ufop2009.org">
> >         <input type="submit" value="send">
> >         </form><hide linebreaks></html>}}}
>
> > ...I have two problems....
> > .......how to read/evaluate the value of "config.options.txtName"
> > inside this html?
> > ......how to remove the "send" button and have the script simply send
> > the email automatically whenever the tiddler containing this script is
> > opened....(note that I only need to receive the senders name and date
> > of email)
>
> > Thanks in advance
>
> > Skye
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to