Categories
PHP Wordpress

WordPress : Send Mail to Admin when user comes to 404 page

Sending mails to admin is very easy in wordpress by using a inbuild wordpress function wp_mail.
But if you want to send a mail to wordpress admin when user comes to 404 page then you can use below simple code.

Sending mail when user comes to 404 page in wordpress
This code can be added in your wordpress theme’s functions.php file or in custom plugin. You need to write a custom plugin for the same. Please let me know if you need any help to write a custom plugin. As i am using a custom plugin for my wordpress websites and that custom plugin have lots of functions and wordpress hooks that makes my life easy and simple.

Below script checks the referring link of your website, and then sends an email to the webmaster/wordpress admin.

if (!function_exists('email_admin')){
	function email_admin(){
		$message = "";
		if(isset($_SERVER['HTTP_REFERER'])){
			$message .= "User came from: ".$_SERVER['HTTP_REFERER']."\r\n";
		}
		$ipAddress 		= 	$_SERVER["REMOTE_ADDR"];
		if($ipAddress!=''){
			$message .= "Track User Data: http://www.ip-adress.com/ip_tracer/".$ipAddress."\r\n";
		}
		$browser 		= 	$_SERVER['HTTP_USER_AGENT'];
		if($browser!=''){
			$message .= "Browser: ".$browser."\r\n";
		}
		$message.="Page URL they tried to access was: ".home_url().$_SERVER['REQUEST_URI']."\r\n";
		$admin_email 	= 	get_option('admin_email');
		$subject		=	'404 Error at '. home_url();
		//echo $subject;	echo $message; die;
		@wp_mail($admin_email,$subject,$message);
	}
	
	function mail_me_errors(){
		global $wp_query;
		if ($wp_query->is_404){
			email_admin();
		}
	}
	add_action('get_header', 'mail_me_errors');
}
Categories
Useful Websites and Tools

How to Send Emails In the Future Automatically

With several services popping up everyday, there are several ways in which you can send emails to yourself or others in the future, few of the reasons to do that would include sending yourself reminders (we have a talked about a better way to do that with Google calendar) or sending birthday or anniversary wishes to friends.

In this post we will introduce you to 11 services that allow you to send emails in the future, choose the one you like and start setting up those emails for forgotten birthdays.

LetterMeLater – This is probably one of the most advanced future email service, providing users with the ability to attach files, setup recurring emails, import contacts and more.

EternityMessage – Has a nice interface with ability to compose HTML messages with images and more, that you can save as drafts or send into the future.

l8r – l8r is a free email service that allows you to send email in the future, they also send you reminders about emails that are going to be sent in near future.

FutureMail – Allows you to send emails in the future and view them as Rss Feeds.

FutureMe – Provides a simple interface to email yourself or others in the future.

EmailFuture – Another futuristic email service provider with ability to send emails 10 years into the future.

Email Capsule – Another simple service providing you with the ability to send mails in the future.

MailFreezr – A virtual freezer for your emails, with the ability to stall your emails for 1-100 years, they do not provide date based future emails.

WhenSend – A simple, no hassle based service to send emails in the future.

YouScribbleYou – Allows you to setup recurring emails along with the ability to send emails to 2 different emails.

Bonus Service

HitMeLater – This service forwards any email you send to them in the future, for example if you send a email to 24@hitmelater.com, they will forward it back to you after 24 hours.

Which is your favorite future email service? Are you using something which is not featured in this list? Do let us know through your comments.

Categories
Career and Success

21 Best Advice for a Good life

As you know that in everyone’s life there are so many things that they want to share with other. So today i want to share the best advice that i think will be useful in your life.

1. Give people more than they expect and do it cheerfully.

2. Marry a man/woman you love to talk to. As you get older, their conversational skills will be as important as any other.

3. Don’t believe all you hear, spend all you have or sleep all you want.

4. When you say, ‘I love you,’ mean it.

5. When you say, ‘I’m sorry,’ look the person in the eye.

6. Be engaged at least six months before you get married.

7. Believe in love at first sight.

8. Never laugh at anyone’s dreams. People who don’t have dreams don’t have much.

9. Love deeply and passionately. You might get hurt but it’s the only way to live life completely.

10. In disagreements, fight fairly. No name calling.

11. Don’t judge people by their relatives.

12. Talk slowly but think quickly.

13. When someone asks you a question you don’t want to answer, smile and ask, ‘Why do you want to know?’ 🙂

14. Remember that great love and great achievements involve great risk.

15. Say ‘bless you’ when you hear someone sneeze.

16. When you lose, don’t lose the lesson.

17. Remember the three R’s: Respect for self; Respect for others; and Responsibility for all your actions.

18. Don’t let a little dispute injure a great friendship.

19. When you realize you’ve made a mistake, take immediate steps to correct it.

20. Smile when picking up the phone. The caller will hear it in your voice.

21. Spend some time alone. This will bring some peace in your life.

Categories
Career and Success

5 Better Resume Writing Tips for Freshers and Professionals

Writing a Good Resume is not a tough task. Let me help you how can you create or modify your own resume in a best way.

In preparing our Resume we should follow some important steps which should be placed in. The sections which has been put in our Resume should contain the perfect information regarding that particular categories. By looking at that Resume one should know approximately every thing about that person whom that Resume belongs to. The Resume must be clean and Original one. Don’t use photo copies. It will put bad impression at Interviewing time.
Here are the sections which has to be put in our Resume.

1. Contact section: Who are you and how can you be reached?
2. Objective statement: What do you want to do?
3. Education section: What have you learned?
4. Experience/Employment section: What can you do? What have you done?
5. Professional activities and accomplishments: How have you been recognized?
6. Miscellaneous: What else do they want to know about you?

These above mentioned categories are main things in Resume. Under these every sections you must keep proper information regarding that particular one. And sequence these sections according to what is important to the employer.

Here are some tips which should include in particular section.

1. Contact Information
In this section you should include your name , Address including street and house number and your contact number.

2. Career/Job Objective
This is recommended only for recent graduates or entry level personnel. Experience and professional job seekers rarely include it. This component of the resume can be very challenging to write. The purpose of the objective statement is to inform the reader of your career goals and qualifications. The statement should be written specifically enough to let the reader know that you have a focus to your job search. If you are considering a variety of objectives, you may want to relay the relevant objective in an accompanying cover letter.

3. Educational Qualifications
This section is most effective when you have experiences from your education that are impressive and/or directly relate to your objective. Adding this section is useful when you have developed skills and specific knowledge through your education rather than work experience. This section can be used to highlight coursework, research, or special knowledge that complements your objective. This information is useful in a resume of entry level candidates and recent graduates.

4. Employment or Experience Summary
A brief summary of qualifications can condense an extensive background by emphasizing experiences and accomplishments in brief phrases. The qualifications summary is accomplishment-oriented and provides an overview of your work experience. A summary is most appropriated for someone with substantial experience, for someone who is changing careers and wants to demonstrate transferable skills, or for someone with an eclectic background.

5. Professional Activities and Accomplishments
This part of your resume offers you the opportunity to provide insight into your career development. You should be selective and complete, listing such items as memberships in professional associations and offices held, professional registrations, honors received, and major articles or publications you have written. Do not list every article or every speech you may have given or every conference you have attended. Emphasize quality – this section of the resume should help you to demonstrate you are current and active in your profession.

6. Miscellaneous
This section covers the remaining things like hobbies, interests , strengths and goals etc. These are the main tips which we must concentrate on.