This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need email script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
P
Psyfire
Voice
Posts: 36
Joined: Sun Nov 05, 2006 12:32 pm

need email script

Post by Psyfire »

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?
User avatar
ZEXEL
Halfop
Posts: 45
Joined: Tue Jun 27, 2006 10:47 pm
Contact:

Ups!

Post by ZEXEL »

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 ... ad&id=1316 --- try this! :wink:
.:[ Knowledge Is The Power ]:.
P
Psyfire
Voice
Posts: 36
Joined: Sun Nov 05, 2006 12:32 pm

Post by Psyfire »

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 ;-)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Either one of these should suit:

Wacko's Email Mod (uses dcc bind)
http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=355

Email.tcl (uses pub bind)
http://www.egghelp.org/cgi-bin/tcl_arch ... ad&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.
P
Psyfire
Voice
Posts: 36
Joined: Sun Nov 05, 2006 12:32 pm

Post by Psyfire »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
P
Psyfire
Voice
Posts: 36
Joined: Sun Nov 05, 2006 12:32 pm

Post by Psyfire »

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 :roll:
User avatar
crux
Voice
Posts: 35
Joined: Fri Jan 05, 2007 12:41 pm
Location: Myanmar
Contact:

Post by crux »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Which script are you refering to nyilad?
User avatar
crux
Voice
Posts: 35
Joined: Fri Jan 05, 2007 12:41 pm
Location: Myanmar
Contact:

Post by crux »

rosc2112 wrote: Email.tcl (uses pub bind)
http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1316

This one bro.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

In that script, you want to change the [matchattr $handle mn] parts, to use whichever permissions flags you want.
User avatar
crux
Voice
Posts: 35
Joined: Fri Jan 05, 2007 12:41 pm
Location: Myanmar
Contact:

Post by crux »

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: Select all

[matchattr $handle -|-]
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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!)
User avatar
crux
Voice
Posts: 35
Joined: Fri Jan 05, 2007 12:41 pm
Location: Myanmar
Contact:

Post by crux »

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
Post Reply