This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Email function
#10
Hi,

You can call any function from common functions without loading the lib, so mail() should work when adding correct password and username. You probably need to enable “less secure apps” in your gmail account.

When calling a function from a user lib you need to load it first by require("user.yourlibname").

Right now you are calling the function ”email” but without loading it with require() and your function is Email() with a capital E and you are calling email() with a lower case e, script is case sensitive so this is also a reason why it does not work.

Why are you using the user lib for Email in the first place? I would use / adjust the one in common functions..

BR,

Erwin
Reply


Messages In This Thread
Email function - by XSPA2474KW - 25.01.2020, 07:40
RE: Email function - by Erwin van der Zwart - 25.01.2020, 08:47
RE: Email function - by XSPA2474KW - 25.01.2020, 13:54
RE: Email function - by admin - 25.01.2020, 13:56
RE: Email function - by XSPA2474KW - 25.01.2020, 14:55
RE: Email function - by admin - 25.01.2020, 15:28
RE: Email function - by XSPA2474KW - 25.01.2020, 16:14
RE: Email function - by Erwin van der Zwart - 25.01.2020, 16:57
RE: Email function - by XSPA2474KW - 25.01.2020, 17:17
RE: Email function - by Erwin van der Zwart - 25.01.2020, 17:43
RE: Email function - by XSPA2474KW - 25.01.2020, 18:07
RE: Email function - by Domoticatorino - 06.06.2020, 23:55
RE: Email function - by admin - 07.06.2020, 07:26
RE: Email function - by Domoticatorino - 07.06.2020, 09:12
RE: Email function - by Domoticatorino - 08.06.2020, 08:02
RE: Email function - by admin - 08.06.2020, 08:11
RE: Email function - by Domoticatorino - 08.06.2020, 08:33
RE: Email function - by admin - 08.06.2020, 08:36
RE: Email function - by toujour - 13.06.2020, 09:54
RE: Email function - by Domoticatorino - 13.06.2020, 14:42
RE: Email function - by admin - 13.06.2020, 16:06
RE: Email function - by Domoticatorino - 15.06.2020, 14:48

Forum Jump: