Friday, March 19th, 2010 (updated 26 Jan ’12)

Documentation for Send Email v1.4


The Send Email plugin lets you send an email from within an ExpressionEngine template without the user submitting a form.


Compatible with both EE v1.x and v2.x.


EE v1.x

Place the pi.send_email.php file in the /plugins directory.

EE v2.x

Create in the /third_party directory a directory /send_email, then place the pi.send_email.php in there.

Required Parameters


This is the only required parameter, the email address that the email will go to.

Optional Parameters


The email address that will appear in the email’s From area. If using, also requires the from_name parameter.


The name address that will appear in the email’s From area. If using, also requires the from_email parameter.


The email’s subject. If left empty, the default is “Email from [site_name]”.


Either “html” or “plain”. Default is “plain”. Currently working in EE v2.x only.


This parameter is available to all EE plugins. When set with a value of “inward” it allows the plugin to contain other plugins.


username, screen_name, member_id, email, ip_address


="Joe Kissel" 
subject="Hairpiece for Pico"
Dear Wacky Silly Hairpieces

Can you do something about {screen_name}s hairThough he does got to get back to work.

Thank you,

Joe Kissel

Thu 15 Apr ’10

Sophia Browne

Does this plugin allow dynamic variables?  I am trying to use {site_name} and {webmaster_email} and they are not being processed.

Thu 15 Apr ’10

Adam Khan

Sophia, try parse=“inward”. If that doesn’t work, I’ll have to work on it to get variables working.

Thu 15 Apr ’10

Sophia Browne

Hi, I tried the parse=inward and that didn’t work either.

Fri 16 Apr ’10

Adam Khan

Sophia, thanks for trying. I’ve added that to the plugin’s roadmap. Can’t say with confidence when exactly I’ll get to it though.

Fri 16 Apr ’10

Sophia Browne

Ok, that’s no problem.  I will just workaround it.

Thanks anyways.

Tue 20 Apr ’10


I’m very interested in this. I’ve been asked to create a sort of tell-a-friend/e-card that self submits after a freeform is submitted. This might be a great way to make that happen.

Tue 4 May ’10

Nick Benson

I’m getting the following error on my EE 2 site, any thoughts?


A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant PATH_CORE - assumed ‘PATH_CORE’

Filename: send_email/pi.send_email.php

Line Number: 74

Sun 11 Jul ’10


Any news following on from Nick Benson’s comment above? Having the same issue…

Tue 10 Aug ’10

Kyle Batson

I have a request that allows using conditionals inside the message. I’m populating the message field with some custom fields, and if that custom field is not present, I don’t want it to show up. Something simple like {if custom_field}Content here{/if}

Also, might you know why having ‘http://’ in the message field outputs as encoded HTML character entities instead? Is there a way this can be switched from within the plugin?


Wed 25 Aug ’10

Adam Khan

Sorry for not responding, people, I’ve been a bit swamped and haven’t had time to address issues on the free plugins.

Nick and JimboJ, I haven’t yet figured out why the PHP notice is happening, sorry!

Kyle, the encoding is happening within EE’s built-in functions that the plugin’s calling—I’ll have to look further to see how to disable that.

Wed 29 Sep ’10

Sophia Browne


I added to the send email plugin since I had the same HTML character entities problem.
I added a function from the Regular expressions class to the -> $E->message($REGX->unhtmlentities($message));  Don’t forget to call the class -> global $REGX; // EEv1 syntax.

The unhtmlentities function takes a string and returns with all entities turned into their characters.

In a bit of a hurry, so I have to keep this short, hope this helps!

Mon 10 Jan ’11

Adam Khan

Sophie, it’s months later, my apologies for leaving you in the lurch there, presume you got it fixed!

Mon 10 Jan ’11

Sophia Pitt-Browne

Yes Adam, I did!

Thu 17 Mar ’11


Re: Use of undefined constant PATH_CORE

Looking at the file and the structure of 1.6 V 2.0.1 that the file it’s referencing “” no longer exists in 2.1.X

