i would like to share my little email dll and its sourcecode:
there is only one export which can be used:
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
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
Hi diablo2oo2,
Thanks for your nice work, but this code doesn't work, I receive the message saying "sending failed"
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
sure it doesnt work with hotmail. hotmail doesnt have smpt server :wink:
http://www.patshaping.de/hilfen_ta/pop3_smtp.htm
http://www.patshaping.de/hilfen_ta/pop3_smtp.htm
Sorry for my question, are there smtp based free e.mail services?
yes, most services has smtp support. hotmail is an exception.
i use gmx
i use gmx
If you would give the name of other smpt based e.mail services?
lycos
yahoo
gmx
yahoo
gmx
This code seems to work fine:
I sended an e.mail to one of my e.mail accounts, but I didn't receive nothing. :) What can be the problem?
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?
I get the message,
Email send successfully
with no any success. The recipient doesn't receive any e.mail. :(
Email send successfully
with no any success. The recipient doesn't receive any e.mail. :(
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!!!
Hey Vortex. search a good email provider first!!!
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