Send email through wp_mail in html format with wordpress

If you have mail server then you should use the wp_mail wordpress plugin. Information about Send email through wp_mail in html format with wordpress is easy. Emails are very important feature for now in the world so you need to understand better the wordpress mail functionality.

In wordpress we use the wp_mail function for sending email. Following parameters we use for wp_mail. WP developers wants to send email through wordpress.

Send email through wp_mail in html format with wordpress

Here is some brief and introduction about wp_mail method of wordpress. wordpress itself uses the PHPmailer for sending emails.


Parameters

$to
    (string or array) (required) The intended recipient(s). Multiple recipients may be specified using an array or a comma-separated string.

$subject
    (string) (required) The subject of the message.

$message
    (string) (required) Message content.

$headers
    (string or array) (optional) Mail headers to send with the message. (advanced)

$attachments
    (string or array) (optional) Files to attach: a single filename, an array of filenames, or a newline-delimited string list of multiple filenames. (advanced)

Simple example:

[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]

<?php
   $attachments = array(WP_CONTENT_DIR . '/uploads/file_to_attach.zip');
   $headers = 'From: My Name <myname@mydomain.com>' . "\r\n";
   wp_mail('test@test.com', 'subject', 'message', $headers, $attachments);
?>

[/viral-lock]

Send email through wp_mail in html format with wordpress
Send email through wp_mail in html format with wordpress

We can use this code for contact form or in functions.php file

For html format email from wordpress. we just need to add following line in functions.php file.

add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));

Sending HTML email has risks. It could be caught in spam filters. The client may not support HTML formatting (although that’s rare). The client may disable email HTML from using javascript, CSS or grabbing remote assets like images.

disadvantages of social networking in the workplace

We written about, disadvantages of social networking in the workplace, Social networking over laptops at the workplace increased by 14 per cent in Germany, while it jumped by 10 per cent in the US.

In 2010, 29 per cent of laptop users versus 18 per cent of desktop users surveyed said they frequented these sites at work.

disadvantages of social networking in the workplace

 

disadvantages of social networking in the workplace
disadvantages of social networking in the workplace

For all the countries surveyed this year, laptop users who can connect to the Internet outside of the company network are more likely to share confidential information via instant messenger, web mail and social media applications than those who are always connected to a company’s network.

The percentage of employees visiting social networking sites at the workplace globally rose to 24 per cent this year from just 18 per cent in 2008, even as more companies are restricting access to such websites, a survey said.

According to a survey by global Internet content security provider Trend Micro, employees are finding ways around security roadblocks to make social networking an integral part of office-life around the world.

Social networking at workplaces globally has “steadily risen” to 24 per cent in 2010 from 19 per cent in 2008, the survey of over 1,600 full-time workers at various firms in the US, UK, Germany and Japan, revealed.

The largest increase in social networking over corporate Internet connections during the last two years was among employees in Germany, which saw a more than 10 per cent jump, and the UK, with a six per cent rise.

The survey also found that laptop users are much more likely than desktop users to visit social networking sites.

disadvantages of social networking in the workplace
disadvantages of social networking in the workplace

Globally, social networking usage via laptops went up by eight per cent from 2008 to 2010, the report stated.

Share Thunderbird Between Windows and Linux

Many people are using Thunderbird as a email client.

I am using the Windows xp and Fedora 8 (Dual boot OS) on my System. Two years back i was using Microsoft office Outlook for viewing the emails.

Later on i need to work on Linux also. For email check i always i need to go or restart the system and start the Outlook.

Then i moved to Thunderbird which is Open source and free. Important thing is Thunderbird works on Linux and windows both.

My Tip :Share Thunderbird Between Windows and Linux

I installed the Thunderbird for Windows. First save all settings. Then follow my steps:

1. Open Thunderbird ->Click on Local Folders button(Top left button)

2. Choose or click on-> View settings for this account

3. Choose or click on-> Local Folders

4. First go that location by browsing the explorer and copy the folder and paste into your d:  drive.

5. Restart the thunderbird.

thunderbird

You need installed Samba windows share program in your Linux OS. Samba share is the free linux utility for checking windows files or drive.

Then go to Linux OS. and follow the save stages. Which i mentioned in top.

You will be able to use or check same emails on Windows and Linux.

Enjoy.