GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
Sending email via a GoDaddy account
Sending email via a GoDaddy account
Iniciado por Simon Phillips, nov., 08 2020 2:30 PM - 3 respostas
Conecte-se…
Simon Phillips
#1
Publicado em novembro, 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
Denunciar
0
0
Simon Phillips
#2
Publicado em novembro, 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
Denunciar
0
0
Bob Roos
#3
Publicado em novembro, 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.
Denunciar
0
0
Henk Ouwejan
#4
Membro registado
27 mensagems
Publicado em setembro, 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
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto