PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Sending email via a GoDaddy account
Sending email via a GoDaddy account
Started by Simon Phillips, Nov., 08 2020 2:30 PM - 3 replies
Connect yourself…
Simon Phillips
#1
Posted on November, 08 2020 - 2:30 PM
Hi all
I'm just set up a new email account with GoDaddy, but although I can receive emails, it will not send them.
I've used exactly the same code (except the user, password etc) with an@outlook.com account and it works perfectly.
The code is as follows:
MySession is emailSMTPSession
MySession..ServerAddress = "smtp.office365.com"
MySession..Option = emailOptionSecuredTLS
MySession..Port = 587
MySession..Name = "simon@otterreg.com"
MySession..Password = "*******"
IF EmailStartSession(MySession) = False THEN
Error("Unable to start the SMTP session.", ErrorInfo(), ...
"In case of time-out, check the parameters of the " + ...
"""Firewall"" on the port used (" + ...
MySession..Port + ")")
else
// Build an email
MyMessage is Email
MyMessage..SenderAddress ="simon@otterreg.com"
MyMessage..Sender = "Simon Phillips"
Add(MyMessage..Recipient, "sdpxox@outlook.com")
MyMessage..Subject = "Test From OtterReg"
MyMessage..Message = "Text from conntact us page on OtterReg.com "
// Send the message
EmailSendMessage(MySession, MyMessage)
end
It fails on the EmailStartSession(MySession). Has anyone else used GoDaddy for their email and had the same problem?
Also, I have tried sending emails from Thunderbird and again can receive but not send. However, if I set it up in Outlook, it works both sending and receiving!!
Anyone got any experience of this and if so could you let me know whilst I still have some hair left.
Thanks
Simon Phillips
Report
0
0
Simon Phillips
#2
Posted on November, 08 2020 - 4:44 PM
Hi all
Having spent until 1:30 in the morning I have finally solved it. It does not help that the GoDaddy customer support gave me the wrong smtp server!
If anyone else has the same problem, then the settings are as follows:
MySession..ServerAddress = "smtpout.secureserver.net"
MySession..Option = emailOptionSecuredTLS
MySession..Port = 587
MySession..Name = "simon@otterreg.com"
MySession..Password = "********"
EmailStartSession(MySession)
Hope this helps. Time to go to sleep!
Simon Phillips
Report
0
0
Bob Roos
#3
Posted on November, 09 2020 - 6:55 AM
EmailStartSession returns false if it fails. From the help:
<Result>: Boolean
True if the session was started,
False otherwise. The ErrorOccurred variable is set to True if an error occurs.
To find out the wording of the error, use a function ErrorInfo with the constant errMessage.
I don't know the error message but since you did not mention one I assume you were not checking the ErrorInfo.
Report
0
0
Henk Ouwejan
#4
Registered member
27 messages
Posted on September, 21 2021 - 3:56 PM
Hi Simon,
Can you try
Email.Recipient = "sdpxox@outlook.com"
instead of
Add(MyMessage..Recipient, "sdpxox@outlook.com")
Regards Henk
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