Questions tagged [emails]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

Mail: There was an error testing your email settings

I'm trying to use mailgun to send emails. I'm on my local machine and I get the error: "There was an error testing your email settings." The API key matches up correctly and nothing of significance ...
0
votes
0answers
10 views

Test mail fails, no valid recipients

One of my sites does not send mail. When testing the email settings (using the test button at the bottom of the email settings page), I get an error. My log file shows this error thrown in Mailer.php. ...
1
vote
1answer
30 views

Send entry as HTML email

Looking to build a hybrid news service that publishes to a website but also sends an entry to a mailing list. Has anyone done anything similar?
0
votes
1answer
63 views

Need Swift Mailer to send emails as UTF-8

I have a Craft 3 site that used Freeform Pro for a contact form. All submissions from this form need to be sent, via email to a third party vendor who parses the information and submits it to a CRM. ...
1
vote
1answer
148 views

send e-mails via smtp without authentification

I try to send e-mails via SMTP without authentification and I'm getting the following error: There was an error testing your email settings. I checked my setup on https://www.smtper.net/. No ...
1
vote
1answer
31 views

How to change the Craft 3 activation email?

In my organization many of the employees believe the user activation email sent out by Craft is spam. How do I change the email text and possibly add an image, like our company logo, to the email?
0
votes
0answers
18 views

Passing variables to email template not working

I am building a Craft plugin which sends emails to users of a subscribed list. I'm trying to get Craft to send the email with a Twig template and pass in variables to that template. So far I've been ...
2
votes
1answer
79 views

Craft Commerce - Different confirmation email address for different product types or category

On a website I will be setting up there will be different ranges/types of products. Basically purchased from different departments within the organisation. I can filter the products in different ways ...
1
vote
1answer
16 views

Error using environment variable for email setting

