Mail not sent from redmine
Added by gaurabmani shrestha about 14 years ago
I have configured my redmine with gmail smtp server. The when i test the test email by clicking in the "Send Email" from email notification section i get the following message "An error occurred while sending mail (execution expired)".
I have set the configs in production.rb as
#config.action_mailer.logger = nil
config.log_level = :debug
config.action_mailer.perform_deliveries = false
Set the email.yml as below
production:
delivery_method: :smtp
smtp_settings:
tls: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
user_name: "myid@mycompany.com"
password: "****"
development:
delivery_method: :smtp
smtp_settings:
tls: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
user_name: "myid@mycompany.com"
password: "****"
test:
delivery_method: :test
Below if the part of login file from production.log
Sending email notification to: myid@mycompany.com
Sent mail to
Date: Thu, 28 Oct 2010 05:47:46 -0500
From: email2@gmail.com
Bcc: myid@mycompany.com
Subject: Redmine test
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=mimepart_4cc954d2807c7_4fbc159d164bea2413f
Precedence: bulk
X-Mailer: Redmine
Auto-Submitted: auto-generated
X-Redmine-Site: Redmine
X-Redmine-Host: localhost:3000
--mimepart_4cc954d2807c7_4fbc159d164bea2413f
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline
This is a test email sent by Redmine.
Redmine URL: http://localhost:3000/redmine/
-- =
You have received this notification because you have either subscribed to=
it, or are involved in it.
To change your notification preferences, please click here: http://hostna=
me/my/account
What can be the issue?
Replies (8)
RE: Mail not sent from redmine - Added by Felix Schäfer about 14 years ago
gaurabmani shrestha wrote:
config.action_mailer.perform_deliveries = false
You can't expect redmine to be able to send mails if you tell rails not to send mails :-)
RE: Mail not sent from redmine - Added by gaurabmani shrestha about 14 years ago
Thanks Felix for the correction, since iam new to redmine not so friendly with it's configs.
I changed it to true and restarted the application and the same problem exists. It takes some time when i press the link "Send a test mail " link then after some time it displays "An error occurred while sending mail (execution expired)"
Do you also find anything wrong with the log file generated also are there any tips so that i can trace the source of the issue.
RE: Mail not sent from redmine - Added by Felix Schäfer about 14 years ago
Try not quoting the port in your config file, it might be that some point in the chain doesn't take strings as port arguments.
Anyway, your error could be due to a number of things: can your redmine server access gmail, or is there a firewall in between, are the routes correct, is your ruby/rails recent enough that it can do TLS, …?
RE: Mail not sent from redmine - Added by gaurabmani shrestha about 14 years ago
How can i test that my redmine server can access the gmail?, i have installed the latest redmine version.
RE: Mail not sent from redmine - Added by Felix Schäfer about 14 years ago
Try telnet smtp.gmail.com 587
from the server your redmine is installed on.
Mail not sent from redmine - Added by mohd sawad about 14 years ago
Content removed in favor of Email Notification is not working.
Don't spam the forums with multiposts. See ForumCodeOfConduct for more information.
--Holger
Unable to send email on redmine - Added by mohd sawad about 14 years ago
Content removed in favor of Email Notification is not working.
--Holger
RE: Mail not sent from redmine - Added by Holger Just about 14 years ago
MOHD IDRISH sawad: Consider this your last warning before being blocked. Don't copy&paste your stuff all over the place and hijack other people's threads. See ForumCodeOfConduct for more information.