If Standard Service Provider used, isnt required to create EMail Domain in the setup ?
What port number for SMTP in the Sparkpost Standard Service ? As there are restrictions on mail ports for Cloud Providers
If there is you will need with Sparkpost which SMTP port to use, you must have recommended settings given by Sparkpost.
perfect Sparkpost worked, though it is bit slower compared to Sendgrid like to know is there any reason why Erpnext recommends it.
Thanks for solution @Nick
@Nick @arvind Hello, want to ask how you setup incoming email with this thread, i m using zoho as a host
Hi @Arvindwill I think you’ve been doing this all wrong. My ERPNext is hosted on google cloud as well and i use GSuite and email setup is by far the easiest configuration i had to do.
Before you configure the domain, ensure you enable connection to unsecured apps from your google admin. Force this policy on all accounts to ensure that no restriction exists.
to configure your email domain, it doesn’t matter if it is @mycompany.com so long as the mail service is GSuite, your incoming mail server is imap.gmail.com and your outgoing is smtp.gmail.com
ensure you also check the boxes Use IMAP and Use SSL under incoming and Use TLS under outgoing.
Also, there’s no need to specify the port as you did in your screenshot as since selecting Use TLS tells the system to select the default TLS port which is either 465 or 587. This is also standard for google cloud so you don’t need to configure any firewall parameters to allow connection through that port.
If you follow these steps above, your email domain setup should be saved in seconds unless of course there’s something else that has not been disclosed in this thread. See a screenshot of my configuration for reference:
this is not working for me is there a setting more in a different file i have to do first?
I have try several ports.
For i forget erpnext is working on a virtual machine.
Greets Hans
I found that creating a GMail domain doesn’t work. So configure the email account directly, select enable outgoing to reveal the smtp settings and enter them there. Leave the domain and service selection options blank. It should work that way. See screenshot below:
Default sending and inbox where to find? i think the default sending and inbox i cant find only a empty page.
And we got our own email server with domain.
Go to Setup > Email > Email Account
Create a new Email Account
Select Service as SendGrid
Set your SendGrid Username and SendGrid API Key as the password
On saving the Email Account, SendGrid Integration app will attempt to create a Webhook in your SendGrid account
This route is what do and then i got this empty page see picture
Follow the bread crumbs on the top left corner of this screenshot, you will see new email. Fill in the required information (Leave the Domain and Service field blank if your mail is hosted by Gmail). Check the box Enable Outgoing and a new set of field will appear for you to enter the smtp information for Gmail. Be sure to check Use IMAP and Use TLS and enter the correct port numbers as shown the my previous screenshot:
Setup → Email Account
If you are using another Email provider though, i may be unable to help you further as i have not used any other provider apart from Gmail.
Good luck.
Then there’s something wrong with your installation. run bench update --reset lets see if it will fix the doctype not loading correctly
Must i restart something? this not helping me sorry.
Is everything else running on the instance?
The blank screen thing happened to me on Firefox. I switched to Chrome and it worked okay.
Later, I found out it was because my JS bundles had not built properly. Now it works on both.
@sunhoww i have used chrome now and the problem is still there. And can i rebuild my JS Bundles?
What i even did is clearing cookies and more but nothing helps me. This is maybe a stupid question but where is the config of this maybe i can edit this by hand.
INFO:bench.utils:npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm WARN frappe@ No description
Backing up sites…
Patching sites…
Migrating site1.local
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Updating DocTypes for erpnext_shopify: [========================================]
Updating DocTypes for sendgrid_integration: [========================================]
Syncing help database…
/home/frappe/frappe-bench/apps/frappe/frappe/build.py:106: UserWarning: Source /home/frappe/frappe-bench/apps/erpnext_shopify/erpnext_shopify/public does not exists.
warnings.warn(‘Source {source} does not exists.’.format(source = source))
/home/frappe/frappe-bench/apps/frappe/frappe/build.py:106: UserWarning: Source /home/frappe/frappe-bench/apps/sendgrid_integration/sendgrid_integration/public does not exists.
warnings.warn(‘Source {source} does not exists.’.format(source = source))
/home/frappe/frappe-bench/apps/frappe/frappe/build.py:106: UserWarning: Source /home/frappe/frappe-bench/apps/sendgrid_integration/sendgrid_integration/docs does not exists.
warnings.warn(‘Source {source} does not exists.’.format(source = source))
Wrote css/frappe-web.css - 65.11 KB
Wrote js/frappe-web.min.js - 132.77 KB
Wrote js/control.min.js - 77.04 KB
Wrote js/dialog.min.js - 116.9 KB
Wrote css/desk.min.css - 309.04 KB
Wrote css/frappe-rtl.css - 32.49 KB
Wrote js/libs.min.js - 1.13 MB
Wrote js/desk.min.js - 462.73 KB
Wrote css/module.min.css - 2.08 KB
Wrote css/form.min.css - 4.47 KB
Wrote js/form.min.js - 196.65 KB
Wrote css/list.min.css - 13.35 KB
Wrote js/list.min.js - 154.76 KB
Wrote css/report.min.css - 7.89 KB
Wrote js/report.min.js - 260.58 KB
Wrote js/web_form.min.js - 247.55 KB
Wrote css/web_form.css - 24.42 KB
Wrote js/print_format_v3.min.js - 23.39 KB
Wrote css/erpnext.css - 8 KB
Wrote js/erpnext-web.min.js - 3.8 KB
Wrote js/erpnext.min.js - 166.06 KB
Wrote js/item-dashboard.min.js - 8.13 KB
Greeting Hans
You could see what errors you get in Chrome Developer Tools console pops up. The blank screen thing is probably due to errors in client side.
[Show/hide message details.] ReferenceError: email_defaults is not defined[Learn More] form.min.js:200:1
http://10.0.1.173/assets/js/form.min.js:200:1
setup
http://10.0.1.173/assets/js/form.min.js:2686:14
_f.Frm.prototype.setup
http://10.0.1.173/assets/js/form.min.js:172:2
_f.Frm.prototype.refresh
http://10.0.1.173/assets/js/form.min.js:446:4
load
http://10.0.1.173/assets/js/form.min.js:87:3
show_doc/<
http://10.0.1.173/assets/js/form.min.js:82:4
with_doc
http://10.0.1.173/assets/js/desk.min.js:5505:4
show_doc
http://10.0.1.173/assets/js/form.min.js:65:3
make
http://10.0.1.173/assets/js/form.min.js:27:4
show
http://10.0.1.173/assets/js/desk.min.js:9671:5
frappe.route
http://10.0.1.173/assets/js/desk.min.js:2193:3
http://10.0.1.173/assets/js/desk.min.js:2310:2
dispatch
http://10.0.1.173/assets/frappe/js/lib/jquery/jquery.min.js:3:7485
$event.dispatch
http://10.0.1.173/assets/js/report.min.js:3031:9
add/r.handle
http://10.0.1.173/assets/frappe/js/lib/jquery/jquery.min.js:3:5603
The issue is probably with this. It seems frappe/email/doctype/email_account/email_account.js
is not getting loaded.
It might be because of a number of things, but, one thing I’d do -
- Check the repo branches of
frappe
anderpnext
apps. - Assuming the setup is for production, the apps should be on the master branch.
- If they are anything else, switch branch to master.
- Update. (or migrate and rebuild)