No idea how to amend or what to amend to :(

Fri 22 Apr ’11


I’m getting the same PHP error as Nick, did anyone ever find a way round it?

Tue 24 May ’11


Any idea when yo might add the functionality for variables?

Tue 2 Aug ’11


I got this to work on EE 2.1.3 by replacing the send email code with this:

        // Send email
        if ($from_email && $from_name)
          $this->EE->email->from($from_email, $from_name);
          $this->EE->email->from($PREFS->ini(‘webmaster_email’), $PREFS->ini(‘webmaster_name’));
        if ($subject)
          $this->EE->email->subject( “Email from ” . $PREFS->ini(‘site_name’) );

Mon 23 Jan ’12

Adam Khan

Tiffany, a very belated thanks for fixing the plugin. Working for me on EE2. Not sure now though on EE1, will have to check.

Wed 7 Mar ’12

Toby Callinan

Just wondering…

Does this plugin work when it’s submit? It mentions that it works without submitting a form. Does that mean I can set up a cron job that will then just send an email?

I’m tring to find a method to send emails after a query I the DB that pulls out certain users - ths might be perfect!

Wed 7 Mar ’12

Adam Khan


No form involved, just sends an email when the template containing the tag is loaded. Nice when loaded with ajax.

Tue 10 Apr ’12

Rob Stokes

If I understand correctly ... the from name, from email address, to email address and subject all have to be hard-coded into the template. It is not possible, for example, to look at a channel entry and pull out the details from there?

I was hoping to use this plug-in to send a “thank you” notification email to a user after they had filled in a form (with which I am using Safecracker to store the entered details in a channel) on the site. The “to” email address at the very least will be dynamic.

Can I not do this with this plug-in?

Tue 10 Apr ’12

Rob Stokes

Thought I’d better say ... I’ve tried putting the {exp:channel:entries} code directly within the send_email tag, as well as calling the result via a snippet and an embed, but none worked. Works fine when I hard-code the details.

Fri 11 May ’12

Michael Rog

Rob, try wrapping the Send_email plugin INSIDE of the Channel:Entries tag, and use parse=“inward” on the outer tag. Then you can use the email address variables from your entries as the parameters of Send_email.

Thu 21 Jun ’12

Laurence Cope

This is a great little plugin. I am combining it with EEI_TCPDF to generate a PDF from a template then saves it, and uses Send Email to attach and email it.

So I have modified your file to add attach, I think you should update it, its very useful…

$attachment = $TMPL->fetch_param(‘attachment’);
// Attach attachment
if($attachment != ‘’)

Fri 22 Jun ’12

Adam Khan

Thanks Laurence, will add that in for next release!

Fri 28 Sep ’12

Craig Allen

I’ve tried it with mailtype=“html”, but all the html is being displayed in email clients. What might be the cause of this? I’m using EE 2.5.2

Thu 26 Jun ’14

Jamie Blacker

It says that the mailtype parameter was added in 2010, but it doesn’t seem to be in V1.4.
To add it in:
$mailtype = $TMPL->fetch_param(‘mailtype’);
if ($mailtype == “html”)
$this->EE->email->mailtype = ‘html’;

Tue 15 Mar ’16


Hello friends, There are the webpage which offering unlimited amazon gift code without spending any cost. So if you want to get then visit this webpage and get it.

Thu 17 Mar ’16


good You get and can share files or information readily with ShareIt. SHAREit The APK will begin being installed through Bluestacks. Download SHAREit for PC nice.

Thu 7 Apr ’16


I like your IT services. Good job guys!

Wed 13 Apr ’16


You did really good work. I really appreciate your new and different post. Please guys keep it up and share with us some unique post in the future…

Nutanix Data Center

Mon 2 May ’16


good away requesting a solo red cent from you. Yes you read it most suitable, Download Mobdro App articles is normally certainly not worthy of, but Mobdro features it all. Mobdro Android Download nice.

Thu 5 May ’16


You have the golden opportunity to get clash of clan hack tool which contains unlimited gold,elixirs,gems and many more through which you will enjoy playing clash of clans with full freedom as it is the best game with a lot of enjoyment.

Tue 21 Jun ’16


good MSQRD App is usually free of charge download and simple to make use of. MSQRD APK Android modify the method you appear and send out msqrd app latest nice.

Sat 25 Jun ’16


The Best Place for Happy 4th of July Images, Pictures & Fourth July holidays 2016 Free quotes download clipart, crafts, photos, sayings (USA, America) Celebration july 4th quotes

Wed 13 Jul ’16


good Casper APK for Android possesses been kept up to date Casper Snapchat Free The Casper APK has got been modified a short while ago, download Casper for Snapchat nice.

Fri 5 Aug ’16


good all of the videos you receive in one sole app. CinemaBox Free A survey has shown that this is one of the most popular download cinemabox nice.

Wed 17 Aug ’16


good In the past days if you one need to transfer SHAREit PC Install In this document we happen to be introducing three strategies SHAREit on PC Windows great.

Sat 1 Oct ’16


good Quickly the App will appear, click on install switch and wait for a second Snapchat Sign in to stabilise and increase its user base. Already, great.

Fri 14 Oct ’16

csr hack

Learn csr hack and know how to use it to win all the games.

Thu 27 Oct ’16


good The water reduces the negative effects of hard water and becomes softner. portable water softener Compact and simple to use everywhere you go nice.

Thu 22 Dec ’16


good in the inclinations, it will certainly furthermore demonstrate the devices names. Also solution loss problem will certainly additionally be fixed. nice.

Wed 1 Feb ’17


Great It has comparable filters like Artisto editing application. download an application called Cloud Connect Fine.

Tue 14 Feb ’17


Great apart from Tutuapp to play Pokemon Go tutu app the option for such problems a lot of the moment. Fine.

Sat 18 Feb ’17


good it and after that you’ll understand the genuine power SHAREit for Windows among smartphones, tablet, PC, WP or even Windows nice.

Sun 19 Feb ’17


good it is essential that you examine the accessibility If you have any type of problems while installing the application nice.

Fri 3 Mar ’17


good Movies watch online on your big display Desktop Mobdro for Smart TV Download App is the full review of download Mobdro for PC. best.

Sat 11 Mar ’17


good there are numerous musically applications, APK Download for Android | An Ultimate Guide or edit the coloring of your video clips if you have no best.

Wed 15 Mar ’17

<a href="">

Good. Junaid PhD

Wed 15 Mar ’17

Priya Rani

Hi Love to see Your Post and comments that are really good reviews. Great Job Admin. Thanks.Driver Reviver keygen

Mon 20 Mar ’17


good The last point you want is for individuals to be loafing waiting on you. Wedding Photography in Ahmedabad  |  Wedding Photography in Vadodara  |  Wedding Photography in Surat The sheet is then tucked under the outfit as well as no one understands nice.

Mon 3 Apr ’17


It offers all the costs and non-premium apps in its application. aptoideapkdownload Moreover, the Aptoide customer application handles downloads.

Tue 4 Apr ’17


Great work, so this is a good result and working.
ip address 192.168.l.254

Thu 6 Apr ’17


Download EveryCord iOS Download for free

Sat 15 Apr ’17

iTube For Android

I like your website it reminds of my own website so it feels like i never left my own website. i’m like using my own website, commenting on my own posts, isn’t it weird guys? Well not for me though.

Wed 19 Apr ’17

KGD Architecture

Không Gian Đẹp - KGD Architecture là một trong những thương hiệu tại Việt Nam trong lĩnh vực tư vấn thiết kế Kiến trúc – Nội thất và xây dựng. Tiêu chí cốt lõi của KGD Architecture là chất lượng và sự chuyên nghiệp trong thiết kế và thi công công trình.
Giữa hàng trăm công ty tư vấn, thiết kế và xây dựng chuyên nghiệp, để giữ vững được chỗ đứng trên thị trường, công ty KGD Architecture luôn lấy uy tín, chất lượng làm yếu tố hàng đầu. Đến với dịch vụ tư vấn thiết kế ở nha trang,thiết kế kiến trúc ở nha trang ,thiết kế nội thất ở nha trangcủa KGD Architecture, khách hàng sẽ nhận được những mẫu thiết kế với hình thức bắt mắt, tính ứng dụng cao phù hợp với yêu cầu của khách hàng.

Mon 1 May ’17

SEO Resarch Analytics

Is the process of affecting the visibility of a website or a web page in a search engine’s unpaid results—often referred to as “natural,” “organic,” or “earned” results. In general, the earlier (or higher ranked on the search results page), and more frequently a site appears in the search results list, the more visitors it will receive from the search engine’s users. SEO may target different kinds of search, including image search, local search, video search, academic search, news search and industry-specific vertical search engines. -

Wed 3 May ’17


Download Paid apps for free using TutuHelper Android Apk

Fri 5 May ’17

sprint headquarters

Thank you for your work on the blog! You’re doing a good job!
sprint headquarters

Wed 17 May ’17

Ashley Morrison

Thanks for this plugin!

Fri 9 Jun ’17


nice post
see more

Tue 13 Jun ’17

phục hình bọc răng sứ thẩm mỹ

Làm bọc răng sứ cercon ht là phương pháp phục hình răng đem lại tính thẩm mỹ ưu việt nhất hiện nay. Bởi răng cercon là dòng răng toàn sứ được làm bằng 100% sứ nguyên chất. Nên khi được gắn lên khuôn hàm người bệnh sẽ đem lại tính thẩm mỹ vô cùng hoàn hảo

Tue 13 Jun ’17

bọc sứ thẩm mỹ

Phục hình phục hình bọc răng sứ thẩm mỹ là phương pháp phục hình sử dụng một mão răng sứ để chụp lên phần răng thật người bệnh tuy nhiên người bệnh sẽ cần phải mài nhỏ đi phần cùi răng thật. Điều này vô tình đã khiến cho rất nhiều khách hàng lo lắng không rõ liệu phục hình bọc sứ cho răng có thực sự tốt hay không

Fri 16 Jun ’17

đồ mã thờ cúng

Khi xã hội ngày càng phát triển thì nhu cầu mua đồ mã thờ cúng cũng ngày càng tăng cao. Bạn có thể liên hệ với chúng tôi để có được những món đồ cúng hoàn hảo nhất

Sat 24 Jun ’17


A good help for beginners, everything is very well written and the text is beautifully decorated food places near me

Tue 11 Jul ’17


Maecenas mus. Magna mi curae; quis nonummy hymenaeos curae; imperdiet maecenas aptent sollicitudin sociis auctor sociis platea tristique purus. Ultricies nam rhoncus commodo sociosqu elementum dictum justo. Per a tellus. fast food near me

Sun 23 Jul ’17


I refused to read the article as I was so outraged by the headline but my response is unambiguous! Fighting for a better world is not easy but we’re never going to get anywhere if we don’t all do our bit - like when we organised an organic bake-sale at our local community gardens to raise awareness for Kurdish Women’s rights. Do you think the multinational corporations would let that happen?

online stopwatch

Sun 23 Jul ’17


Chatting to the builder sprucing up our conservatory, I started to ponder. Soil depletion is really just the tip of the iceberg when it comes to the challenges faced by African peasant farmers today. Cameron and his cronies simply have no idea of the struggles faced by ordinary British families like us.

online timer

Wed 2 Aug ’17


The post covers some of the most basic actions to get Fildo Apk download music to android You could develop your very own playlists as well as could additionally

Mon 14 Aug ’17

salman ali

i just tried this thing and it worked for me. thanks for sharing.

Mon 14 Aug ’17

luci furani

the chat app thing worked in my site. i will continue using it. thanks
Teacher’s Day Speech In Hindi

Sat 19 Aug ’17

Sveena sharma

Its an excellent ppost. useful to me. thank you so much bduddy.
Veterans day
Happy Veterans Day Images 2017
Why do we celebrate Veterans Day

Thu 21 Dec ’17


Looking forward to this!

commercial cleaning service

Fri 22 Dec ’17


Pretty good article for a newbie like me. I’ll try to follow on your instructions and will update here on the
response from my Website.

Also Have a Visit to my Blog

Sat 6 Jan ’18

John B

This is a great plugin.  We use it all the time at Brick Mason Nashville

Wed 10 Jan ’18

paypal money generator online

Here is the by which you can generate money into your paypal account within seconds and which can help you manage your expenses.

Wed 17 Jan ’18

FIFA 16 Crack

You are doing wonderful work.

Sat 24 Feb ’18


All of a sudden draw the tool out of your hand when you transform it on. 8 great reasons to own a plunge router That’s additional aided by a head that is just three inches across.

Tue 27 Feb ’18

framaroot apk android

Very Nice and good information great job thank you for sharing

Tue 27 Feb ’18

blast card game

Nice and wonderfull
blast card game

Wed 28 Feb ’18


Hi nice article and also helpful. We are also Blockchain Development Company,
if you looking for Blockchain services we are here to give you the best solution.

A blockchain is a digitized, decentralized, public ledger of all cryptocurrency transactions.
Constantly growing as ‘completed’ blocks (the most recent transactions) are recorded and added to it in
chronological order, it allows market participants to keep track of digital currency transactions without
central record keeping.



Wed 28 Feb ’18


That’s a simple and great plugin, very useful. I’ll send emails from my window installation pensacola website a lot easier.

Wed 7 Mar ’18


Thank you for your work on the blog! You’re doing a good job!
Atlanta Tree Company

Wed 9 May ’18

Eden Carter

Thanx for sharing such useful post keep it up :) Human-Centered Service Design Case Study Help

