/mail abc@abc.com

By QuickStep on Dec 02, 2004

Mail function, uses a free hotmail smtp server. Usage: /mail user@blabla.com . 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.

;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

Sign in to comment.
Yanki   -  Sep 05, 2011

And if i change it to google mail i get a message that it dos not start with TLS.
Is there a work around for it?

 Respond  
jasonh   -  Apr 27, 2011

works still. would be nice to send with a trigger and authorize a few people. i suck at scripting so i'm working on doing this by looking at other people's work

 Respond  
ProIcons   -  Sep 12, 2010

Just Make a Script like PHPMail... It will be more pretty.

 Respond  
carlosrevilla   -  Jan 30, 2010

does smtp.live.com work?

 Respond  
Henco   -  Jan 29, 2010

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

 Respond  
carlosrevilla   -  Dec 21, 2009

Henco what part did you change?

 Respond  
Henco   -  Dec 21, 2009

I got it to work - just changed the mail servers to those of my ISP, and it works fine :D

 Respond  
SaGoPa   -  Sep 12, 2009

hım ;x thanks ,., How otherwise would? ;[

 Respond  
LucSatise   -  Sep 12, 2009

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

 Respond  
SaGoPa   -  Sep 11, 2009

Does not work ;[ I wonder why?

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

 Respond  
Akishoot   -  Oct 03, 2007

Too bad this doesn't work anymore. I was really looking forward to using this. :(

 Respond  
deon204   -  Jun 09, 2007

i tryed this and it did not work :S

 Respond  
No0ne   -  Jan 22, 2006

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.

 Respond  
splatted   -  Feb 16, 2005

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?

 Respond  
QuickStep   -  Dec 03, 2004

if somebody registers with your bot with a username/password send them the password to their mail etc...

 Respond  
DarthReven   -  Dec 02, 2004

interesting but why are you going to want to use mIRC to do your msn and/or hotmail mailing?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.