-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{SendEmail} Cancelling email due to failed sending attempt. Check the log for the errors! #39
Comments
Make sure supervisor is running:
Make sure your mailgun settings are correct. Please attach all logs listed here. Also make sure the email task is actually running by checking:
|
@Raikia thx for replay
all mailgun details are token from : here
## LOGS
|
Ok, so it looks like Mailgun is refusing to send the email to that email account. If you use the sandbox mailgun email service, you have to specifically authorize recipients for it otherwise it will be rejected. I assume you haven't done that and that's why it's being rejected. Please read this: https://help.mailgun.com/hc/en-us/articles/217531258 |
@Raikia edit: if this is the problem why i don't have any thing related to this in mailgun logs from here: https://app.mailgun.com/app/logs i have also tested my gmail credentiels to use gmail smtp and i have always the some problem's |
@Raikia |
Maybe is the same problem i have
|
@burakubosu please check: #36 (comment) @ziflar I'm having a difficult time reproducing this problem you are experiencing. Can you sanitize your ".env" file from sensitive information and provide that maybe? :-/ |
i have the same problem can you fix plz |
the whole problem is the time i live in africa and the times is in chicago the last try i change the time zone and hoope the email is in the box thank you |
@leoiii5 i've tested this way with no result. i've changed the time to my time zone but always the same problem |
I'm still waiting on your ".env" file so I can continue debugging this. |
@Raikia ok i'm not on ubuntu PC |
@Raikia If you edit this file, it is imperative that you run:php artisan config:cache############################ Application environment (default: master)APP_ENV=master Debugging mode (default: false)APP_DEBUG=false Application Logging levelAPP_LOG_LEVEL=debug Application Timezone (default: America/Chicago)APP_TIMEZONE=Changed_to_my_time_zone(Europe/City) Application encryption keyGenerate this with "php artisan key:generate"Then run: "php artisan config:cache"APP_KEY=base64:bababababbbggdgdggggdgda= Application URL (default: http://localhost)APP_URL=http://127.0.0.1:80 Application Name, no need to change this (default: FiercePhish)APP_NAME=FiercePhish #------------------------------------------------------------------------------- ############################## Root URL prefix for the proxy. (default: null)This is useful if FiercePhish is behind a proxy or loadbalancerExample: https://firephish.example.com/PROXY_URL=null Schema to use for the proxy. (default null)This is useful if FiercePhish is behind a HTTPS proxy or loadbalancerOptions: null https httpPROXY_SCHEMA=null #------------------------------------------------------------------------------- ################################# Database type (default: mysql)DB_CONNECTION=mysql Database host (default: 127.0.0.1)DB_HOST=127.0.0.1 Database port (default: 3306)DB_PORT=3306 Database username (default: root)DB_USERNAME=fiercephish Database passwordDB_PASSWORD=My_db_password Database name (default: fiercephish)DB_DATABASE=fiercephish #------------------------------------------------------------------------------- ############################## Service settings############################## Cache driver (this shouldn't really change) (default: file)CACHE_DRIVER=file Session driver (this shouldn't really change) (default: file)SESSION_DRIVER=file Broadcast driver (this shouldn't really change) (default: log)BROADCAST_DRIVER=log Queue drvier (this shouldn't really change) (default: database)QUEUE_DRIVER=database Redis hostname (this is unused currently) (default: 127.0.0.1)REDIS_HOST=127.0.0.1 Redis password (this is unused currently) (default: null)REDIS_PASSWORD=null Redis port (this is unused currently) (default: 6379)REDIS_PORT=6379 Pusher App ID (this is unused currently) (default: null)PUSHER_APP_ID=null Pusher key (this is unused currently) (default: null)PUSHER_APP_KEY=null Pusher secret (this is unused currently) (default: null)PUSHER_APP_SECRET=null #------------------------------------------------------------------------------- ############################# Mail driver to use (default: smtp)Options: stmp mailgunMAIL_DRIVER=mailgun SMTP hostname (default: 127.0.0.1)MAIL_HOST=127.0.0.1 SMTP port (default: 25)MAIL_PORT=25 SMTP username (default: null)MAIL_USERNAME= SMTP password (default: null)MAIL_PASSWORD= SMTP connection encryption (default: null)Options: null tlsMAIL_ENCRYPTION= Mailgun domain (default: null)MAILGUN_DOMAIN=sandboxgdrdgsgsrdbf543256677778643.mailgun.org(my mailgun_sandbox) Mailgun secret key (default: null)MAILGUN_SECRET=key-453216Ucc6dbc6xxxxxxxxxxxxxxx(my mailgun_api_key) #------------------------------------------------------------------------------- #################################### Prefix for FiercePhish instance (default: null)Example: if this is "test/this", access FiercePhish by browsingto http://IP/test/thisURI_PREFIX= Test mode for email sending (default: false)If this is "true", emails will not actually be sentTEST_EMAIL_JOB=false Imap host for inbox feature (default: null)IMAP_HOST=127.0.0.1 Imap port for inbox feature (default: 143)IMAP_PORT=143 Imap username for inbox feature (default: fiercephish)Currently unusedIMAP_USERNAME=fiercephish Imap password for inbox feature (default: null)Currently unusedIMAP_PASSWORD=FYBfFxxxxxxxxxxxxxxxxxxxxxxxxx Email to BCC on all emails sent out (default: null)This is helpful if you want to see all emails actuallybeing sent and want a log of it.MAIL_BCC_ALL= #------------------------------------------------------------------------------- ################################# This enables Analytics to see how much FiercePhish is actually being used. Bybeing able to see how much this project is being used, I can dedicate time tospecific features and it encourages development. All information is anonymizedand no sensitive data is ever sent. However, if you would like to disable this,change below to "false". It is much appreciated to keep it enabled, however.(default: true)ANALYTICS=true |
Ok, I've reproduced the bug. Sorry for the delay, a fix will be pushed shortly |
Fix has been pushed. You can update by using the "./update.sh" script. This was a combination of the bug identified in #36 and a bug with reporting emails as being sent instead of failed. I also added more logging so when it says "check the logs", there is actually a log to check! Sorry it took me a while to get to this, but you should be good to go. Respond back here if you still have the issue and I will re-open the issue ticket. |
@Raikia |
thkx for this good job.
i've installed FiercePhish on ubuntu 16.04 with no error's.
i've added mailgun domaine and api key to Email Settings.
i try to use the send option but no message have sent .
i have this error :
{SendEmail} Cancelling email due to failed sending attempt. Check the log for the errors!
Last 200 lines of /var/log/mail.log=Empty log file
i've just started apache2-mysql-postfix-and mailservice
there is any other service's to start also with apache2 -mysql-mailservice ,???
i have on the
Email log : status=sent ,but i receive no message
just for information;
mailgun work good with curl and php
please do a wiki page to explain how to start using FiercePhish
thx to replay
@+
The text was updated successfully, but these errors were encountered: