User Control Panel
Advertisements

HELP US, HELP YOU!

Email->Aim // Aim->Email

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
uberninja
Newbie
Newbie


Joined: 14 Feb 2004
Posts: 8

Reputation: 27.3Reputation: 27.3Reputation: 27.3

PostPosted: Sun Feb 22, 2004 6:26 am    Post subject: Reply with quote

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
Young One


Joined: 05 Nov 2003
Posts: 57

Reputation: 31.6Reputation: 31.6Reputation: 31.6

PostPosted: Sun Feb 22, 2004 6:47 am    Post subject: Reply with quote

www.wiredbots.com/downloads


email.zip...emailfile.zip
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Sun Feb 22, 2004 10:47 am    Post subject: Reply with quote

I dont know wtf is wrong with cpan, but every search brings me to texttohtml when i enter the modules name

anyways, go to http://search.cpan.org and search for mail::sendmail and use that, I wouldn't use anything from wiredbots

edit: got it from an earlier post of mine
http://search.cpan.org/~abeltje/Test-Smoke...ail/Sendmail.pm
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Feb 22, 2004 2:30 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sun Feb 22, 2004 6:30 pm    Post subject: Reply with quote

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
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Feb 22, 2004 6:32 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sun Feb 22, 2004 6:37 pm    Post subject: Reply with quote

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
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Sun Feb 22, 2004 6:40 pm    Post subject: Reply with quote

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
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Feb 22, 2004 6:40 pm    Post subject: Reply with quote

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
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Sun Feb 22, 2004 6:45 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group