Top

/mail abc@abc.com


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.0 (of 4 scores)
Date Added  Dec 02, 2004
Last Updated  Sep 04, 2008

Description

Mail function, uses a free hotmail smtp server. Usage: /mail user@blabla.com <message>. Use the \ char to seperate lines, so for example: /mail khaled@mirc.com This is line1\This is line 2\\\This is line 5. Also note that you can change the subject of your message and your OWN email addres to be changed, so it can be anything you want.

Grab the Code

;Note: Code works better now (tries multiple hotmail servers)!
 
alias mail {
 
  ;----- Editable Variables -----
  %mail.from = billgates@microsoft.com
  %mail.subject = Message From Bill Gates
  ;------------------------------
 
  if (!$regex($$1,[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\.[A-Za-z])) {
    echo 4 -a $+($1,:) invalid E-mail Adress! | halt
  }
  echo 3 -a Sending mail to $+($1,...)
  unset %mail.retry
  .timermailtimeout 10 8 mailopen $$1- | mailopen $1-
}
on *:SOCKREAD:mail:{
  if ($sockerr > 0) return
  var %temp | sockread %temp | inc %mcommand
  if (5* iswm %temp) { .sockclose mail | .timermailtimeout off | echo 4 -a Send Failed! %temp }  
  goto $+(command,%mcommand)
 
  :command1 | msnd helo | return
  :command2 | msnd mail from: %mail.from | return
  :command3 | msnd rcpt to: $gettok($sock(mail).mark,1,32) | return
  :command4 | msnd data | return
  :command5
  msnd From: %mail.from
  msnd To: $gettok($sock(mail).mark,1,32)
  msnd Subject: %mail.subject
  msnd $replace($gettok($sock(mail).mark,2-,32),$chr(92),$crlf)
  msnd .
  return
  :command6 | msnd quit | return
  :command7 | echo 3 -a Mail succesfully send to $+($gettok($sock(mail).mark,1,32),!) | .timermailtimeout off | return
}
alias -l msnd if ($sock(mail)) sockwrite -n mail $$1-
alias -l mailopen {
  inc %mail.retry | unset %mcommand
  echo 3 -a Attempting $+(mx,%mail.retry,.hotmail.com:25)
  .sockclose mail | sockopen mail $+(mx,%mail.retry,.hotmail.com 25)
  sockmark mail $1-
}

Comments

  (13)  RSS
DarthReven
Comments: 463
 
mIRC Snippet:  /mail abc@abc.com
Posted on Dec 2, 2004 9:37 pm
interesting but why are you going to want to use mIRC to do your msn and/or hotmail mailing?
QuickStep
Comments: 123
 
mIRC Snippet:  /mail abc@abc.com
Posted on Dec 3, 2004 7:48 am
if somebody registers with your bot with a username/password send them the password to their mail etc...
splatted
Comments: 42
 
mIRC Snippet:  /mail abc@abc.com
Posted on Feb 16, 2005 2:21 pm
Looks good! Peace & Protection 4.22 uses similar coding for the bug report/feedback section, only with dialogs. BTW, does hotmail still allow smtp connections?
No0ne
Comments: 68
 
mIRC Snippet:  /mail abc@abc.com
Posted on Jan 22, 2006 8:08 pm
I guess this is old. Will it still work? Also, it would be nice to see a checkmail one, to like check your mail, and display the contents in a seperate window.
deon204
Comments: 1
 
mIRC Snippet:  /mail abc@abc.com
Posted on Jun 9, 2007 12:58 pm
i tryed this and it did not work :S
Akishoot
Comments: 139
 
mIRC Snippet:  /mail abc@abc.com
Posted on Oct 3, 2007 2:29 pm
Too bad this doesn't work anymore. I was really looking forward to using this. :(
SaGoPa
Comments: 2
 
mIRC Snippet:  /mail abc@abc.com
Posted on Sep 11, 2009 8:31 pm
Does not work ;[ I wonder why?

Possible to do like ? !mail massanger message ? much need ;xx
LucSatise
Comments: 112
 
mIRC Snippet:  /mail abc@abc.com
Posted on Sep 12, 2009 9:58 am
Quote:
SaGoPa:
Does not work ;[ I wonder why?

Possible to do like ? !mail massanger message ? much need ;xx

Hotmail doesn't allow smtp anymore thats why it doesnt work. when this was created it would have worked
SaGoPa
Comments: 2
 
mIRC Snippet:  /mail abc@abc.com
Posted on Sep 12, 2009 9:30 pm
hım ;x thanks ,., How otherwise would? ;[
Henco
Comments: 2
 
mIRC Snippet:  /mail abc@abc.com
Posted on Dec 21, 2009 11:01 am
I got it to work - just changed the mail servers to those of my ISP, and it works fine :D
carlosrevilla
Comments: 4
 
mIRC Snippet:  /mail abc@abc.com
Posted on Dec 21, 2009 4:05 pm
Henco what part did you change?
Henco
Comments: 2
 
mIRC Snippet:  /mail abc@abc.com
Posted on Jan 29, 2010 6:26 pm
carlosrevilla: I changed the bottom bit, so..

alias -l mailopen {
inc %mail.retry | unset %mcommand
echo 3 -a Attempting $+(smtp.tiscali.couk:25)
.sockclose mail | sockopen mail $+(smtp.tiscali.co.uk 25)
sockmark mail $1-
}

Which worked for me, so try finding out your ISPs smtp server and putting it there
carlosrevilla
Comments: 4
 
mIRC Snippet:  /mail abc@abc.com
Posted on Jan 30, 2010 6:42 pm
does smtp.live.com work?

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom