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.

Sending an email

Old posts that have not been replied to for several years.
Locked
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Sending an email

Post by metroid »

Is it possible to send an email with tcl? If so how.
I know about something called sendmail but my shell doesn't seem to have it :(
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

exec echo "hi goober" | mail -s hello goober@mail.com
(this won't work on windrop of course)
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

well, it seems my bot is succesfully executing the command, but it doesn't seem to actually send an email as i tried sending one but it never got to my inbox :(
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

the standart UNIX utility mail(1) depends on sendmail to do its job; so if you don't have sendmail up & running, mail will not function

however, you can always code sending email in raw SMTP :P
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I'm sure i could if i knew how :p
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

you could try the smtp package that comes with tcllib...
http://tcllib.sourceforge.net/doc/smtp.html
Have you ever read "The Manual"?
Locked