Wed 9 May ’18

Alison Andrew

Things are very open and intensely clear explanation of issues. was truly information. Your website is very beneficial. programming homework

Tue 15 May ’18

I am sure you see the trend here… Commercial Mortgage Financing can be used in practically any industry for any kind of commercial property. Speak with your Business Finance Broker when you are ready to invest in a Commercial Real estate opportunity. www.financetypes.usFor more information on click here:

Tue 15 May ’18

Make use of a travel agent that provides travel deals for handicapped travelers. Booking plane tickets and rooms in hotels with journey agents that provide travel methods to disabled individuals is advantageous in many ways. They make sure they book for his or her disabled customers airlines as well as hotels which are disabled pleasant. They make an effort to offer providers and suggestions which will ensure their own clients journey

Tue 15 May ’18

One of the biggest competitions of today is staying fit. It seems like people nowadays want to lose weight instantly as if there is no tomorrow or it is as if it is a passport for the general population. Losing weight and staying fit is never

Tue 15 May ’18

The laws of nature are just as they treat every specie (and not only man) with equality. In a jungle, every specie gets its due share of food, air and water which enable them to live a dignified life without being dependent on any other creation. Nature makes no distinction between one specie, and the other as all species are the children of the same God.

Tue 15 May ’18

I am certain you begin to see the trend right here… Commercial Home loan Financing may be used in virtually any business for any type of commercial home. Speak together with your Business Finance Broker when you’re ready to purchase a Commercial Property opportunity.

