Page 1 of 1

Bug on Mail

Posted: Sat Jan 13, 2018 5:22 pm
by skinkairewalker
hi everyone !

i am trying use mail functions , with gmail and smtp example dont working ...

Re: Bug on Mail

Posted: Sun Jan 14, 2018 12:06 am
by Dude
Not a bug without more info.

Re: Bug on Mail

Posted: Sun Jan 14, 2018 4:29 am
by skinkairewalker
every emails smtp servers dont works ...

gmail
my own hosting
yahoo

with this code >

Code: Select all


  InitNetwork()

  Login$ = "mydomain@mydomain.com"
  If CreateMail(0, Login$ , "Hello")
    AddMailRecipient(0, "otherusermail@domain.com", #PB_Mail_To)
    SetMailBody(0, "This is the body")
    Debug SendMail(0, "smtp.domain.com", 587, #PB_Mail_UseSSL, Login$, "********")
  EndIf


dont works :c
what do i need to do ?

Re: Bug on Mail

Posted: Sun Jan 14, 2018 8:05 am
by Dude
Still not a proven bug. I'd say it's just your mail settings needing tweaking (port, SSL on/off, app password needed if using Gmail instead of web password, etc).

Re: Bug on Mail

Posted: Sun Jan 14, 2018 8:07 pm
by skinkairewalker
i need open my computer port ? because i do everything to try it ... and dont works !

Re: Bug on Mail

Posted: Sun Jan 14, 2018 8:14 pm
by davido
@skinkairewalker,
Please take a little look at the following thread, it might help.
http://www.purebasic.fr/english/viewtop ... 84#p475184

Re: Bug on Mail

Posted: Mon Jan 15, 2018 12:02 am
by swan
Suggest testing code on other smtp services too. I remember doing this a few months back and found Google was blocking it. I went into the account and unblocked it, lessen security, then OK.