amiga-news DEUTSCHE VERSION
.
Links| Forums| Comments| Report news
.
Chat| Polls| Newsticker| Archive
.

amiga-news.de Forum > Amiga, AmigaOS 4 > Shell-basierter SMTP-Client [ - Search - New posts - Register - Login - ]

-1- [ - Post reply - ]

2007-01-06, 19:13 h

analogkid
Posts: 2394
User
hallo,

was wäre die einfachste Möglichkeit per Shell-Skript Mails zu versenden? Ja, ich könnte YAM starten, und das ganze per ARexx machen, aber ich möchte gerne ein Programm ohne GUI verwenden. Weiss jemand Rat?
--
Join us @ Sarkasmus-pur
:amiga: :dance1:

Talking about music is like dancing about architecture

[ - Answer - Quote - Direct link - ]

2007-01-06, 19:20 h

fisch08
Posts: 692
User
@analogkid:

telnet
--
Um den Spamfilter zu umgehen: Bei direkter Antwort per Mail bitte "[Amiga]" ins Subject: Nur so 100%ige Garantie, dass man nicht im Filter landet!

[ - Answer - Quote - Direct link - ]

2007-01-06, 19:49 h

thomas
Posts: 7718
User
@analogkid:

code:
/* rexx */

server = 'mailto.t-online.de'
port   = 25

fromname = 'Thomas Rapp'
frommail = 'thomas-rapp@t-online.de'

toname = 'Thomas Rapp'
tomail = 'thomas-rapp@web.de'

subject = 'Test-Mail'

text.1 = 'Hallo !'
text.2 = ''
text.3 = 'Dies ist ein Test.'
text.4 = ''
text.5 = 'Viele Gruesse !'
textlines = 5

if Open(tcp,'tcp:'server'/'port,write) then do
    say ReadLn(tcp)
    call WriteLn(tcp,'HELO smtp')
    say ReadLn(tcp)
    call WriteLn(tcp,'RCPT To:<'tomail'>')
    say ReadLn(tcp)
    call WriteLn(tcp,'DATA')
    say ReadLn(tcp)
    call WriteLn(tcp,'From: "'fromname'" <'frommail'>')
    call WriteLn(tcp,'To: "'toname'" <'tomail'>')
    call WriteLn(tcp,'Subject:' subject)
    call WriteLn(tcp,'')
    do i = 1 to textlines
     call WriteLn(tcp,text.i)
    end
    call WriteLn(tcp,'')
    call WriteLn(tcp,'.')
    say ReadLn(tcp)
    call WriteLn(tcp,'QUIT')
    say ReadLn(tcp)
    call Close(tcp)
end
else
    say 'cannot connect to server'


Gruß Thomas

--
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de/

[ - Answer - Quote - Direct link - ]

2007-01-06, 20:58 h

analogkid
Posts: 2394
User
danke Thomas, ich werd es mal ausprobieren :)
--
Join us @ Sarkasmus-pur
:amiga: :dance1:

Talking about music is like dancing about architecture

[ - Answer - Quote - Direct link - ]


-1- [ - Post reply - ]


amiga-news.de Forum > Amiga, AmigaOS 4 > Shell-basierter SMTP-Client [ - Search - New posts - Register - Login - ]


.
Masthead | Privacy policy | Netiquette | Advertising | Contact
Copyright © 1998-2024 by amiga-news.de - all rights reserved.
.