Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

can't send emails #50

Closed
duezerouno opened this issue Nov 29, 2012 · 12 comments
Closed

can't send emails #50

duezerouno opened this issue Nov 29, 2012 · 12 comments

Comments

@duezerouno
Copy link

Email package is installed and the MAIL_URL environment variable looks like

smtp://USERNAME:PASSWORDHOST/

When i ask to recover the password it says "email sent" but nothing happens. any help?

@SachaG
Copy link
Contributor

SachaG commented Nov 30, 2012

It seems like this might be more of an issue with your Meteor config than Telescope. Are the emails appearing in the console log?

I've only used Mailgun to send emails from Telescope, but I can confirm that this at least works. Maybe you could give it a try? (more info here: http://docs.meteor.com/#email )

@duezerouno
Copy link
Author

I have been trying with mailgun (my app of choice is mandrill.com) but nothing happens. should i place the email package somewhere? Right now local folder in .meteor is in .gitignore so maybe that's why it does not load?

@SachaG
Copy link
Contributor

SachaG commented Nov 30, 2012

You should not have to do anything about the email package, it's included by default with Meteor.

I'm not sure about .meteor, I don't think it should be in .gitignore… but anyway that should not make any difference if you're testing locally.

In server/users.js there's a testEmail function you can call (just do Meteor.call("testEmail") in your browser's console) to fire off an email (just put your own email in there first). Maybe you can use that to see if it's working or not?

@duezerouno
Copy link
Author

I've already pushed to Heroku. I can't really find a solution for this. Might just start again and try to set the email package before deploying.

@tmeasday
Copy link
Contributor

@iamues So your heroku config looks something like

MAIL_URL:      smtp://<user>%40heroku.com:<pass>@smtp.sendgrid.net:587/

?

I'm not sure if mailgun uses it or not but the %40 (for @ in the username) tripped me up at first..

@duezerouno
Copy link
Author

@tmeasday similar, because I end up using Mandrill which has no @.

I've placed that in local/app/build/local/email/email.js

@tmeasday
Copy link
Contributor

If you are using heroku, why not set it with
heroku config:add MAIL_URL=….

On Friday, 30 November 2012 at 7:20 PM, Andrea wrote:

@tmeasday (https://github.com/tmeasday) similar, because I end up using Mandrill which has no @.
I've placed that in local/app/build/local/email/email.js


Reply to this email directly or view it on GitHub (https://github.com/SachaG/Telescope/issues/50#issuecomment-10881712).

@duezerouno
Copy link
Author

@tmeasday apparently it is a Mandrill problem. Your solution worked with Mailgun. Thanks

@duezerouno
Copy link
Author

I am trying to change the default email text in local/build/app/packages/accounts-password/email_templates.js but nothing happens. Maybe uploading the Packages to Heroku could fix this problem?

@tmeasday
Copy link
Contributor

I'm confused. You shouldn't be editing anything in the .meteor directory.

Why would you not just set the config var via heroku config:add?

@duezerouno
Copy link
Author

hmmm. how can i configure the Accounts.emailTemplates "from:" variable?

@SachaG
Copy link
Contributor

SachaG commented Dec 1, 2012

I'm not sure what that variable is, I've only tried following the Meteor docs instruction for email config as outlined here: http://docs.meteor.com/#email

So you'd specify the "from" email in the Email.send() options.

@SachaG SachaG closed this as completed Dec 5, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants