[6.0] smtpclient sending errror

Bug #628608 reported by Eric Caudal - www.elico-corp.com
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

when sending test message from server my message stays in error with the following message:

please run connect() first

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote : Re: [Bug 628608] [NEW] [6.0] smtpclient sending errror

After some time (probably next schedule job), the message is finally
sent and correctly received in the mail box.

Still I cannot send an email from CRM case as I receive the error :
Unable to send mail. Please check SMTP is configured properly.

Eric

Revision history for this message
Kinly (kinlyfordy4u) wrote :

@ Eric yes I have also face this problem.

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Guys,

    You'll face the issue only if you haven't configured your smtp sever. You can configure the server in two ways, either you can give the parameters when starting the server or else you can directly give them to config file. Here are the smtp options which you need to give on starting the server.

SMTP Configuration:
    --email-from=EMAIL_FROM
                        specify the SMTP email address for sending email
    --smtp=SMTP_SERVER specify the SMTP server for sending email
    --smtp-port=SMTP_PORT
                        specify the SMTP port
    --smtp-ssl specify the SMTP server support SSL or not
    --smtp-user=SMTP_USER
                        specify the SMTP username for sending email
    --smtp-password=SMTP_PASSWORD
                        specify the SMTP password for sending email

    I have tested the same by configuring the server at my side it works absolutely fine. IMHO it's not a bug at all Please configure the smtp server at your end and recheck. Do notify us if the problem still persists.

Thanks.

Changed in openobject-addons:
milestone: none → 6.0
status: Confirmed → Invalid
Revision history for this message
coddemar (coddemar) wrote :

I am still unable to send an email from CRM. When I click Reply in lead's Communication & History tab I get this "Unable to send mail. Please check SMTP is configured properly" however I can send an email from Tools -> Email Template -> Emails which means smtp does configured properly.
I am also unable to Mass Mail to a customer from the Address Book - mail doesn't go out, nothing happens.
There must be something in permissions, even administrator seem to have no rights to email from CRM and Address Book
Could you please clarify?
Thanks

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

Please check the configuration file you use to start OpenERP server (or use the already mentioned online parameters):

##############################################################################
# SMTP Configuration:
##############################################################################
#specify the SMTP email address for sending email
email_from = <email address hidden>

#specify the SMTP server for sending email
smtp_server= smtp.yourisp.com

# specify the SMTP port
smtp_port = 587

#specify the SMTP server support SSL or not
smtp_ssl= True

#specify the SMTP username for sending email
smtp_user = <email address hidden>

# specify the SMTP password for sending email
smtp_password = password

Changing obviously above information with the ones provided by your ISP.

this information is the one used by CRM cases to send the emails.

Revision history for this message
coddemar (coddemar) wrote :

Thank you but it appears that smtp does work: I use smtp.gmail.com with port 25 and TLS which allows me to send mails from within Tools ->Emails

 I can send templates directly from templates but it doesn't work from CRM and Address Book

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote : Re: [Bug 628608] Re: [6.0] smtpclient sending errror

Not sure port 25 is feasible. Check:
http://mail.google.com/support/bin/answer.py?answer=13287

--
Eric

Revision history for this message
coddemar (coddemar) wrote :

It's OK since it works with TLS however I've just changed smtp port to 587 as recommended and restarted - same error.

I have an error when replying to a CRM case. Also when I click Emails link on Customer's card sidebar and choose New - I get email form with all fileds in grey/unavailable (according to Object it is mailgate.message were Administration/Configuration has all rights and bunch of rights for Sales/User etc groups where I am a member too)

It appears I can send only templates from Tools->Emails and the Object Model working for me there is email_template.account were Administration/Configuration has all rights as well.

Previously in version 5 one should have assigned particular users to smtp account, now I don't see such possibility and kind of at lost.

I need individual users sending replies to cases from corresponding corporate-wide-enabled addresses. I get mails successfully assigned as cases in respective areas (Leads, Claims, etc) but replying to cases is not possible and the error is "Unable to send mail. Please check SMTP is configured properly"

I can see about hundred experts here notified by this bug ID and would appreciate any guiding direction if it is only me and it is not a bug

Thank you

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

Mail reception in cases depends on fetchmail
Sending template mails depends on email_template
Sending email from cases depends on mail_gateway

First step is: I would check that the email settings in your
openerp-server.conf are workable in any mail client (TB, OL etc...).
Additionaly I would try to start a fresh database, using your email
settings. If that's working then you know this is not a email setting
problem.

Next step, if you are completely sure of your mail setup, then check
your users rights in 'access control list' for the following
objects/groups (search for model=mailgate):
Name Object Group Read Access Write Access Create Access Delete Access
mail_gateway.mailgate.message Mailgateway Message Administration /
Configuration True True True True
mail_gateway.mailgate.thread Mailgateway Thread Administration /
Configuration True True True True
mail_gateway.mailgate.message.internal Mailgateway Message Employee True
False False False
mail_gateway.mailgate.message.partner.manager Mailgateway Message
Partner Manager True True True True
mail_gateway.mailgate.message.manager Mailgateway Message Sales /
Manager True False False False
mail_gateway.mailgate.thread.manager Mailgateway Thread Sales / Manager
True True True True
mail_gateway.mailgate.thread Mailgateway Thread Sales / User True True
True True
mail_gateway.mailgate.message.user Mailgateway Message Sales / User True
True True True

Check as well if any record rule containing mailgate.thread or message

--
Eric

Revision history for this message
coddemar (coddemar) wrote :

Hi Eric,
Thank you for your help, permissions were OK and I got a dead-end. I have tried on alternative host and the script was OK. Therefore I should blame on the hoster - sisalp.fr provided us a half operational host with very poor support

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

You're welcome!
Good to know it helps!
Have a nice day :)

Revision history for this message
Mihai Satmarean (mihai-satmarean) wrote :

I cannot send an email from CRM case as I receive the error :
Unable to send mail. Please check SMTP is configured properly.

If I go to tools->email template->Emails I am able to send e-mail,
but having the same configuration the CRM refuses to send.

Reading the above comments, I understand that the server needs some file properly configured.

I am wondering why this particular module needs this file, and other modules can use different e-mail functions without this file.

And other question: There are 3 - 4 e-mail clients with some functionality inside, can somebody unify somehow this functionality to the best use for the user?

I do not find it comfortable to edit some file on the server, since other modules can use settings in the admin interface.

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.