Archive

Posts Tagged ‘email’

Probelm with sending email via smtp to google app

March 8th, 2009 R Arun Raj No comments

I am facing some problem with sending email to google app via smtp. The problem is that when i try to send email to say yourname@yourdomain.com hosted in google app. Then mail not delivering to that particular emailid. But all others in the same domain will get the email. i Don’t know what is the hell with this .

Categories: Troubleshoot Tags: , ,

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: , ,

Simple Mail From PHP

August 3rd, 2008 R Arun Raj 1 comment

Simple Email Program

<?php
$to = ‘nobody@example.com’;
$subject = ‘the subject’;
$message = ‘hello’;
$headers = ‘From: webmaster@example.com’ . “\r\n” .
‘Reply-To: webmaster@example.com’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();

mail($to, $subject, $message, $headers);
?>

Email With MIME Content

<?php
// multiple recipients
$to = ‘aidan@example.com’ . ‘, ‘; // note the comma
$to .= ‘wez@example.com’;

// subject
$subject = ‘Birthday Reminders for August’;

// message
$message = ‘
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
‘;

// To send HTML mail, the Content-type header must be set
$headers = ‘MIME-Version: 1.0′ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1′ . “\r\n”;

// Additional headers
$headers .= ‘To: Mary <mary@example.com>, Kelly <kelly@example.com>’ . “\r\n”;
$headers .= ‘From: Birthday Reminder <birthday@example.com>’ . “\r\n”;
$headers .= ‘Cc: birthdayarchive@example.com’ . “\r\n”;
$headers .= ‘Bcc: birthdaycheck@example.com’ . “\r\n”;

// Mail it
mail($to, $subject, $message, $headers);
?>

Categories: PHP, Programming 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();

?>

How to validate Email Address Using Javascript

May 23rd, 2008 R Arun Raj No comments

<script language=”javascript” type=”text/javascript”>
function checkemail(id) {
var email = document.getElementById(id);
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert(‘Please provide a valid email address’);
email.focus;
return false;
}
return true;
}
</script>