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

Send Email v1.4 (Free)

 

This free plugin lets you send an email from within an ExpressionEngine template without the user submitting a form. It works in both EE v1.x and v2.x.

It’s probably most likely to be useful when placed within an embedded template that is loaded using ajax by some user action in the parent template.

Michael Rog has written a similar plugin: Email-from-Template.

Documentation

Thu 15 Apr ’10
1:21pm

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
2:54pm

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
9:14pm

Sophia Browne

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

Fri 16 Apr ’10
8:30pm

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
11:14pm

Sophia Browne

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

Thanks anyways.

Tue 20 Apr ’10
10:27pm

Kurt

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
5:45pm

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
1:56am

jimboJ

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

Tue 10 Aug ’10
8:50pm

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?

Thanks.

Wed 25 Aug ’10
6:08am

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
2:42pm

Sophia Browne

Hi,

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. http://expressionengine.com/legacy_docs/development/reference/regex.html

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

Mon 10 Jan ’11
12:38pm

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
5:13pm

Sophia Pitt-Browne

Yes Adam, I did!

Thu 17 Mar ’11
6:51am

Stuart

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 “core.email” no longer exists in 2.1.X

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

Fri 22 Apr ’11
1:41pm

James

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

Tue 24 May ’11
3:11pm

Jim

Any idea when yo might add the functionality for variables?

Tue 2 Aug ’11
3:34pm

Tiffany

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

        // Send email
        $this->EE->load->library(‘email’);
        $this->EE->email->initialize();
        if ($from_email && $from_name)
        {
          $this->EE->email->from($from_email, $from_name);
        }
        else
        {
          $this->EE->email->from($PREFS->ini(‘webmaster_email’), $PREFS->ini(‘webmaster_name’));
        }
        $this->EE->email->to($to);
        if ($subject)
        {
          $this->EE->email->subject($subject);
        }
        else
        {
          $this->EE->email->subject( “Email from ” . $PREFS->ini(‘site_name’) );
        }
        $this->EE->email->message($message);
        $this->EE->email->Send();

Mon 23 Jan ’12
10:43pm

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
8:33pm

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
8:39pm

Adam Khan

Toby,

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

Tue 10 Apr ’12
3:32pm

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
3:42pm

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
3:22pm

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
5:47pm

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 != ‘’)
{
  $this->EE->email->attach($attachment);
}

Fri 22 Jun ’12
12:52pm

Adam Khan

Thanks Laurence, will add that in for next release!

Fri 28 Sep ’12
4:30am

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
3:31pm

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
6:53pm

amazon321

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 http://www.onlinefreecodes.com/ and get it.

Thu 17 Mar ’16
12:58pm

sagar

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
1:17pm

adoradeny

I like your IT services. Good job guys!

Wed 13 Apr ’16
11:26am

dogra

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
5:56am

ram

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
11:51am

sam

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
12:49pm

viral

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
7:27am

kalm

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
6:37am

kittu

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
9:22am

hema

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
11:54am

monali

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
12:11pm

mahi

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
7:09am

csr hack

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

Thu 27 Oct ’16
9:07am

harry

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
6:33am

raj

good in the inclinations, it will certainly furthermore demonstrate the devices names. http://www.wifikillpro.com Also solution loss problem will certainly additionally be fixed. nice.

Wed 1 Feb ’17
5:40am

disha

Great It has comparable filters like Artisto editing application. https://artistoappdownload.com download an application called Cloud Connect Fine.

Tue 14 Feb ’17
11:10am

James

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
5:17am

edward

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
7:46am

riya

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

Fri 3 Mar ’17
5:30am

vnv

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
12:26pm

key

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

Wed 15 Mar ’17
1:39am

<a href="https://www.facebook.com/JunaidPhD">

Good. Junaid PhD

Wed 15 Mar ’17
1:41am

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
7:52am

geeta

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
5:54am

Martin

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

Tue 4 Apr ’17
4:07pm

Kasha

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

Thu 6 Apr ’17
5:57am

Cameroon

Download EveryCord iOS Download for free

Sat 15 Apr ’17
1:27am

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
4:44am

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
9:24pm

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. - https://altdesain.com/en/search-engine-optimization/

Wed 3 May ’17
1:45pm

Brown

Download Paid apps for free using TutuHelper Android Apk

Fri 5 May ’17
11:04am

sprint headquarters

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

Wed 17 May ’17
3:30am

Ashley Morrison

Thanks for this plugin!
Website

Fri 9 Jun ’17
4:20am

Anna

nice post
see more

Tue 13 Jun ’17
6:54am

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
7:00am

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
3:47am

đồ 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 http://tienamphu.com/do-ma-tho-cung-va-nhung-nguyen-tac/ 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
10:29am

maodzedun

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

Tue 11 Jul ’17
4:01pm

Sebering

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
10:57am

ger

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?
stopwatch

online stopwatch

Sun 23 Jul ’17
10:58am

tom

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.
timer

online timer

Wed 2 Aug ’17
11:02am

danny

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
8:04am

salman ali

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

Mon 14 Aug ’17
8:07am

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
10:14am

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

Post a comment

Name:

Email:

Location:

URL:

Your comment:

Please answer the following question to assure your intentions are honorable: What is the capital of France? (5 characters required)

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