| View previous topic :: View next topic |
| Author |
Message |
Psyfire Voice
Joined: 05 Nov 2006 Posts: 36
|
Posted: Sun Nov 05, 2006 12:35 pm Post subject: need email script |
|
|
hi,
i need a simple e-mail script, but not over perl sendmail. i need something like smtp where i can enter my email account data. i want to send emails via the following command:
!mail <email-adress> <subject> <message>
subject would be optional.
can someone do this for me? |
|
| Back to top |
|
 |
ZEXEL Halfop

Joined: 27 Jun 2006 Posts: 45
|
Posted: Sun Nov 05, 2006 12:45 pm Post subject: Ups! |
|
|
Hey, just try to searching at:
h**p://www.egghelp.org/tcl.htm --- use keyword "email"
and you will be finded what you want...
h**p://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1316 --- try this!  _________________ .:[ Knowledge Is The Power ]:. |
|
| Back to top |
|
 |
Psyfire Voice
Joined: 05 Nov 2006 Posts: 36
|
Posted: Sun Nov 05, 2006 12:57 pm Post subject: |
|
|
This one I got before but I said not over perl sendmail. My provider said that he cant install it because of their security.
I need a simple script where I can add smtp  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Nov 05, 2006 3:52 pm Post subject: |
|
|
Either one of these should suit:
Wacko's Email Mod (uses dcc bind)
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=355
Email.tcl (uses pub bind)
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1316
As far as using "perl sendmail" I don't know what that is. The email.tcl does use sendmail, but this is simple enough to change to use the mailer you have available, just change the line:
set email [open "| /usr/sbin/sendmail -f $mail(address) -t" "w"];
to use the mailer you have available, with the parameters that mailer uses (which should be pretty much the same, smtp and mailers generally use standardized commandlines)
I would look both scripts over and change them as necessary. The script that uses dcc should not be that hard to modify to use a pub bind if that is what you prefer.
Unfortunately, I am only familiar with sendmail myself, or I would offer to modify the script to use qmail or exim or whichever other mailer you had available. Check the appropriate man pages for your mailer's commandline options. |
|
| Back to top |
|
 |
Psyfire Voice
Joined: 05 Nov 2006 Posts: 36
|
Posted: Sun Nov 05, 2006 7:36 pm Post subject: |
|
|
Wackos Email Mod doesnt work, I tried it. (its from 1998..)
set email [open "| /usr/sbin/sendmail -f $mail(address) -t" "w"];
This is the problem. I have not usr/sbin/sendmail because my provider wont install it. The security risk is too high they said. Cause if someone will spam with their server, they will get a problem. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Nov 05, 2006 10:34 pm Post subject: |
|
|
That's why I said to change the mailer line to use the mailer you have available. :/
Which mailer do you have?
And what was the error from the script?
I've never had a problem running sendmail, but that's a personal choice obviously. |
|
| Back to top |
|
 |
Psyfire Voice
Joined: 05 Nov 2006 Posts: 36
|
Posted: Mon Nov 06, 2006 3:44 pm Post subject: |
|
|
I dont find any mailer in my ftp, so I dont think I got one.
If I use the email.zip script, I send some emails but no one will come to my mailbox  |
|
| Back to top |
|
 |
crux Voice

Joined: 05 Jan 2007 Posts: 35 Location: Myanmar
|
Posted: Sat Jan 06, 2007 9:12 pm Post subject: |
|
|
This tcl doesn't work for normal users? coz in my eggdrop only bot owner (with nm flags) can use public commands. I wanna be it for my users, how to correct it, please help me..
Thanks you. _________________ Myanmar Chat Online
MCO Chat |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Jan 07, 2007 3:46 pm Post subject: |
|
|
| Which script are you refering to nyilad? |
|
| Back to top |
|
 |
crux Voice

Joined: 05 Jan 2007 Posts: 35 Location: Myanmar
|
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Jan 08, 2007 1:35 am Post subject: |
|
|
| In that script, you want to change the [matchattr $handle mn] parts, to use whichever permissions flags you want. |
|
| Back to top |
|
 |
crux Voice

Joined: 05 Jan 2007 Posts: 35 Location: Myanmar
|
Posted: Mon Jan 08, 2007 7:40 am Post subject: |
|
|
| rosc2112 wrote: | | In that script, you want to change the [matchattr $handle mn] parts, to use whichever permissions flags you want. |
I changed like that, but doesn't work for normal users.
| Code: | | [matchattr $handle -|-] |
_________________ Myanmar Chat Online
MCO Chat |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Jan 08, 2007 6:21 pm Post subject: |
|
|
| Thats because the script isn't set up to pass the channel name to the matchattr command, try setting the matchattr to [matchattr $handle f] and then give your users the global +f flag (I would NOT allow all/unknown users access to this script!) |
|
| Back to top |
|
 |
crux Voice

Joined: 05 Jan 2007 Posts: 35 Location: Myanmar
|
Posted: Mon Jan 08, 2007 6:26 pm Post subject: |
|
|
| rosc2112 wrote: | | Thats because the script isn't set up to pass the channel name to the matchattr command, try setting the matchattr to [matchattr $handle f] and then give your users the global +f flag (I would NOT allow all/unknown users access to this script!) |
thanks bro _________________ Myanmar Chat Online
MCO Chat |
|
| Back to top |
|
 |
|