SMTP_SEND just stopped working...
Hey all. Anyone experience SMTP_SEND just stop working?
It was working great and then poof, nothing.
The code is the same code used by others on the forum.
I have a test button as follows:
BUTTON_EVENT [dvTPKITCHEN_MAIN,50]
{
    PUSH:
    {
        SMTP_SEND (dvMAIL_SERVICE, sendto, 'blah blah blah,'',Null_STR)
    }
}
I don't get any errors in diagnostics:
Line      8 2019-10-16 (13:09:32)::  CIpLibrary::Mail_SmtpSend - sending TO: xxxxxxxxxxx@xxxxxxxxxx.net
Line      9 2019-10-16 (13:09:32)::  MailService enqueuing id#1 @ 0:10:1
Line     10 2019-10-16 (13:09:32)::  MailServiceEventHandler sending id#1
Line     11 2019-10-16 (13:09:32)::  >> mime write: part_write start 
Line     12 2019-10-16 (13:09:32)::  >> mime write: part_write sw-MSG start 
Line     13 2019-10-16 (13:09:32)::  >> mime write: part_write start 
Line     14 2019-10-16 (13:09:32)::  >> mime write: part_write sw-SINGLE start 
Line     15 2019-10-16 (13:09:32)::  >> mime write: Quoted printable 
Line     16 2019-10-16 (13:09:32)::  >> mime write: part_write sw-SINGLE end 
Line     17 2019-10-16 (13:09:32)::  >> mime write: part_write end 
Line     18 2019-10-16 (13:09:32)::  >> mime write: part_write sw-MSG end 
Line     19 2019-10-16 (13:09:32)::  >> mime write: part_write end
Don't get any on-error either.
Was just working 2 days ago....
Also logged into the mail server (Comcast) just to make sure password wasn't hacked. Nope.
Checked to make sure the SMTP settings didn't change. Nope.
Thanks for any ideas.
Comments
are you using
it wasn't reuired until recently with comcast, fact is I just started using this built in function because comcast changed their requirements.
FYI, I think I’m still using port 587 but I’ve found that some things like RTI or digital loggers can use port 465 with smtps.
I did have this correct. Tech support sent me a firmware update to try too. No go.
Very odd.
I will try port 465 next.
Alrighty! In case anybody else runs into this.
I was trying to send an email to a cell phone number for a text message.
The problem apparently is that you MUST include a message body. Since I was just looking for a short simple text, i.e "Gate opened at 12:00 PM", I was not including a message body.
Thanks again Vining for your input!
Can’t say if I’ve ever tried email or sms with out a body but its good to know that apparently sms requires one. Probably won’t remember if I ever come across this issue but.......
I vaguely remember smtp used to require a period and maybe two CRLF’s at the end of the body. I might have parts of that mixed up since I do such little AMX anymore so the mind and skills are fading.
Edit, I think the two CRLF thing was http get posts come to think of it but I think the period used to be maybe still is a requirement for smtp body.