Tue 15 May ’18

You will see all styles and models of fashion blogs as being the internet is stuffed with them. It can take a look at the advantages of wearing lean jeans through boyfriend bluejeans or the best way pink takes the destination of dark colored plus many of the extras. Just like you go internet, you receives your fill of your latest popular trends as a result of fashion

Tue 15 May ’18

Real estate shareholders live in addition to die by means of their chance to add importance. With not any added importance, there usually are no gains. This applies with almost any business, but what makes real estate a really great business as well as a great investment decision, is the volume of ways you can contribute value and benefit from big

Tue 15 May ’18

Health fitness tips also recommend that vices should be stopped. Smoking predisposes one to vascular conditions such as arteriosclerosis and heart diseases. Alcohol consumption need not be eliminated but should be limited to 30 jiggers a day only. Alcohol still has health benefits such as vasodilation. These are just some of what Health fitness tips

Tue 10 Jul ’18


Superb article, thanks for sharing.     
Below check out the platform for currencies to explore information on digital currencies.   
List of all cryptocurrency

Tue 21 Aug ’18


I have visit 1st time on your website and I really like all the information that you have put on your blog post. Thanks for putting up great Economy linux hosting with cpanel content on your site.

Mon 29 Oct ’18

Sophie Miller

Je vous remercie de l’information! Je cherchais et ne pouvait pas trouver. Vous me aidé!

Tue 20 Nov ’18

Diane Rodriguez

Very interesting.

Fort Myers Tree Service

Post a comment





Your comment:

Please answer the following question to assure your intentions are honorable: Tea leaves and ??? beans. (6 characters required)

Remember my personal information
Notify me of follow-up comments?