I'm trying to create an environment variable for email settings, but it doesn't work. Here is my email setting at config/general.php 'dev' => [ '@host' => 'host', '@port' => '587', ...
0
votes
1answer
29 views

Is there a way to ask for an email address before you download a file?

For Wordpress there's a plugin called Email before download (https://wordpress.org/plugins/email-before-download/). I'd like to ask the user's email address before they are able to download a pdf file....
4
votes
2answers
1k 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 ...
1
vote
2answers
58 views

Parse variables into twig email template from custom module

I'm trying to send an email from my module and am trying to pass some vars into my module template that I can render using twig. Please note that this is a module template not a front end template. $...
0
votes
0answers
18 views

Settings Email - GMail setting test

We are trying to add email settings through the Craft control panel panel. We are trying our company account which is a Gmail address (hosted via GSuite). While testing the email service or trying to ...
1
vote
1answer
77 views

Change base URL for email activation link?

I am using Craft as a headless CMS and have set base Url/siteUrl to the url of my React/Gatsby site. I needed to do this as my navigation plugin, Navie, appends it by default. But now when users ...
1
vote
2answers
382 views

Loading email templates in a Craft 3 plugin

I've been struggling to make this work within a plugin. I have a html file in my templates folder called _email.html. I try to load it in my plugin but then I get an error. This is my code: Craft::$...
1
vote
1answer
17 views

Bulk selecting Members and then including them in an email to another specific Member in a different member group

I'm wondering if the following is possible within CraftCMS and suggestions for making it happen? We have two Member groups (Customers and Contractors). When a Customer makes an enquiry they complete ...
1
vote
2answers
137 views

Send email with dedicated SMTP settings from a Craft 2 plugin

I have looked a lot for this but cannot find any dedicated solution. Basically I want to do this: How to send email from Craft 3 custom plugin? … but for a Craft 2 plugin. A how-to for the global ...
2
votes
2answers
1k 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
3answers
1k views

Automatically subscribe users to MailChimp list?

I would like to automatically subscribe all newly registered users to a MailChimp mailing list.
2
votes
1answer
277 views

Craft 3 attachment email

I need to add an "attachment" to an email sent by Craft CMS 3. I used a custom "Module" for this with a "Model", "Service", "Record" and "Controller" I did some research but did not find any clear ...
0
votes
0answers
64 views

Notification Plugin - Internal Server Error

Have tried a couple different plugins to generate a simple email notification when someone submits a Guest Form. "Guest Entries Notification" didn't do anything. It didn't display errors or send an ...
1
vote
1answer
29 views

What are the risks of using Gmail for sending email from Craft CMS?

In Craft's documentation for email it says: Gmail might be a good option depending on your appetite for risk. But I don't see anything about what the risks are. Is there a risk of getting hacked, ...
3
votes
3answers
1k 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 ...
0
votes
0answers
32 views

Is it possible to send Solspace Freeform mail with custom module?

I'd like to send mails from my custom module for Craft. But instead of Craft I want to use Solspace Freeforms plugin. Is it possible to send mails with this plugin outside of frontend?
0
votes
0answers
13 views

Confirmation email still sent from old address after changing system email address

I noticed a client site still used my development email address as the system email address. I changed the setting accordingly: Old system email: jannis@ourdomain.tld New system email: online@...
1
vote
1answer
83 views

How to check if a user's new email has been verified

Background When the user setting Verify email addresses? is enabled, and the user's email is reset by a non-admin the address requires verification before being used as explained here. This does not ...
1
vote
1answer
120 views

HTML Email Template setting not working for reset password email

I'm on the latest release of craft 3.x. I have the HTML Email Template setting set to a twig file in my templates folder. When sending a test email the template is used to send the test email, however ...
2
votes
1answer
65 views

How to register a new System Message email

I want to send a welcome email to the user when they sign up (not an activation email). I can see the email and edit its text in the Control Panel, but the email doesn't send when a new user ...
2
votes
1answer
72 views

Commerce 1: Different default order status based on product types

I want to assign different default order status based on product types. Is this possible? What I need to achieve is to send different email notifications based on product types. Can this be ...
1
vote
1answer
57 views

Email template issue

I'm using Rias500/craft-contact-form-extensions plugin for creating custom email confirmation templates, and it works great but when I try to override the template (because I need confirmation emails ...
1
vote
2answers
514 views

How can I prevent an account activation email from being sent to an unverified user who registered via a front end registration form?

I have a front end user registration form, and I want users to receive a set password email after they've been activated manually in the back end by an admin. When they submit the user registration ...
1
vote
1answer
61 views

I do not have the /craft/storage/runtime/logs/ folder

I am trying to set up SMTP emails using Microsoft 365 and the settings are not working so I need to dig into the logs to find out why. When I go to find the folder it is not there. Instead I have a /...
1
vote
1answer
77 views

Use Same Email Address On Multiple User Accounts

I am needing to set up two distinct users (one for each of two LDAP log ins) and I need for them both to use the same admin email address. However, Craft 2 will not let me do this. Is there a way to ...
9
votes
3answers
3k 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 ...
1
vote
1answer
41 views

Add attachments with Craft Commerce

Suppose I have an assets field in my orders fields, how could I attach those files in the confirmation email?
9
votes
1answer
3k 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.
1
vote
1answer
1k views

Newsletter Sign up

I am trying to create a Newsletter registration form. I just want to collect emails somewhere in the CP, and let the client decide what to do with the list later on. Has anyone worked on something ...
1
vote
1answer
71 views

Editing User Email Address

I created a user group that has full permissions for User options in the CP, i.e. all the boxed ticked. However, they are not able to edit a user's email address. When changing the email field and ...
1
vote
1answer
109 views

Where are the E-Mail Templates?

Am I completely stupid or have the e-mail settings been removed after an update? I am searching for the text E-Mails they are sent if a new User is created, someone has his Passwort forgotten and so ...
3
votes
1answer
170 views

How to set view path for rendering email templates?

Trying to send an email Craft::$app->setViewPath('/Users/stian/dev/site.com/templates/'); Craft::$app->mailer->compose('confirmation.twig', ['orderId' => $orderId, 'customerId' => $...
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
2answers
294 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 ...
1
vote
2answers
1k views

Can't login after installing Craft CMS 3

I just installed Craft CMS 3 and I tried logging in as my admin user but it's not working. I enter the correct login information and nothing happens. I tried the reset password option but never got ...
1
vote
1answer
92 views

Custom Newsletter template

I'm trying to create an email newsletter template to make it easier to send out blog newsletters by looping over entries and generating the email straight out of craft. I did this often with Wordpress....
3
votes
3answers
1k 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
1answer
269 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 ...
1
vote
1answer
280 views

Integration with MailChimp et al

Is anyone aware of a solution for using Craft user data with something like MailChimp? This is a very simple use case of sending newsletters/announcements to registered Craft users. Would be even ...
1
vote
0answers
90 views

Redactor has destroyed my mailto links, now what?

I migrated from EE > CraftCMS. The email links in my EE WYGWAM fields were encoded as JS. When we imported to CraftCMS we lost all of those links. They now look like this: <a>joe@schmoe.com</...
1
vote
1answer
1k views

How to use the default HTML email template when sending an email from a plugin?

On /admin/settings/email, when the HTML Email Template field is set to a valid template, all system messages are sent using it. They inject the content of the messages inside the {% block main %}{{...
1
vote
2answers
398 views

Email template issue Craft Contact Form Extensions

I am using Contact Form Extensions plugin https://github.com/Rias500/craft-contact-form-extensions for setting up custom notification email template but not sure what tag would be used for additional ...