How to use javascript replace() method

In Javascript, there is a handy function replace() for String Object. We can easily replace the sub-string with new string and also regular expression in available. Replace may be case-sensitive or case insensitive. Also global replacement can be obtained using this function. Syntax string.replace(regex/substring,replacetext) replace() function takes two parameters. regex/substring : Regular expression or a … (more)

How to send mail with attachments using PHPMailer

PHP has default mail() function for sending mail. We can easily send mail using this function passing few parameters. But there is one nice class named ‘PHPMailer’ extending that function with lots of attractive and useful features. This PHPMailer, PHP email transport class features file attachments, SMTP servers, CCs, BCCs, HTML messages, word wrap, and more. Sends email via sendmail, PHP … (more)