Archive

Archive for the ‘email’ Category

PHP:: How to split a large array in small pieces :: or split array into chunks

April 29th, 2009 R Arun Raj 1 comment

Hello All,
Yesterday i was searching for a solution to split large array into small pieces. Suddenly i noticed the that php have a built in function to split array into small pieces. It was very surprise to me ..
Here it is
Function : array array_chunk ( array $input , int $size [, bool $preserve_keys= false ] )

< ?php
$input_array = array('a', 'b', 'c', 'd', 'e');
print_r(array_chunk($input_array, 2));
print_r(array_chunk($input_array, 2, true));
?>

The output will be like this : –

Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[0] => c
[1] => d
)

[2] => Array
(
[0] => e
)

)
Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[2] => c
[3] => d
)

[2] => Array
(
[4] => e
)

)

Have fun Cheers

Categories: PHP, email Tags: , ,

How to add cron job or scheduled task in windows server / parallel plesk control panel

April 27th, 2009 R Arun Raj No comments

Select scheduled Task from parallel plesk control panel
1. Select Scheduled Task from parallel plesk control panel.
[ad#sidebar320280]
2. Add new Task

Select Sheduled Task From the parallel presk

Select Sheduled Task From the parallel presk

Select Timings
3. Give the correct path to script program as shown in the figure.

Categories: Project Managament, Troubleshoot, email Tags:

Google adding more application in Gmail. But it will reduce the performance: Gmail Problems

April 1st, 2009 R Arun Raj No comments

Google Introduces youtube previews ,picasaw…  in gmail labs.

Enable your labs in gmail settings and experience it. I strongly suggest google that please do not add more app on gmail. It will reduce the performance of gmail. It’s facing lot of problems right now . Using Gmail with Internet Explorer is really a tragedy.

Categories: Misk, Projects, email Tags: , ,

How to configure your system as webserver ? or Port forwarding

March 24th, 2009 R Arun Raj 1 comment

Hello Guys,

It is very simple to make your own webserver.

Requirements.

1.   Static IP address

2.  Any webserver software (IIS, Apache,Tomcat any webserver )

3. Domain name with Managed DNS Service ( if you wish to have one domain name other wise you can use your ip address )

Simple Procedure.

1. Install you webserver on your machine.

2. Configure your modem.

1. Type 192.168.1.1

2. Provide default username and password (admin/admin)

3. Goto advanced Settings as shown in the figure

4. Add NAT virtual servers.

5. Save and reboot your system.

3. Now your server is ready . You can browse your computer by simply typing your IP Address in the address bar.

4. Add domain name

1.  forward www/ @  to your IP address .

5. Now your webserver ready..

have fun

cheers.

What is Web Forgery or phishing Attack ?

December 8th, 2008 R Arun Raj No comments

Web Forgery (also known as “Phishing”) is a form of identity theft that occurs when a malicious Web site impersonates a legitimate one in order to trick you into giving up sensitive information such as passwords, account details, or credit card numbers. Phishing attacks usually come from email messages that attempt to lure the recipient into updating their personal information on fake, but very real looking, Web sites. More information on phishing can be found at the Anti-Phishing Working Group, and there are a number of examples and resources available at the Wikipedia Phishing page.

One Email I got ..

We would like to inform you that your Chase online banking is currenty inactive. To avoid losing important information, scheduled payments and payees, you must reactivate your Chase online banking now:

Be sure to log in securely by opening the following affiliate Chase website:
http://static-71-116-13-101.sangtx.dsl-w.verizon.net/chase/security/update/billing/ssh/www.chase.org/

Thank you for banking with Chase.

Regards,
Chase Customer Center

——————————

——
You are receiving this email notification because this email address is listed as the administrative contact email for your Chase online banking.
————————————
© 2008 JPMorgan Chase & Co.
End
That website is really like the website of https://www.chase.com (Bank).. but its a fake one
Normally a user click on the link and provide his credit card details.
His CC details will explore to the owner of the mail..
thats the trick.
How we can identify  these type of phishing mails ?
Categories: email, security, virus Tags: , ,

How to send Emails From PHP using PHPMailer

June 8th, 2008 R Arun Raj 2 comments

PHP email transport class featuring file attachments, SMTP servers, CCs, BCCs, HTML messages, word wrap, and more. Sends email via sendmail, PHP mail(), QMail, or with SMTP.

phpmailer_v21download or download it from sourceforge.net

http://sourceforge.net/project/showfiles.php?group_id=26031

put these files in you website root and run the below code to send E mails.

1. class.phpmailer.php

2. class.pop3.php

3. class.smtp.php
<?php
require(“class.phpmailer.php”);
$mail = new phpmailer();
$mail->From     = “info@xyz.com”; //from Email Id
$mail->FromName = “yourname”;  // from name
$mail->Host     = “mail.xyz.com;”; // your websites mail
$mail->Mailer   = “smtp”;

// HTML body
$body  = “Hello <font size=\”4\”>arun</font>, <p>”;
$body .= “<i>Your</i> personal photograph to this message.<p>”;
$body .= “Sincerely, <br>”;
$body .= “phpmailer List manager”;

// Plain text body (for mail clients that cannot read HTML)
$text_body  = “Hello ” . “, \n\n”;
$text_body .= “Your personal photograph to this message.\n\n”;
$text_body .= “Sincerely, \n”;
$text_body .= “phpmailer List manager”;

$mail->Body    = $body;
$mail->AltBody = $text_body;
$mail->AddAddress(‘to@mail.com’,'Arun Raj R’);
$mail->AddStringAttachment(“file”, “YourPhoto.jpg”);

if(!$mail->Send())
echo “There has been a mail error sending to <br>”;

// Clear all addresses and attachments for next loop
$mail->ClearAddresses();
$mail->ClearAttachments();

?>