The MASM Forum Archive 2004 to 2012

Project Support Forums => The GeneSys Development System => Topic started by: PBrennick on July 18, 2006, 11:10:29 PM

Title: Assembly Examples
Post by: PBrennick on July 18, 2006, 11:10:29 PM
This topic will be used for people who want to contribute examples written in Assembly.

Paul
Title: Re: Assembly Examples
Post by: 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 (http://x86assembly.codegurus.org/SendMail.zip).  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
Title: Re: Assembly Examples
Post by: ToutEnMasm on July 22, 2006, 05:31:02 PM

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
Title: Re: Assembly Examples
Post by: PBrennick on July 23, 2006, 02:25:23 AM
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]
Title: Re: Assembly Examples
Post by: skywalker on July 23, 2006, 10:56:01 PM
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 (http://x86assembly.codegurus.org/SendMail.zip).  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.

Title: Re: Assembly Examples
Post by: PBrennick on July 23, 2006, 11:12:56 PM
skywalker,
It would only be necessay to add another section to the SendMail.ini

Paul
Title: Re: Assembly Examples
Post by: skywalker on July 23, 2006, 11:30:00 PM
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