Sending Link via E-Mail

If doesn't fit into any other category ....
Post Reply
rmsta
Posts: 33
Joined: Sat Feb 20, 2021 9:36 am
Location: Sindelfingen, Germany
Has thanked: 138 times
Been thanked: 10 times

Sending Link via E-Mail

Post by rmsta »

Hello,

this is probably not a topic of Annex RDS but SMTP - but I am not able to judge.
Sending E-Mails works fine. I was trying to send a Link in an E-Mail:

MAIL.SETUP "smtp.gmail.com", 465,"xxx@googlemail.com", "yyy",1
A$="Link "+"http://192.168.0.150/text.pdf"
r=EMAIL ("xxx@googlemail.com","zzz@gmx.de","Test",A$)

Which ends up with an empty E-Mail. It seems that a colon (chr$(58)) could not be transmitted
and all other text is removed.
Any hint ?

Greetings
Rainer
User avatar
Fernando Perez
Posts: 378
Joined: Mon Feb 15, 2021 10:09 pm
Location: Santander (Spain)
Has thanked: 195 times
Been thanked: 267 times

Re: Sending Link via E-Mail

Post by Fernando Perez »

Yes, it is a problem already discussed in the old forum and it even has a note added on the Annex website:
https://sites.google.com/site/annexwifi ... send-email

"NOTE:
if you message contains colons ie a time $ "10:12:34" then it may not send. A work around is to use the replace $ command to replace: with - "
rmsta
Posts: 33
Joined: Sat Feb 20, 2021 9:36 am
Location: Sindelfingen, Germany
Has thanked: 138 times
Been thanked: 10 times

Re: Sending Link via E-Mail

Post by rmsta »

Ok, understood.
With the colon it could be interpreted with Outlook as Link, which could be clicked on.
So, I will try to find a different solution.
Anyhow, thank you.

Rainer
bugs
Posts: 142
Joined: Mon Feb 08, 2021 10:10 pm
Location: Scotland
Has thanked: 46 times
Been thanked: 50 times

Re: Sending Link via E-Mail

Post by bugs »

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$)
rmsta
Posts: 33
Joined: Sat Feb 20, 2021 9:36 am
Location: Sindelfingen, Germany
Has thanked: 138 times
Been thanked: 10 times

Re: Sending Link via E-Mail

Post by rmsta »

This is the solution. It works like expected !
Many thanks for that.
Post Reply