smtp accounts
kennethk
Posts: 86
Trying to figure out of how to use the new smtp keywords linked up with a gmail account.
Finding old treads about gmail is not useable bla,bla,bla...
Anyone tried it for sending emails directly from netlinx?
Any reson gmail shouldnt work?
Any tip about another provider i could try?
vfemail didnt help me as it gave me another errror... TLS not supported by server/even i turned it off
Finding old treads about gmail is not useable bla,bla,bla...
Anyone tried it for sending emails directly from netlinx?
Any reson gmail shouldnt work?
Any tip about another provider i could try?
vfemail didnt help me as it gave me another errror... TLS not supported by server/even i turned it off
0
Comments
See settings and responses in diagnostics:
AND, when using port 587, i get an error (see respons, line 16), but doesnt appear when using port 465
SMTP_SERVER_CONFIG_SET(SMTP_ADDRESS,'smtp.gmail.com')
SMTP_SERVER_CONFIG_SET(SMTP_PORT_NUMBER,'587')
SMTP_SERVER_CONFIG_SET(SMTP_USERNAME,'casakennybenny@gmail.com')
SMTP_SERVER_CONFIG_SET(SMTP_PASSWORD,'xxxx') //xxxx=my correct password with this account
SMTP_SERVER_CONFIG_SET(SMTP_FROM,'casakennybenny@gmail.com')
SMTP_SERVER_CONFIG_SET(SMTP_REQUIRE_TLS,SMTP_TLS_TRUE)
Respons in diag after issued the smtp_send() to adress mentioned in the respons
Line 1 (21:42:28):: CIpLibrary::Mail_SmtpSend - sending TO: kenneth.karlberg@gmail.com
Line 2 (21:42:28):: MailService enqueuing id#1 @ 0:3:2
Line 3 (21:42:28):: MailServiceEventHandler sending id#1
Line 4 (21:42:28):: >> mime write: part_write start
Line 5 (21:42:28):: >> mime write: part_write sw-MSG start
Line 6 (21:42:28):: >> mime write: part_write start
Line 7 (21:42:28):: >> mime write: part_write sw-SINGLE start
Line 8 (21:42:28):: >> mime write: Quoted printable
Line 9 (21:42:28):: >> mime write: part_write sw-SINGLE end
Line 10 (21:42:28):: >> mime write: part_write end
Line 11 (21:42:28):: >> mime write: part_write sw-MSG end
Line 12 (21:42:28):: >> mime write: part_write end
Line 13 (21:42:28):: email 1 sendt
Line 14 (21:42:29):: Memory Available = 33674040 <92880>
Line 15 (21:42:29):: Memory Available = 33659104 <14936>
Line 16 (21:42:29):: MailSenderPrivate::Send authentication error 4 (Unknown error code)
Line 17 (21:42:29):: MailServiceEventHandler::sendErrorEvent id#1 0:3:2 (4)
Line 18 (21:42:29):: CIpEvent::OnError 0:3:2
//////////////////// New test /////////////////////////////
SMTP_SERVER_CONFIG_SET(SMTP_ADDRESS,'smtp.gmail.com')
SMTP_SERVER_CONFIG_SET(SMTP_PORT_NUMBER,'465')
SMTP_SERVER_CONFIG_SET(SMTP_USERNAME,'casakennybenny@gmail.com')
SMTP_SERVER_CONFIG_SET(SMTP_PASSWORD,'xxxx')
SMTP_SERVER_CONFIG_SET(SMTP_FROM,'casakennybenny@gmail.com')
SMTP_SERVER_CONFIG_SET(SMTP_REQUIRE_TLS,SMTP_TLS_TRUE)
Respons in diag
Line 1 (21:48:34):: CIpLibrary::Mail_SmtpSend - sending TO: kenneth.karlberg@gmail.com
Line 2 (21:48:34):: MailService enqueuing id#1 @ 0:3:2
Line 3 (21:48:34):: MailServiceEventHandler sending id#1
Line 4 (21:48:34):: >> mime write: part_write start
Line 5 (21:48:34):: >> mime write: part_write sw-MSG start
Line 6 (21:48:34):: >> mime write: part_write start
Line 7 (21:48:34):: >> mime write: part_write sw-SINGLE start
Line 8 (21:48:34):: >> mime write: Quoted printable
Line 9 (21:48:34):: >> mime write: part_write sw-SINGLE end
Line 10 (21:48:34):: >> mime write: part_write end
Line 11 (21:48:34):: >> mime write: part_write sw-MSG end
Line 12 (21:48:34):: >> mime write: part_write end
Line 13 (21:48:34):: email 1 sendt
Line 14 (21:48:34):: Memory Available = 33590760 <10328>
Line 15 (21:48:34):: Memory Available = 33572768 <17992>
Line 16 (21:49:41):: Memory Available = 33267288 <305480>
POP3 is necessary to receive e-mails, but i only need to send (from my Netlinx)...
Cant find anything regarding POP in the new Netlinx keywords??
Only SMTP...
Is there something about this i dont get?
But to answer your question...
POP is activated (doesnt say pop3) and IMAP which i beleive is the one i need to be able to send emails from my netlinx on behalf of my gmail account...
I already have my iPhone setup with gmail, and i can both send and receive so shouldnt this confirm my account is ok?
For POP to function i need to use another server aswell.
Havent tried this one
POP.gmail.com
Port:995
SSL neccessary
Only tried this one.
smtp.gmail.com
Port for TLS:587 //This should be the right port for TLS
Port to ssl:465 //But have also tried with this one
Those settings should be fine since you can send mail from your phone.
I haven't played with email via netlinx since AMX added SSL/TLS support, so I can't be of anymore help. Sorry.
I found this old thread by JJAMES
http://www.amxforums.com/showthread.php?3895-Yet-Another-Email-Thread&highlight=smtp
Why is gmail out of the question??
Wondering about that...
Is SSL replaced by tls, or are they still depending on each other?
-Im thinking i need to set up the ssl port in the web interface(Master server options) in addition to use these new keywords?
-And then i need to create certificates??
-And now this is WAY over my league
Or am i overreacting?
Sounds like you're on the "Accounts and Import" tab. Enabling/Disabling POP in gmail is under "Forwarding and POP/IMAP" (see attached image)
Also, according to this Gmail support article, the IMAP settings are as follows:
Works from iPhone...
And i did set up the smtp server...
Tried both port 587 and 465...
Just tried switch out smtp with imap.gmail.com Port 993, but that didnt work either...
Can this be an issue with my firewall?
Or maybe gmail requires both the smtp AND imap settings??
I cant see how this is possible with the new keywords...
I've been playing with these commands with a known working account and I haven't been able to send either.
My configs: Here's my sending and I also call the GET functions to verify settings the error: What's interesting is: the ending 8$CO on the CURRENT_FROM, don't know what that's all about.
Next attempt GET query returns:
I would ask if anyone has this working yet before wasting any more time on it, you could be attempting something that's beyond your control to make work.
I decided to run it again with: and got this: So the same funky crap at the end of CURRENT_FROM but now CURRENT_TLS still returns true. The next line printed was this: and then the master died. So from my short experience with these functions I'd say they're hosed!
I posted some code in ModPedia some time ago that sets up a client/server between a client's master and the home office's master which is a much more reliable way to go. Might want to look into it. Now I need to pull this crap off my master and try to get it working again.
I'm running the 4.1.373 master firmware & NS3.3.1.525 w/ Netlinx.axi 1.53
Will check it out later.
but the error 4 i see here aswell when using smtp settings on port 587
At my old job I wrote my own messaging system that used a NI at the shop which then emailed using our own mail server. It avoids all the hassle and is easily managed.
Paul
I am just trying to do a simple test with a mock smtp server with the following..
I was getting connection refused (error 3), so did some packet captures and noticed my server was being asked to talk to port 42128. So I set the smtp server to listen on that port, then got Error 4, even though TLS is set to false...logged as follows
I have my important systems connected M2M and use the tpcnotify command to get push notifications on my phone via TPControl. It works faster than email and can issue notifications of systems offline in situations where email would not work.
Sent from my MB865 using Tapatalk 2
Before AMX even put the SMTP functions into the master, I wrote my own SMTP engine and I use POP mail based on an SMTP relay service that I pay a few quid for per year. Works for me.......it can also send attachments, which took quite a bit of working out.
The SMTP relay service uses basic BASE 64 authentication which is more than adequate for what I use it for. I don't really like relying on stuff that I can't fix myself because it is hard coded into the Master.
Duncan