Accueil > > > DIALOG SMTP MAIL SUR MIRC
DIALOG SMTP MAIL SUR MIRC
Information sur la source
Description
Bon , c'est re moi ^^ ... ( après mon bon cassage sur ma dernière source posté ) Voilà ma première "source" perso ... Bon ben c'est pas extra mais je m'entraine ... Hum , je vois pas d'explication à faire , j'ai pas utilisé de mdx ... Normalement ca marche ... Ah oui j'allais oublié, ca sert à envoyer des emails à partir de mIRC ... Allez assez parlé , à vous de commenter maintenant ! *Lapinpsykopate* pour sauter des lignes ds l'edit message fait ctrl+enter ;-)
Source
- menu menubar,channel,query,status {
- -
- Mon client SMTP:/smtp
- }
- alias smtp { dialog -md smtpmail smtpmail }
- dialog smtpmail {
- title "Lapinpsykopate Mail Sender !"
- size -1 -1 176 178
- option dbu
- text "De :", 2, 3 6 13 8
- text "A:", 3, 2 21 9 8
- text "Sujet :", 4, 1 37 20 8
- edit "", 6, 27 5 112 10
- edit "", 7, 27 19 112 10
- edit "", 8, 27 36 112 10
- button "Annuler !", 11, 125 143 37 12, cancel
- edit "", 9, 4 57 164 44 , multi autohs autovs hsbar vsbar
- button "Envoyer ! :P", 13, 4 144 37 12
- box "Message", 1, 1 50 172 56
- edit "En train d'écrire", 5, 35 117 103 10, read autohs center
- box "Statut", 10, 30 109 115 22
- button "Effacer tout les champs présents", 15, 3 164 86 12
- button "Quitter", 12, 125 164 37 12 , ok
- }
- on *:DIALOG:mail:init:*:{
- did -a smtpmail 6 %from
- did -a smtpmail 7 %to
- did -a smtpmail 8 %subject
- did -a smtpmail 9 %msg
- }
- on *:dialog:smtpmail:sclick:15:{
- unset %from $did(6) | unset %to $did(7) | unset %subject $did(8) | unset %msg $did(9) | dialog -x smtpmail smtpmail | smtp
- }
- on *:dialog:smtpmail:sclick:13:{
- smtpsend
- did -ra smtpmail 5 Connection en cours ...
- set %from2 $did(6)
- set %to2 $did(7)
- set %subject2 $did(8)
- set %msg2 $did(9)
-
- }
-
- alias smtpsend {
- sockclose sock
- sockopen sock smtp.tiscali.fr 25
- }
-
- on *:sockopen:sock:{
- if ($sockerr > 0) { did -ra smtpmail 5 Connection impossible | halt }
- sockwrite -tn sock helo %subject2 $+ $crlf $+ mail from: < $+ %from2 $+ > $+ $crlf $+ rcpt to: < $+ %to2 $+ > $+ $crlf $+ | sockwrite sock data $+ $crlf $+ %msg2 $+ $crlf $+ . $+ $crlf
- }
-
- on *:sockread:sock:{
- sockread %read
- echo @debug %read
- if (queued isin %read) {did -ra smtpmail 5 Mail envoyé ... | sockclose $sockname | unset %from2 %to2 %subject2 %msg2 %read }
- }
menu menubar,channel,query,status {
-
Mon client SMTP:/smtp
}
alias smtp { dialog -md smtpmail smtpmail }
dialog smtpmail {
title "Lapinpsykopate Mail Sender !"
size -1 -1 176 178
option dbu
text "De :", 2, 3 6 13 8
text "A:", 3, 2 21 9 8
text "Sujet :", 4, 1 37 20 8
edit "", 6, 27 5 112 10
edit "", 7, 27 19 112 10
edit "", 8, 27 36 112 10
button "Annuler !", 11, 125 143 37 12, cancel
edit "", 9, 4 57 164 44 , multi autohs autovs hsbar vsbar
button "Envoyer ! :P", 13, 4 144 37 12
box "Message", 1, 1 50 172 56
edit "En train d'écrire", 5, 35 117 103 10, read autohs center
box "Statut", 10, 30 109 115 22
button "Effacer tout les champs présents", 15, 3 164 86 12
button "Quitter", 12, 125 164 37 12 , ok
}
on *:DIALOG:mail:init:*:{
did -a smtpmail 6 %from
did -a smtpmail 7 %to
did -a smtpmail 8 %subject
did -a smtpmail 9 %msg
}
on *:dialog:smtpmail:sclick:15:{
unset %from $did(6) | unset %to $did(7) | unset %subject $did(8) | unset %msg $did(9) | dialog -x smtpmail smtpmail | smtp
}
on *:dialog:smtpmail:sclick:13:{
smtpsend
did -ra smtpmail 5 Connection en cours ...
set %from2 $did(6)
set %to2 $did(7)
set %subject2 $did(8)
set %msg2 $did(9)
}
alias smtpsend {
sockclose sock
sockopen sock smtp.tiscali.fr 25
}
on *:sockopen:sock:{
if ($sockerr > 0) { did -ra smtpmail 5 Connection impossible | halt }
sockwrite -tn sock helo %subject2 $+ $crlf $+ mail from: < $+ %from2 $+ > $+ $crlf $+ rcpt to: < $+ %to2 $+ > $+ $crlf $+ | sockwrite sock data $+ $crlf $+ %msg2 $+ $crlf $+ . $+ $crlf
}
on *:sockread:sock:{
sockread %read
echo @debug %read
if (queued isin %read) {did -ra smtpmail 5 Mail envoyé ... | sockclose $sockname | unset %from2 %to2 %subject2 %msg2 %read }
}
Conclusion
Je voudrais dire un grand merci à Silver Bahamut qui m'a beaucoup aider à la réaliser . Euuu , peut être une mise à jour , pour plus tard !! Sinon on peut changer le server smtp dans le script si ca marche pas avec celui là ... Pour sauter des lignes ds l'edit message fait ctrl+enter ;-)
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ?MYTIC - SHAREPOINT 2010 : DéJà UN MYTHE MICROSOFT ? par junarnoalg
La prochaine session de MyTIC aura lieu à Namur, le 23 mars prochain. Pendant presque une heure, nous parlerons de SharePoint 2010. Voici un aperçu du programme.
Accueil : 17h30 Début de la session : 18h00 - Les nouvelles int...
Cliquez pour lire la suite de l'article par junarnoalg [MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA[MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA par cyril
Le deuxième keynote du mix fut très riche en contenu. Internet Explorer 9 Juste un après le lancement de Internet Explorer 8, Microsoft a dévoilé les nouveautés de Internet Explorer 9. Désormais, IE supportera HTML5, SVG et CSS3. L'élément ...
Cliquez pour lire la suite de l'article par cyril CERTIFICATIONS BETA .NET 4CERTIFICATIONS BETA .NET 4 par KooKiz
Les inscriptions pour les certifications beta .NET 4 ont commencé. L'inscription est offerte pour les examens suivants : - 71-511, TS: Windows Applications Development with Microsoft .NET Framework 4 - 71-515, TS: Web Applications Development with...
Cliquez pour lire la suite de l'article par KooKiz [MIX 2010] - MICROSOFT TRANSLATOR TECHNOLOGY PREVIEW V2[MIX 2010] - MICROSOFT TRANSLATOR TECHNOLOGY PREVIEW V2 par redo
J'imagine que la plupart d'entre vous connaissent bien et utilisent le service de traduction de Google, mais connaissez-vous celui de Microsoft . Microsoft Translator ? Effectivement, Microsoft nous annoncé le lancement version 2 de la Technologie Preview...
Cliquez pour lire la suite de l'article par redo
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|