SendMail.zip

How To Send An E-mail By Code

1,120

Use this function to send an e-mail through your program.You must have the component TNMSMTP from FastNet tools. This component is included in Delphi 4-5 Professional and Enterprise .

Send An Email Using A Bean

1,018

This JSP snippets shows how to send an email using a reuasable javabean.SendMailBean.java. InputForm.jsp .

Gmail requires all senders to authenticate with either SPF or DKIM.

681

To successfully send emails to Gmail (and many other email providers),you need to authenticate your emails using SPF (Sender Policy Framework) and / or DKIM (DomainKeys Identified Mail).These authentication methods help verify that the email is coming from...

Bash script to install postfix and sasl for sending email

1,198

In CentOS 7,Postfix is a powerful and widely-used Mail Transfer Agent (MTA).It's a cornerstone of email infrastructure,responsible for sending and receiving emails on your server.Here's a breakdown of Postfix in a CentOS 7 context:What Postfix Does::Sendin...

Why SPF and DKIM Are Essential for Linux Email Servers?

Why SPF and DKIM Are Essential for Linux Email Servers?

44

When running an email server on a Linux platform such as AlmaLinux,outgoing messages sent without domain authentication mechanisms are highly likely to be marked as spam or rejected outright by major email providers (such as Gmail,Yahoo,and Outlook).SPF an...

Word counting source program based on MapReduce framework

692

The MapReduce framework operates exclusively on  pairs, that is, the framework views the input to the job as a set of paris and produces a set of pairs as the output of the job, conceivably of different types. Below is the simple application that...

How to set and get sessions on JSP code ?

1,040

Here's the simple example to set and put sessions.save_my_name,jsp.save_my_name.jsp saves the user's name in the session,and puts a link to another page,next_page.jsp.next_page.jsp shows how to retrieve the saved name.next_page.jsp.

How to add a declaration on JSP code ?

1,128

If you have developed C or C++ program,you may know below examples. Above code have no bug,but no code will be compiled,because it's all declarations.In JSP,you can make declarations as well.In some documents,a declarations is also called as remark.To add ...

How to include file in JSP ?

1,254

Just like ASP,or PHP,JSP is also allow to include for programmer by include function.Here's the simple example.

How to print out text strings on HTML directly ?

907

In JSP, you can print out text strings by out.println(). Here's the example. <%    / / This scriptlet declares and initializes "date"    System.out.println( "Evaluating date now" );    java.util.Date date = new ...

How to include a file with error reporting ?

433

Sometimes you want to be able to give some feedback if a PHP include has failed.Here is a version using the fopen command,which can search the include path. Here's another example much better simple than the above.As you can see,just add @ in front of the ...

PHP form handling example in single page

425

This example shows a very simple form together with the form handling process on a single page. Below is another approach based on Heredoc I like:

How to get Referral URL ?

2,082

Grabs the referring URL - get the HTTP_REFERER and save it to a variable. code snippet: .While not inherently intended for API security,the HTTP_REFERER header can be a valuable tool for implementing an API that restricts access to certain resources based ...

How to convert formatted date time string to datetime?

450

Whatever the formatted string is,strtotime() function convert the formatted date time string to datetime.Following example shows the simple reference can convert date time string whatever the formatted input is.

Adding and Subtracting Time

562

The time () function generates a long string of numbers representing how many seconds have passed since January 1, 1970. It is possible to add and subtract time by adding and subtracting seconds.

The three simplest regular expressions you will use in PHP

587

The three most basic searches using regular expressions are searching for the strings start, the strings end, or for characters it contains. We can do these using the following symbols:^ indicates the string starts with the specified characters, so "^strcp...

Number Format

494

In this article we'll make number format like 0001, 0002, 0003 in stead of 1, 2 ,3. It's very easy to do this for your counter, category or product ID. etc.

A Function Returns Large Random Numbers

431

This basically randomly pick a number between the min and max values. This is made because the rand() and mt_rand() function can not accept numbers larger than 2^31 or 2^63,depend on your processor and complier.

Function AccountCryptPassword($password,$salt)

736

Encryption and password account accessFunction AccountCryptPassword($password,$salt) {  if($salt=="")  {   srand(time());   $random=rand();   $itoa64=". / 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; ...

Cardinal Endings

502

This php based script will find numbers and give them a cardinal ending.This can be useful for displaying rankings or results of a competition.The script is easy to install and use .Explanation::addOrdinalSuffix($number): This function adds the appropriate...

URL Rewriter PHP

624

URL Rewriter PHP is a short code that can be used to rewrite dynamic PHP urls as URL's that link to static htmlpages.Increases search engine rankings by creating a static system of page linking as well as making all content available. Associated Data for U...