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
SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko
Forum
RE : AIDERE : AIDE par Nico26000
Cliquez pour lire la suite par Nico26000 RE : AIDERE : AIDE par WorldDMT
Cliquez pour lire la suite par WorldDMT AIDEAIDE par Nico26000
Cliquez pour lire la suite par Nico26000
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|