flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Hp
Hello,
is it possible to send a simple text e-mail with assembler? Where can I learn about this? |
|||
![]() |
|
slacker116
Yes, use winsock and connect to port 25 of a smtp server such as mx1.hotmail.com, d.mx.mail.yahoo.com, to find another smtp server use http://dnsstuff.com
type in host email provider URL and select the 'MX' record. after you are connected you use the SMTP(simple mail transfer protocol) to transfer your mail here are some links: http://www.windowsnetworking.com/articles_tutorials/Understanding-SMTP-Protocol.html http://cr.yp.to/smtp.html Google 'smtp protocol' for more info |
|||
![]() |
|
LocoDelAssembly
There is no need for dnsstuff, using http://msdn2.microsoft.com/en-us/library/ms682016.aspx with wType DNS_TYPE_MX ($000F) should work.
http://msdn2.microsoft.com/en-us/library/ms682085.aspx <- Complete reference |
|||
![]() |
|
farrier
Hp,
Look at: http://www.masm32.com/board/index.php?topic=6578.0 MASM code, and also shows sending an attachment, but this is a simple way to send mail; if MAPI is available on your machine. hth, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
![]() |
|
farrier
Attached is a quick example using MAPI. It sends a small message and sends the asm source file as an attachment. Works on my XP Pro SP2. I know it should be able to send without any user interaction, but ever time I ran it, my default email client--Thunderbird--popped up with all the correct information. I simply had to click on send. I'll try to see if I can eliminate this.
farrier
_________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||||||||||
![]() |
|
dead_body
in russian:
http://www.wasm.ru/article.php?article=simplesmtp but there is an example(link to example) in fasm. |
|||
![]() |
|
asmrox
Quote: is it possible to send a simple text e-mail with assembler? assembler is a language, not a platform. You cant do that. But you can use assembler to execute system functions (mostly ws2_32.dll in win) wich will connect smtp server and speak to it (how? read smtp rfc or wireshark mails sending from ur smtp client). |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.