News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Assembly Examples

Started by PBrennick, July 18, 2006, 11:10:29 PM

Previous topic - Next topic

PBrennick

This topic will be used for people who want to contribute examples written in Assembly.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

PBrennick

SamiP has contributed an example of a SendMail application.  It can be used by people who have the ability to send mail over SMTP without authentication.  The example can be downloaded from here.  Created a folder called SendMail in the Examples folder and copy the files to it.  Once that is done you can configure the SendMail.ini file so it will fill in a lot of the required fields.

Edit the SendMail.ini file and make the following changes.

[Settings]
SMTPServer=                <----  put the address of your SMTP Server here, smtp.charter.net is mine
SMTPServerPort=25       <----  this probably will not change
DisplayName=                <----  put your real name here
FromAddress=               <----  put your email address here

Save the file and run the executable.  You will only have to fill in 3 more fields, now.  The address of the recipient, the subject and the message.  Now you are ready to send a message.  Just click the Send button and you are good to go.

What is coming next?  I will add the ability to send an attachment by utiliizing MIME encoding.  I will port my version of Joe into the project so it will have read mail capability.  At that time, it will become an email program.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

ToutEnMasm


There is an error on the protect sample.
There isn't .def file and the build.bat delete it.
It's not very hard to rewrite it.
QuoteLIBRARY protect
EXPORTS CPlApplet
ToutEnMasm

PBrennick

ToutEnMasm,
Thank you for finding this.  This is, indeed, the time to find these type of errors; while the project is young.  There was an error in the batch file that allowed the DEF file to be deleted after the DLL was made.  So when I ran it, tested and found it worked, I moved on.  Isn't that funny?  Probably not.  Anyway, I am attaching the Example and will add the Example Package as a separated Download in the Repository and Mirror Topic.

The contents of Protect.def are:
QuoteLIBRARY Protect
EXPORTS CPlApplet

If you decide to roll your own, make sure you remove the line from near the end of Protect.bat that deletes Protect.def,
Quoteif exist Protect.def del Protect.def

Paul


[attachment deleted by admin]
The GeneSys Project is available from:
The Repository or My crappy website

skywalker

Quote from: PBrennick on July 19, 2006, 12:35:19 AM
SamiP has contributed an example of a SendMail application.  It can be used by people who have the ability to send mail over SMTP without authentication.  The example can be downloaded from here.  Created a folder called SendMail in the Examples folder and copy the files to it.  Once that is done you can configure the SendMail.ini file so it will fill in a lot of the required fields.


Would it be hard to modify it to have a list of recipients in an .ini file ? I have a situation now where that would come in real handy.
I'll look over the code when I have some free time.

Thanks.


PBrennick

skywalker,
It would only be necessay to add another section to the SendMail.ini

Paul
The GeneSys Project is available from:
The Repository or My crappy website

skywalker

Ok, now I need to find out how to get the resource file(s) and then I'll add the new section I'll need.

Andy