i would like to share my little email dll and its sourcecode:

there is only one export which can be used:

comment */


API info:

SendMail(
LPTSTR pSMPT, // Adress of buffer of SMPT server name
DWORD pPORT, // Portnumber (default=25)
LPTSTR pLOGIN_NAME // SMPT login name --> Authent trough RFC 2554
LPTSTR pLOGIN_PASSWORD // SMPT login password ...
LPTSTR pFROM // your email adress
LPTSTR pTO // the target email adress
LPTSTR pSUBJECT // Subject of the email
LPTSTR pMESSAGE // The message text
LPTSTR pATTACHMENT // the full path of an attachment (max 5MB);
// can also be NULL
)



;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
; MASM EXAMPLE CODE
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

.code

invoke SendMail,SADD ("mail.gmx.net"), ;SMPT Server
25, ;Port (25==smpt)
SADD ("my.email@gmx.net"), ;SMPT login name
SADD ("12345678"), ;SMPT password
SADD ("my.email@gmx.net"), ;from:
SADD ("to.email@gmx.net"), ;to:
SADD ("I am the subject"), ;subject
SADD ("Hello world"), ;message
SADD ("C:\test.txt") ;attachment path ; NULL==no attachment
.IF eax==1
invoke MessageBoxA,0,SADD ("Email send successfully"),0,0
.ELSE
invoke MessageBoxA,0,SADD ("Sending failed"),0,0
.ENDIF


*/


you can download it here:
http://free.pages.at/d2k2/downloads/masm_mail_dll.rar
or here
http://diablo2oo2.di.funpic.de/downloads/masm_mail_dll.rar
Posted on 2004-10-01 09:36:03 by diablo2oo2
Hi diablo2oo2,

Thanks for your nice work, but this code doesn't work, I receive the message saying "sending failed"


invoke SendMail,SADD ("hotmail.com"), ;SMPT Server
25, ;Port (25==smpt)
SADD ("vortex@hotmail.com"), ;SMPT login name
SADD ("123456"), ;SMPT password
SADD ("vortex@hotmail.com"), ;from:
SADD ("myfriend@yahoo.com"), ;to:
SADD ("I am the subject"), ;subject
SADD ("Hello world"), ;message
0 ;attachment path ; NULL==no attachment
.IF eax==1
invoke MessageBoxA,0,SADD ("Email send successfully"),0,0
.ELSE
invoke MessageBoxA,0,SADD ("Sending failed"),0,0
.ENDIF
Posted on 2004-10-01 12:43:51 by Vortex
sure it doesnt work with hotmail. hotmail doesnt have smpt server :wink:

http://www.patshaping.de/hilfen_ta/pop3_smtp.htm
Posted on 2004-10-01 13:34:31 by diablo2oo2
Sorry for my question, are there smtp based free e.mail services?
Posted on 2004-10-01 13:54:13 by Vortex
yes, most services has smtp support. hotmail is an exception.
i use gmx
Posted on 2004-10-01 14:14:22 by diablo2oo2
If you would give the name of other smpt based e.mail services?
Posted on 2004-10-01 14:22:20 by Vortex
lycos
yahoo
gmx
Posted on 2004-10-01 14:55:51 by diablo2oo2
This code seems to work fine:


invoke SendMail,SADD ("smtp.mail.yahoo.com"), ;SMPT Server


I sended an e.mail to one of my e.mail accounts, but I didn't receive nothing. :) What can be the problem?
Posted on 2004-10-01 15:10:47 by Vortex
I get the message,

Email send successfully


with no any success. The recipient doesn't receive any e.mail. :(
Posted on 2004-10-01 17:24:45 by Vortex
i just read that yahoo give you only then SMTP and POP3 acces when you register at "Yahoo Direct!" . SHit. i am happy to have a good email provider which give me access via pop3 and smtp.

Hey Vortex. search a good email provider first!!!
Posted on 2004-10-01 18:39:16 by diablo2oo2
Hey Vortex. search a good email provider first!!!


I tried also yahoo e.mai plus lycosl, your code gives the "sucess" message but it doesn't send any e.mail
Posted on 2004-10-02 04:47:07 by Vortex