Skip to content

Commit

Permalink
Merge pull request #37 from mailsac/add_direct_delivery_service
Browse files Browse the repository at this point in the history
Fix nodejs email capture js example not showing
  • Loading branch information
mjmayer committed Aug 18, 2020
2 parents 5b0d6f3 + 96387a8 commit 222bdb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions services/email_capture/email_capture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ SMTP configuration with these settings.
.. tabs::
.. tab:: Node.js Javascript

.. pygments throws error because of the \r\n in the code example use force
.. literalinclude:: email_capture_example.js
:language: javascript
:force:
:caption: Send email using Email Capture

.. tab:: Python
Expand Down
2 changes: 1 addition & 1 deletion services/email_capture/email_capture_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ transporter.sendMail({
from: '"Mywebapp Customer Support" no-reply@mywebapp.com',
to: 'mycustomer@gmail.com',
subject: 'Password reset',
text: `Click on the link to reset you password\r\n
text: `Click on the link to reset you password
https://mywebapp.com/password-reset/PasswordResetToken`
})
.then(response => {
Expand Down

0 comments on commit 222bdb0

Please sign in to comment.