amiga-news ENGLISH VERSION
.
Links| Forum| Kommentare| News melden
.
Chat| Umfragen| Newsticker| Archiv
.

amiga-news.de Forum > Amiga, AmigaOS 4 > Shell-basierter SMTP-Client [ - Suche - Neue Beiträge - Registrieren - Login - ]

-1- [ - Beitrag schreiben - ]

06.01.2007, 19:13 Uhr

analogkid
Posts: 2394
Nutzer
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

[ - Antworten - Zitieren - Direktlink - ]

06.01.2007, 19:20 Uhr

fisch08
Posts: 692
Nutzer
@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!

[ - Antworten - Zitieren - Direktlink - ]

06.01.2007, 19:49 Uhr

thomas
Posts: 7717
Nutzer
@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/

[ - Antworten - Zitieren - Direktlink - ]

06.01.2007, 20:58 Uhr

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

Talking about music is like dancing about architecture

[ - Antworten - Zitieren - Direktlink - ]


-1- [ - Beitrag schreiben - ]


amiga-news.de Forum > Amiga, AmigaOS 4 > Shell-basierter SMTP-Client [ - Suche - Neue Beiträge - Registrieren - Login - ]


.
Impressum | Datenschutzerklärung | Netiquette | Werbung | Kontakt
Copyright © 1998-2024 by amiga-news.de - alle Rechte vorbehalten.
.