Email

If doesn't fit into any other category ....
Post Reply
Stockers
Posts: 7
Joined: Mon Feb 22, 2021 7:59 am
Has thanked: 1 time

Email

Post by Stockers »

In the "message$" function for Email (EMAIL from$, to$, subject$, message$), is there any way to include a programme variable? (for example time$).
It seems to work with subjet$ but I can't get it to work with message$.
bugs
Posts: 46
Joined: Mon Feb 08, 2021 10:10 pm
Has thanked: 7 times
Been thanked: 20 times

Re: Email

Post by bugs »

Hi,


It may be a problem with your email provider.
I can't see a way to refer you to a particular post in the forum so I have copied it here:-
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Apr 07, 2021 3:10 pm Google Mail (Gmail) has this problem when receiving.
The email is sent and arrives ok.
If you view the email source in your email client you will see the text including the colon.

I have found that simply NOT putting it on the first line works ok with gmail.
So my program looks something like this:-

vbcrlf$ = chr$(13) + chr$(10)
msg$ = vbcrlf$ + Date$ + " " + time$
r = EMAIL("****", "****@gmail.com", "ESP8266 message ", msg$)
Stockers
Posts: 7
Joined: Mon Feb 22, 2021 7:59 am
Has thanked: 1 time

Re: Email

Post by Stockers »

Many thanks, Bugs.
That worked perfectly.
Post Reply