PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
[WD] Sending bug report to myself and googlemail warnings
[WD] Sending bug report to myself and googlemail warnings
Started by Markus K., Jun., 26 2017 9:30 AM - 2 replies
Connect yourself…
Markus K.
#1
Posted on June, 26 2017 - 9:30 AM
Hi,
in my program the user can send me the error/exception description when an error/an exception occurs.
Usually i get the email and a message from google (security warning). Sometimes i only get a message from google which says i should check a blocked login try. (I don't know the correct messages in english, i get german messages). So i am not sure if someone tried to send me an error report but it got blocked by google.
How do you handle this?
I use the following code:
MySession is EmailSMTPSession
MySession..ServerAddress = "smtp.gmail.com"
MySession..Name = "xyz@gmail.com"
MySession..Password = "passwort"
MySession..Port = "587"
MyMessage is Email
MyMessage..Sender = "abc@def.de"
Add(MyMessage..Recipient, "123@456.de")
Add(MyMessage..Recipient, "ghi@gmail.com")
MyMessage..Subject = "Fehlermeldung"
MyMessage..Message = some text
// Send the message
IF EmailSendMessage(MySession, MyMessage) = False THEN
Error(ErrorInfo(errMessage))
ELSE
EmailCloseSession(MySession)
END
Greetings
Markus
Report
0
0
Peter Holemans
#2
Posted on June, 26 2017 - 1:28 PM
Hi Markus,
As you are sending via a gmail account your sender email address should according to me match your gmail account email address number (so in the above case xyz@gmail.com).
Ciao,
Peter Holemans
Report
0
0
Fabrice Harari
#3
Posted on June, 26 2017 - 1:46 PM
Hi Markus,
on top of the previous answer, you should also check in the google account used to send the email that using "other" email programs is authorized. I'm not sure of the exact wording, but there is an option for that.
Best regards
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text