<p>In Craft 2.x, it isn't possible for plugins to provide their own email providers that the entire Craft installation can use.  They can provide their own that they can use for themselves, but it won't affect things like when Craft sends an activation email.</p>

<p>That's changed in the upcoming <a href="http://buildwithcraft.com/3" rel="nofollow">Craft 3</a>, though.  There is an example Mandrill plugin <a href="https://github.com/pixelandtonic/Mandrill" rel="nofollow">here</a> on how to pull that off.</p>

CC BY-SA 3.0
2015-07-24T15:21:31.313Z
Good to know, and great to know it's set for Craft 3. Exciting to see what's coming up, hopefully not too far into the future!
Rob
CC BY-SA 3.0
2015-07-24T15:24:07.010Z
FYI: Mandrill SMTP was a local install issue, works fine on live server. No idea why, as I'm pretty sure all the PHP extensions are there on AMPPS (Mac) — throws an ssl error. There's a similar issue somewhere on here, but can't track it down now.
Rob
CC BY-SA 3.0
2015-07-23T22:43:55.110Z
2015-07-23T22:43:55.110Z
Brad Bell
<p>Trying to get the <a href="https://github.com/objectivehtml/Postmaster-for-Craft-CMS" rel="nofollow">Postmaster plugin</a> working for user activation emails, instead of the default Craft setup (had issue with Mandrill setup, Use SMTP authentication throws an error).</p>

<ol>
<li>It doesn't seem that Postmaster disables the default Craft email setup, is there a way to do this within Craft?</li>
<li><p>Assuming (1), what is the correct <code>{{ link }}</code> variable as currently I'm seeing:</p>

<p>Template Error</p>

<p>Variable "link" does not exist</p>

<p>/Users/.../site/craft/templates/postmaster/user/activation.txt(5)</p>

<p>Hey {{user.friendlyName}},</p>

<p>Thanks for creating an account with the Postmaster {{siteName}}! To  activate your account, click the following link:</p>

<p>{{link}}</p>

<p>If you weren't expecting this email, just ignore it.</p></li>
</ol>

<p>It doesn't seem there is currently a way to do this.</p>

<emails><registration><activation>
Postmaster plugin: user activation link
# Postmaster plugin: user activation link

(Asked by: username_0 on 2015-07-23)

Trying to get the [Postmaster plugin](https://github.com/objectivehtml/Postmaster-for-Craft-CMS) working for user activation emails, instead of the default Craft setup (had issue with Mandrill setup, Use SMTP authentication throws an error).

1. It doesn't seem that Postmaster disables the default Craft email setup, is there a way to do this within Craft?
2. Assuming (1), what is the correct `{{ link }}` variable as currently I'm seeing:

   Template Error

   Variable "link" does not exist

   /Users/.../site/craft/templates/postmaster/user/activation.txt(5)

   Hey {{user.friendlyName}},

   Thanks for creating an account with the Postmaster {{siteName}}! To activate your account, click the following link:

   {{link}}

   If you weren't expecting this email, just ignore it.

It doesn't seem there is currently a way to do this.

**Tags:** emails, registration, activation


---

## 1 answers

### Answer by username_1 on 2015-07-23. Score: 2 | Accepted answer

In Craft 2.x, it isn't possible for plugins to provide their own email providers that the entire Craft installation can use. They can provide their own that they can use for themselves, but it won't affect things like when Craft sends an activation email.

That's changed in the upcoming [Craft 3](http://buildwithcraft.com/3), though. There is an example Mandrill plugin [here](https://github.com/pixelandtonic/Mandrill) on how to pull that off.

> **Comments:**
> **username_0**: Good to know, and great to know it's set for Craft 3. Exciting to see what's coming up, hopefully not too far into the future!  
> **username_0**: FYI: Mandrill SMTP was a local install issue, works fine on live server. No idea why, as I'm pretty sure all the PHP extensions are there on AMPPS (Mac) — throws an ssl error. There's a similar issue somewhere on here, but can't track it down now.  

---

