Questions tagged [emails]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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?
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.
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?
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
924 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 ...
2
votes
2answers
914 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 ...
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 ...
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. ...
3
votes
1answer
228 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)...
2
votes
1answer
117 views

What is the best way to generate email messages with attachments from Twig files?

I am coming from a .net/C# background and we have recently moved to a Craft/Twig platform. What is the best way to do this: Have a visitor come to a Craft webpage (Twig file), enter their email ...
2
votes
1answer
96 views

Do email messages use control panel or translation file template when sending by key?

When an email key is registered for use with craft()->email->sendEmailByKey, it shows up in the control panel at Email Settings->Messages. This seems like a great way to allow easy editing of the ...
1
vote
1answer
470 views

Adding CC to contact form plugin

I'm trying to edit the Contact Form plugin to copy the email to another address. Looking in apps/models/EmailModel.php I see this for CC: 'cc' => array(AttributeType::Mixed); Looking in apps/...