error sending password change confirmation biasemail 什么意思

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
I am attempting to send a confirmation email to a newly registered user using Rails 4.0.1 and Ruby 2.0.0.
I am not getting any errors but the mail just is not sending.
Here is the relevant code:
config/environments/development.rb
config.action_mailer.smtp_settings = {
:authenication=&:plain,
:address=&"smpt.mailgun.org",
:port=&587,
:domain=&"sandboxf4f4c96ebc7b4eb1b6c8c.mailgun.org",
:user_name=&"postmaster@sandboxf4f4c96ebc7b4eb1b6c8c.mailgun.org",
:password=&"6j3c9l35tu33"
app/model/user.rb
def create
@user=User.new(user_params)
if @user.save
ModelMailer.account_activation(@user).deliver
redirect_to lessons_url
render :new
mailers/model_mailer.rb
class ModelMailer & ActionMailer::Base
default from: "me@sandboxf4f4c96ebc7b4eb1b6c8c.mailgun.org"
def account_activation(user)
@user = user
mail to: "", subject: "Account Activation"
Any help would be appreciated.
Know someone who can answer?
Share a link to this
via , , , or .
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
Post as a guest
By posting your answer, you agree to the
Browse other questions tagged
Stack Overflow works best with JavaScript enabled当前位置: &
& 查看源码
_user.ini:源码内容
#&$Id:&_user.ini&-07-04&00:05:36Z&ian&$
#&Joomla!&Project
#&Copyright&(C)&2005&-&2008&Open&Source&Matters.&All&rights&reserved.
#&License&http://www.gnu.org/licenses/gpl-2.0.html&GNU/GPL,&see&LICENSE.php
#&Note&:&All&ini&files&need&to&be&saved&as&UTF-8&-&No&BOM
ACCOUNT&DETAILS&FOR=Account&Details&for&%s&at&%s
BACK-END&LANGUAGE=Back-end&Language:
BUTTON_LOGIN=Login
BUTTON_LOGOUT=Logout
CHECKED&IN=Checked&in
CHECKING&TABLE=Checking&Table
CONF_CHECKED_IN=Checked&out&items&have&now&been&all&checked&in.
CONFIRM&YOUR&ACCOUNT=Confirm&your&account.
COULD_NOT_FIND_EMAIL=a&User&with&the&specified&e-mail&address&could&not&be&found.
COULD_NOT_FIND_USER=a&User&with&the&specified&username&and&e-mail&address&could&not&be&found.
EDIT&YOUR&DETAILS=Edit&Your&Details
DATABASE_ERROR=A&database&error&occurred.&Please&try&again&later.
DESCLOGINFORM=This&Module&displays&a&username&and&password&login&form.&It&also&displays&a&link&to&retrieve&a&forgotten&password.&If&user&registration&is&enabled,&(refer&to&the&Global&Configuration&settings),&another&link&will&be&shown&to&invite&users&to&self-register.
EMAIL=E-mail
EMAIL&ADDRESS=E-mail&Address
ERROR_SENDING_CONFIRMATION_EMAIL=An&error&was&encountered&while&sending&the&confirmation&e-mail.
ERROR_SENDING_REMINDER_EMAIL=An&error&was&encountered&while&sending&the&username&reminder&e-mail.
E_SESSION_TIMEOUT=Your&session&may&have&expired.&Please&try&again.
FAILED&TO&COPY=Failed&to&copy.
FORGOT_YOUR_PASSWORD=Forgot&your&Password?
FORGOT_YOUR_USERNAME=Forgot&your&Username?
FRONT-END&LANGUAGE=Front-end&Language:
GREETING=Greeting
HELP&SITE=Help&Site:
HELP&SITE&FOR&THIS&USER=Help&Site&for&this&User
HINAME=Hi&%s,
IMAGE=Image
ITEMS=Items
INVALID_EMAIL_ADDRESS=the&e-mail&address&was&invalid.
INVALID_TOKEN=the&token&was&invalid.
JAUTHENTICATION::__CONSTRUCT:&COULD&NOT&LOAD&AUTHENTICATION&LIBRARIES.=JAuthentication::__construct:&Could&not&load&authentication&libraries.
LOGIN=Login
LOGOUT=Logout
LOGIN&MESSAGE=Login&Message
LOGIN&REDIRECTION&URL=Login&Redirection&Page
LOGOUT&MESSAGE=Logout&Message
LOGOUT&REDIRECTION&URL=Logout&Redirection&Page
LOGIN_DESCRIPTION=To&access&the&private&area&of&this&site,&please&log&in.
LOGOUT_DESCRIPTION=You&are&currently&logged&in&to&the&private&area&of&this&site.
MOD_LOGIN=&em&mod_login&/em&
NAME/USERNAME=Name/Username
NEWPASS_MAIL_MSG=The&User&Account&%s&%s&%s&%s&%s&%s
NEWPASS_MSG1=has&this&e-mail&associated&with&it.n&A&Web&User&from
NEWPASS_MSG2=has&just&requested&that&a&new&password&be&sent.nnYour&New&Password&is:
NEWPASS_MSG3=nnIf&you&did&not&ask&for&this,&don't&worry.&Only&you&are&seeing&this&message,&not&them.&If&this&was&an&error,&just&login&with&your&new&password&and&change&your&password&to&what&you&would&like&it&to&be.
NEW&PASSWORD&FOR=%s&::&New&Password&for&-&%s
NEW&USER&PASSWORD&CREATED&AND&SENT!=New&User&Password&created&and&sent!
NO&ACCOUNT&YET?=No&Account&Yet?
NOTICE=Notice
PARAMPOSTTEXT=This&is&the&text&or&HTML&that&is&displayed&below&the&login&form.
PARAMPRETEXT=This&is&the&text&or&HTML&that&is&displayed&above&the&login&form.
PARAMLOGINREDIRECTURL=Select&the&page&the&user&will&be&redirected&to&after&a&successful&login.&Select&from&all&the&pages&listed&in&the&drop&down&list.&If&no&selection&is&made,&the&Front&Page&will&be&loaded&by&default.
PARAMLOGOUTREDIRECTURL=Select&the&page&the&user&will&be&redirected&to&after&successfully&ending&their&current&session&by&logging&out.&Select&from&all&the&pages&listed&in&the&drop&down&list.&If&no&selection&is&made,&the&Front&Page&will&be&loaded&by&default.
PARAMLOGINMESSAGE=Show/Hide&the&JavaScript&Pop-up&indicating&Login&Success
PARAMLOGOUTMESSAGE=Show/Hide&the&JavaScript&Pop-up&indicating&Logout&Success
PASSWORD=Password
PASSWORD_RESET_CONFIRMATION_EMAIL_TEXT=Hello,nna&request&has&been&made&to&reset&your&%s&account&password.&To&reset&your&password,&you&will&need&to&submit&this&token&in&order&to&verify&that&the&request&was&legitimate.nnThe&token&is&%s&.nnClick&on&the&URL&below&to&enter&the&token&and&proceed&with&resetting&your&password.nn%snnThank&you.
PASSWORD_RESET_CONFIRMATION_EMAIL_TITLE=Your&%s&password&reset&request
PASSWORD_RESET_CONFIRMATION_FAILED=Your&password&reset&confirmation&failed&because&%s.
PASSWORD_RESET_FAILED=Your&password&reset&failed&because&%s.
PASSWORD_RESET_REQUEST_FAILED=Your&password&reset&request&failed&because&%s.
PASSWORD_RESET_SUCCESS=Your&password&has&been&reset.
PASSWORDS_DO_NOT_MATCH=Passwords&do&not&match.
PASSWORDS_DO_NOT_MATCH_LOW=the&passwords&do&not&match
PLEASE&ENTER&A&VALID&E-MAIL&ADDRESS.=Please&enter&a&valid&e-mail&address.
PLEASE&VERIFY&THE&PASSWORD.=Please&verify&the&password.
POST-TEXT=Post-text
PRE-TEXT=Pre-text
REGERROR=Registration&Error
REGISTER=Register
REGISTRATION=Registration
REGISTER_REQUIRED=Fields&marked&with&an&asterisk&(*)&are&required.
REGWARN_PASS=Please&enter&a&valid&password.&No&spaces,&more&than&six&characters,&and&containing&0-9,&a-z,&A-Z.
REGWARN_VPASS2=Password&and&verification&do&not&match.&Please&try&again.
REG_ACTIVATE_COMPLETE_TITLE=Activation&Complete!
REG_ACTIVATE_COMPLETE=Your&Account&has&been&successfully&activated.&You&can&now&log&in&using&the&username&and&password&you&chose&during&the&registration.
REG_ACTIVATE_NOT_FOUND_TITLE=Invalid&Activation&Link!
REG_ACTIVATE_NOT_FOUND=There&is&no&such&account&in&our&database&or&the&account&has&already&been&activated.
REG_COMPLETE_TITLE=Registration&Complete!
REG_COMPLETE=You&may&now&log&in.
REG_COMPLETE_ACTIVATE_TITLE=Registration&Complete!
REG_COMPLETE_ACTIVATE=Your&account&has&been&created&and&an&activation&link&has&been&sent&to&the&e-mail&address&you&entered.&Note&that&you&must&activate&the&account&by&clicking&on&the&activation&link&when&you&get&the&e-mail&before&you&can&login.
REMEMBER&ME=Remember&Me
REMIND_USERNAME_DESCRIPTION=Please&enter&the&e-mail&address&associated&with&your&User&account.&Your&username&will&be&e-mailed&to&the&e-mail&address&on&file.
REMIND_USERNAME_EMAIL_TIP_TITLE=E-mail&Address
REMIND_USERNAME_EMAIL_TIP_TEXT=Please&enter&the&e-mail&address&associated&with&your&account.
RESEND&USERNAME&FOR=Resend&username&for&%s
RESEND_MAIL_MSG=The&User&account&%s&%s&%s&%s&%s
RESEND_MSG1=has&this&e-mail&associated&with&it.n&A&Web&User&from
RESEND_MSG2=has&just&requested&to&get&the&username&resend.
RESEND_MSG3=nnIf&you&did&not&ask&for&this,&don't&worry.&You&are&seeing&this&message,&not&them.
RESET_PASSWORD_COMPLETE_DESCRIPTION=To&complete&the&password&reset&process,&please&enter&a&new&password.
RESET_PASSWORD_CONFIRM_DESCRIPTION=An&e-mail&has&been&sent&to&your&e-mail&address.&The&e-mail&contains&a&verification&token,&please&paste&the&token&in&the&field&below&to&prove&that&you&are&the&owner&of&this&account.
RESET_PASSWORD_EMAIL_TIP_TEXT=Please&enter&the&e-mail&address&for&your&account.
RESET_PASSWORD_EMAIL_TIP_TITLE=E-mail&Address
RESET_PASSWORD_PASSWORD1_TIP_TEXT=Please&enter&a&new&password&for&your&account.
RESET_PASSWORD_PASSWORD1_TIP_TITLE=Password
RESET_PASSWORD_PASSWORD2_TIP_TEXT=Please&enter&the&password&again.
RESET_PASSWORD_PASSWORD2_TIP_TITLE=Verify&Password
RESET_PASSWORD_REQUEST_DESCRIPTION=Please&enter&the&e-mail&address&for&your&account.&A&verification&token&will&be&sent&to&you.&&Once&you&have&received&the&token,&you&will&be&able&to&choose&a&new&password&for&your&account.
RESET_PASSWORD_TOKEN_TIP_TEXT=Please&enter&the&token&that&was&sent&to&your&e-mail&address.
RESET_PASSWORD_TOKEN_TIP_TITLE=Token
RESET_PASSWORD_USERNAME_TIP_TEXT=Please&enter&the&username&for&your&account
RESET_PASSWORD_USERNAME_TIP_TITLE=Username
RESET&YOUR&PASSWORD=Reset&your&Password
SELECT&A&USER&TO&DELETE=Select&a&User&to&Delete
SEND_MSG=Hello&%s,nnThank&you&for&registering&at&%s.nnYou&may&now&log&in&to&%s&using&the&username&and&password&you&registered&with.
SEND_MSG_ACTIVATE=Hello&%s,nnThank&you&for&registering&at&%s.&Your&account&is&created&and&must&be&activated&before&you&can&use&it.nTo&activate&the&account&click&on&the&following&link&or&copy-paste&it&in&your&browser:n%snnAfter&activation&you&may&login&to&%s&using&the&following&username&and&password:nnUsername:&%snPassword:&%s
SEND_MSG_ADMIN=Hello&%s,nnA&new&user&has&registered&at&%s.nThis&e-mail&contains&their&details:nnName:&%snE-mail:&%snUsername:&%snnPlease&do&not&respond&to&this&message.&It&is&automatically&generated&and&is&for&information&purposes&only.
SEND&REGISTRATION=Send&Registration
SHOW/HIDE&THE&SIMPLE&GREETING&TEXT=Show/Hide&the&simple&greeting&text
SORRY,&NO&CORRESPONDING&USER&WAS&FOUND=Sorry,&no&corresponding&user&was&found.
SUBMISSION&SUCCESS!=Submission&Success!
SUBMIT=Submit
SUBMIT_SUCCESS_DESC=Your&Item&has&been&successfully&submitted&to&our&administrators.&It&will&be&reviewed&before&being&published&on&this&site.
TIME&ZONE&FOR&THIS&USER=Time&Zone&for&this&User
TOKEN=Token
UNABLE&TO&FIND&A&USER&WITH&GIVEN&ACTIVATION&STRING=&The&system&is&unable&to&find&a&user&with&the&given&activation&string.&The&account&may&already&be&activated&or&their&activation&code&has&expired.&If&it&has&expired,&you&need&to&re-register&with&this&site.
UPDATE=Update
UP_EXISTS=Image&$Userfile_name&already&exists.&Please&rename&the&file&and&try&again.
UP_SIZE=You&cannot&upload&files&greater&than&15kb&in&size.
USERNAME&RESENT=Username&resent
USERNAME_REMINDER_EMAIL_TEXT=Hello,nnA&username&reminder&has&been&requested&for&your&%s&account.nnYour&username&is&%s.nnTo&login&to&your&account,&click&on&the&link&below.nn%snnThank&you.
USERNAME_REMINDER_EMAIL_TITLE=Your&%s&username
USERNAME_REMINDER_FAILED=Your&username&reminder&failed&because&%s.
USERNAME_REMINDER_SUCCESS=Your&username&has&been&e-mailed&to&%s.
USER&EDITOR=User&Editor:
USER&NAME=Username
USER&UNKNOWN=User&Unknown
VERIFY&PASSWORD=Verify&Password
WARNJAVASCRIPT=!Warning!&JavaScript&must&be&enabled&for&proper&operation.
WELCOME!=Welcome!
WELCOME_DESC=Welcome&to&the&registered&user&area&of&our&site.
YOU&MAY&ONLY&UPLOAD&A&GIF,&OR&JPG&IMAGE.=You&may&only&upload&a&.gif,&or&.jpg&image.
YOUR&NAME=Your&Name
YOUR&SETTINGS&HAVE&BEEN&SAVED.=Your&settings&have&been&Saved.
YOU&ARE&ALREADY&REGISTERED.=You&are&already&registered.
友情链接:
CopyRight & 2008- All Rights reserved. 苏ICP备
号 京公网安备:95

我要回帖

更多关于 confirmation bias 的文章

 

随机推荐