Questions tagged [emails]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
3answers
2k views

How do I set up Craft to send emails from my local MAMP/Virtual Host X dev environment

I'm developing a site locally using MAMP + VirtualHostX on Mavericks. I'm at the point in the project where I want to create some user accounts for clients, but I can't seem to get my mail set up ...
9
votes
1answer
1k views

P&T Contact Form Plugin: HTML Email Templates

Can you create HTML templates using Twig/Craft tags to style the body of the email message sent by the P&T contact form plugin?
8
votes
4answers
3k views

Email Notification When Post Submitted

Is it possible for a user group to be notified by email when a post is submitted using either the backend or a form on the front end?
8
votes
2answers
212 views

Is there a native function or plugin to allow admins to email all users?

I want to be able to provide the admin with a function so that they can email all registered users of the site. Is there a native function or plugin that would make this possible?
8
votes
1answer
797 views

How to set CC or BCC emails to EmailModel?

Below is my code for sending mail and this is working fine but when i set cc or bcc mail is not sent them. $email = new EmailModel(); $emailSettings = craft()->email->getSettings(); ...
7
votes
1answer
2k views

How to send email from Craft 3 custom plugin?

I have created custom plugin in Craft 3 and want send email to receiver or site email when user submits a form.
6
votes
2answers
1k views

How do I get the Settings System email Address?

From a template or a plugin, how can I get the value of admin/Settings/System Email Address ? Thanks for your help Nicolas
5
votes
1answer
3k views

Pass content of system messages to HTML Email Template

I know I can set the template in the email settings to use a HTML template but how do I pass the content of the system messages (activate your account, reset your password, etc) to this template? I'...
5
votes
1answer
927 views

How to encode links in email templates?

We have a problem related to the escaping of the & in the password reset URL not being escaped. This link: http://yoursite/admin/actions/users/setpassword?code=abcd&id=1234 somehow, this ...
4
votes
1answer
2k views

Passing Entry to craft()->templates->render()

In looking over the docs on template rendering I am not seeing a way to pass in an Entry model. It seems more efficient to pass in an existing model rather than have the template do another lookup. ...
4
votes
2answers
446 views

Can I set an environment var for SMTP mail servers?

Pretty straight forward here, I'd like to use MailTrap for devMode and then use an SMTP service (Mandrill or like) for production. I looked through the General Config Settings docs but didn't see ...
4
votes
2answers
220 views

EmailService now has Twig render email messages in safe mode

EmailService now has Twig render email messages in safe mode. -- https://craftcms.com/changelog#build2903 I don't think this is really a bug as it's intended behaviour, but this is causing me a ...
4
votes
2answers
1k views

Error when rendering a template (for HTML email) on users.saveUser

I'm writing a simple project-specific plugin that sends a notification to the site admin when a new user is registered. I have an HTML template that I'd like to use for this. In my plugin's main ...
4
votes
1answer
359 views

How to build a transactional email platform with Craft

I am building a transactional email platform for my users. Users will subscribe to a digital program and receive daily emails depending on their profile and parameters. This email sending will be:...
4
votes
2answers
251 views

Define email environment-specific email settings?

I'd like to define the SMTP server deets in my local config as I regularly need to push/pull databases between environments and will have different settings. There doesn't seem to be any of doing ...
4
votes
1answer
257 views

What can we do to help avoid member activation emails going to spam?

We have a new Craft site that includes front-end member registration. We've heard from the client that many of the activation emails are getting stuck in spam filters (and I just tested with the same ...
4
votes
1answer
948 views

Sendmail not working on Craft 3

I'm building my first Craft 3 site, and having problems getting email to send. I've set it to use Sendmail but when I click the Test button in the CP, I get "There was an error testing your email ...
4
votes
1answer
157 views

Postpone sending activation codes; Creating a user as “Inactive”

I'm finding the user activation process a bit confusing... I was trying to create a handful of users, but I didn't want to send out the activation emails yet. I incorrectly assumed if I unchecked "...
4
votes
0answers
928 views

Craft SMTP emails + Localhost [Mamp pro] (+postmarkapp) [closed]

Ok I'm running Mamp pro 3.0.5 for my localhost setup and php 5.3.28 and for the life of me, I can't get my localhost setup to send out emails. My host name is smtp.postmarkapp.com My username and ...
3
votes
3answers
732 views

Customize activation and other system emails

Just as the title indicates, I'm looking for a way to customize the email template of the "click here to activate your account" email that is sent to users when they register. I would also like to ...
3
votes
2answers
384 views

Best way to bulk email an attachment?

I need to take a file, and email it to a large group of people. Naturally, I'll be using a custom plugin Controller to trigger the email blast. I'm already aware of this similar thread, but I don't ...
3
votes
2answers
2k views

How do I send an email to multiple recipients?

In my plugin, I'm sending an email like this: $recipients = 'person@example.com'; $email = new EmailModel(); $email->toEmail = $recipients; $email->subject = 'My Email Subject'; $email->...
3
votes
1answer
1k views

How do I reset a user’s password or email them when I create an account?

Is it possible to reset a users password from the Control Panel, I remember seeing an option for that before but not seeing it anymore? Same goes for notifing users when you create their account, is ...
3
votes
3answers
990 views

Setting up Craft's registration e-mails to be sent through GMail

I have a question regarding how to set up Craft 3 RC8 to send e-mails through a corporate GMail account. My website's MX records are pointed at GMail through Cloudflare I tried setting this up when ...
3
votes
2answers
359 views

Send email to website owner after user registration

I have a client that wants to get notified whenever someone registers on their website. How can I do this, is there some kind of plugin? If not how would I go about doing this?
3
votes
2answers
2k views

Integrate Google reCAPTCHA into Contact Form plugin

So I just recently plugged in pixelandtonic/ContactForm plugin into my website and I realized I got about 3 spam emails straight into my inbox on the first day it was up. Is there a way to integrate ...
3
votes
2answers
909 views

How to auto obfuscate email addresses in rich text field

I'm used to this feature in ExpressionEngine either natively or via the Auto Linker plugin, where you just wrap it around all the text fields. I've seen the Sprout Encode Email addon but that doesn't ...
3
votes
1answer
198 views

Can you override the default sendmail path in Sendmail transport config in Craft 3?

Many shared hosting accounts require custom flags that are passed to sendmail in order for them to work properly. Since Craft 3 uses Swiftmailer for its mailing library and Swiftmailer's default ...
3
votes
2answers
109 views

Does Craft have built-in queue handling for outbound mail?

Does Craft have built-in queue handling for outbound mail? For example if Settings -> Email -> Protocol is set to "SMTP" and the mail server is temporarily down when an email is to be delivered, the ...
3
votes
1answer
143 views

Unverified emails blocking user registration

craft()->users->saveUser seems to check email for uniqueness across ALL users, not just verified ones. It seems like it should only check against verified ones to me. Example: boob@gmail.com ...
3
votes
1answer
230 views

Sprout email notifications - setting the recipient?

I have a front end form for logged in users to submit new entries. I want that user to receive a notification (via Sprout Email) that there entry has been received (it's pending/disabled on submission)...
3
votes
1answer
304 views

Can I make the front-end entry form send an email to a user group?

I've used the front-end entry form in the docs to build a Q&A portal, and it's working great. But I'd like to extend the functionality once the new entry is saved. I've set the entries up to not ...
3
votes
1answer
456 views

Problem with user activation links

I'm having a pretty consistent issue with the user activation links sent out in the registration emails. Having a hard time diagnosing because I can't replicate it myself, but getting several users a ...
3
votes
1answer
302 views

Send plain text email using EmailModel?

I currently have a plugin that's successfully sending email using EmailModel(). The problem is: it's sending a multi-part email with HTML and plain text components. For this particular email, it would ...
3
votes
1answer
423 views

Applying the activation link to linked text in the notification email

Whether I use an HTML email template or not, there are a few problems with the activation email link that appears as follows: http://localhost.dev/actions/users/verifyemail?code=lzxmSVbLE~...
3
votes
0answers
266 views

Mailer config in Craft 3 not getting merged

I have this custom config in config/app.php, but Craft seems to keep using the default Control panel Sendmail config. It seems this doesn't get merged in the main.php file. (as promised) return [ '...
2
votes
2answers
213 views

Is there a way to detect if a action is triggered from a control panel form?

We're building a content platform for a bank for a client of us. One required feature lets relationship managers add clients (members) to the platform which get assigned a specific group. We listen ...
2
votes
2answers
1k views

Mailgun (SMTP) + Craft

I'm trying to set Mailgun up on Craft (Like we've done plenty of times before) but each time it keeps saying that the connection to SMTP is failing. The error I'm getting is: 2017/03/29 09:54:13 [...
2
votes
3answers
318 views

How to subscribe to an entry and get notified by email in case of new comments?

I am thinking about a possibility to let members subscribe to a blog entry, and then get notified in case of new comments related to the respective entry. The comments are stored as entries in a Craft ...
2
votes
3answers
935 views

Automatically subscribe users to MailChimp list?

I would like to automatically subscribe all newly registered users to a MailChimp mailing list.
2
votes
3answers
219 views

Blog Subscriptions

I'm really surprised to see there's no blog subscription plugin for Craft? Looking to take an email address and send email updates when new entries are created within a specified channel. Subscribers ...
2
votes
1answer
351 views

Email subscriptions system

I'm looking for a way to have email subscribers database within Craft without using third-party solutions such as MailChimp. I'm going to let users enter their emails to subscribe to site categories /...
2
votes
1answer
257 views

Sending email by key to non-user

In a custom plugin, I would like to use Craft's ability to register email message keys in order to keep emails consistent, and I would like to be able to send these emails to users as well as non-...
2
votes
1answer
235 views

Send Password Reset Email to all users at once

I have a bunch (about 3000) of imported users from a website, which is currently on a redesign. When the site is finished, I would like to send an email to all users, saying that the site is ...
2
votes
1answer
955 views

How to do an ajax submission to Craft Contact Form with attachments using FormData?

JS .on('submit', '#application-form', function(e) { e.preventDefault(); var form = $(this), formData = new FormData(form[0]), msgBox = form.find('.msg-box'), ...
2
votes
1answer
1k views

Render Template issue

I've got a plugin which am triggering emails from (listening to the users.onSaveUser event). I am using a conditional to send two emails, depending on the permissions of the person registering the ...
2
votes
2answers
918 views

How can I pass variables to email's template onBeforeSendEmail

I'm trying to add some variables to email's template to be rendered before email is sent. I was able to modify emailModel like customHeaders and subject but I couldn't pass custom variables to the ...
2
votes
1answer
93 views

Controlling where user is sent if clicking old or expired email activation link

When a user visits on an old or expired email activation link, how do we control which page is loaded? In my case it's rendering a template named error.twig, but I'm not sure how that's set or where ...
2
votes
1answer
219 views

Mandrill integration not sending email for front-end registration form

Update Emails only send out when you're not logged in as admin from the registration form. No errors received in dev mode, user created, but no activation email sent. Definitely not getting passed to ...
2
votes
1answer
445 views

User confirmation email not being received by hotmail?

Has anyone experienced any issues with hotmail not receiving user confirmation emails? Our site is set up on a staging server and confirmation emails seem to work for all other email addresses we have ...