Send Mail to gmail account with perl Installation of Send::SMTP::Gmail: In order to send mail via Gmail, you need to have TLS verification. Having TLS and Installation of perl package Send::SMTP::Gmail is covered in brief. For Ubuntu: sudo apt-get install openssl libnet-ssleay-perl libcrypt-ssleay-perl For RedHat/Fedora/CentOs: yum install perl-IO-Socket-SSL perl-Digest-HMAC perl-TermReadKey perl-MIME-Lite perl-File-LibMagic perl-IO-Socket-INET6 perl-Net-SSLeay perl-Crypt-SSLeay perl-Email-Send Usages: Following method is used to send mail and attachment in it. Please read it and post your comments. sub sendMail { use Email::Send::SMTP::Gmail; my $to=shift; my $cc=shift; my $subject=shift; my $body=shift; ...
Start mysql in Ubuntu without having root privilege:- If you want to use mysql in Ubutu you can use following command which will use a root level privilege $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 147 Server version: 5.1.49-1ubuntu8.1-log (Ubuntu) When it demands to enter the password fill it with 'root' and hopefully you'll get logged in . Last_insert_id():- (with no argument) returns the first automatically generated value that was set for an AUTO_INCREMENT column by the most recently executed INSERT statement to affect such a column. For example, after inserting a row that generates an AUTO_INCREMENT value, you can get the value like this: mysql> SELECT LAST_INSERT_ID(); Database():- Database() method returns the current selected database and you can use it in your communication and your queries. The syntax is : mysql>select Database (); User():- It a...