flat assembler
Message board for the users of flat assembler.
Index
> Windows > Send an e-mail with FASM |
Author |
|
Hp 20 May 2007, 18:03
Hello,
is it possible to send a simple text e-mail with assembler? Where can I learn about this? |
|||
20 May 2007, 18:03 |
|
slacker116 20 May 2007, 20:40
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 |
|||
20 May 2007, 20:40 |
|
LocoDelAssembly 20 May 2007, 20:54
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 |
|||
20 May 2007, 20:54 |
|
farrier 20 May 2007, 21:28
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! |
|||
20 May 2007, 21:28 |
|
farrier 21 May 2007, 05:25
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! |
|||||||||||
21 May 2007, 05:25 |
|
dead_body 23 May 2007, 12:02
in russian:
http://www.wasm.ru/article.php?article=simplesmtp but there is an example(link to example) in fasm. |
|||
23 May 2007, 12:02 |
|
asmrox 13 Feb 2008, 14:06
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). |
|||
13 Feb 2008, 14:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.