Posts

Showing posts from December, 2014

STRING / PCHAR / CHAR in Delphi

STRING / PCHAR / CHAR in Delphi --------------------------------------------- Char ------- Char is a data type that holds only one character as value. Ansi Characters are used to store single byte ansi characters. Unicode characters are used to store 2byte characters that is to cupport foreign languages like chinese, japanese etc. var    chr1 : Char;        // Holds a single character, alphabet    chr2 : WideChar;    // Holds a single character, International alphabet // for Unicode support    chr3 : AnsiChar;    // Holds a single character, alphabet NON-PRINTING OR CONTROL CHARACTERS, NOT USED IN THIS CLASS, INCLUDED FOR INTEREST ONLY   0 Null (nothing)  7 Bell  8 Back space  9 Tab 10 Line feed (new line at present column) 13 Carriage return (return to beginning of line) 26 End of file 27 [Esc] (Escape key) ASCII CHARACTER CODES 32 [space]   64 @ ...

How to send Email in Delphi?

Today in most of software program it is required to send mail to others with attached data. As some time we need to update clients about their account details, status or any other information through mail. So Delphi provides so many easiest ways to send mail from our Delphi application. I have collected some of ways which are very useful for Delphi developers. In Delphi we don't required any third party components to send mails. We can send mail to single or group of peoples with CC, BCC and attachments. Even we can send HTML mails from Delphi. So here are the ways... 1. ShellExecute Sends Email using default mail client software installed on user's system. But it will not work with attachment for every mail client. And you have to use ShellAPI  unit in uses list. ShellExecute(Self.Handle,              nil,              'mailto:' +              'jiten.g.s...