|
| Author |
Message |
uberninja Newbie

Joined: 14 Feb 2004 Posts: 8
   
|
Posted: Sun Feb 22, 2004 6:26 am Post subject: |
|
|
I was wondering if anybody had any ideas how to make a command for a bot, to do this:
when you tell the bot to email somebody, it emails them ex: /email bobdole@viagra.com
and when you send an email to a screenname@aim.website.com, it automatically sends the screenname the message that was in the email
thanks-
-uberninja :ph34r: |
|
| Back to top |
|
 |
nehiem Young One

Joined: 05 Nov 2003 Posts: 57
   
|
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sun Feb 22, 2004 2:30 pm Post subject: |
|
|
That module won't work for me.
Whenever I try to do "sendmail (%mail)" it dies with error:
| Code: | | Undefined subroutine &mail::sendmail called at ./commands/client/email.pl |
So I tried Mail::SendMail->sendmail (%mail):
| Code: | | Undefined subroutine &Mail::SendMail->sendmail (perhaps you forgot to load Mail::SendMail?) |
And Mail::SendMail::sendmail (%mail);
| Code: | | Undefined subroutine &Mail::SendMail::sendmail called |
And I tried doing "use Mail::SendMail" in the command sub and I tried in the main file but nothing works. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sun Feb 22, 2004 6:30 pm Post subject: |
|
|
Did you try...
| Code: | | use Mail::Sendmail;<br /><br /># ... create your %mail hash<br /><br />my $success = Mail::Sendmail::sendmail(%mail); |
If that doesn't work, you don't have Sendmail installed properly. |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sun Feb 22, 2004 6:32 pm Post subject: |
|
|
It worked better when I ran it by itself.
Maybe another module is interfering (maybe MSN?). The MSN module's to blame for a lot of things. Maybe it's because it uses strict or something, but no compilers like it either. Messes things up. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sun Feb 22, 2004 6:37 pm Post subject: |
|
|
What does MSN.pm have to do with Sendmail? And MSN is not to blame for anything. I personally use strict for all my code since it catches a TON of possible bugs. Which "compiler's" don't like it?
I would suggest writing a script that only uses Sendmail, a 3 liner, get that working and then integrate it back into your bot. |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Sun Feb 22, 2004 6:40 pm Post subject: |
|
|
LOL. Compilers don't like it? LOL It breaking things because it uses strict? LOL. Its to blame for alot of things???? LOL
So let me get this straight, MSN + sendmail works fine for me and others. It doens't work for you, therefore MSN must be breaking Sendmail.. You need to go take a logic course and a perl course and come back later when you have a clue.
If you are going to make blanket statments like MSN breaks alot of things, then you should at least back it up with reproducable examples of broken behavior caused by MSN.pm. Then at least if could be fixed. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sun Feb 22, 2004 6:40 pm Post subject: |
|
|
Well, for one, Perl2exe doesn't like it.
Back in the days when I used Net::AIM and MSN P2, I could compile the code rather easily with no errors at all. But since the new MSN modules, the compiler doesn't like it for some reason. It might also be just the SSL updates not being compatible with how the compiler wants the code to be or something. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Sun Feb 22, 2004 6:45 pm Post subject: |
|
|
Perl isn't realy mean to be compiled because of the way it allows for dynamic includes of files. This is specificaly a problem with some cross platform modules that dynamicaly load the correct parts. I beleive the HTTP SSL system is one of those. Just read the errors you get when compileing and hand "use" the files it is missing. That normaly works pretty good. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
|