little dll for sending email...

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Hello James,

The problem with date is you never get the format you want when you have to deal with. The mask method allow to quickly format the date in your own. And the reverse way works the same (ParseDate()). For example, if you have to retrieve dates in a log file which are in dd/mm/yy and another in mm/dd/yyyy format, with standard method it's a bit the hell. Here you just specify the mask and all is done automatically. But I agree it's not that easy.. I just think it worth the few time of learning :). Thanks for your snippet BTW !

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

One way would be to specify the most used date formats as PB constants for the really lazy ones benefit.. so you could just do like this:
FormatDate(#PB_Date_ymd, date())

or something like that..
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

it still says "not found" at the link above for: dbmail.dll

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kale.

try here:
http://kingdazza.netfirms.com/dbmail.zip

--Kale

New to PureBasic and falling in Love! :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.
Originally posted by Kale

try here:http://kingdazza.netfirms.com/dbmail.zip
--KaleNew to PureBasic and falling in Love! :)
GOT IT!Many thanks! --Joe

elecTRONics DOCtor
{registeredPB}P150 32Mb w98/DOS/Linux NO DirX NO IE :wink:
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Kale.

maybe using the code above another better coded mail.dll can be produced? i may have a go later :)

--Kale

New to PureBasic and falling in Love! :)
Post Reply