Bug on Mail

Just starting out? Need help? Post your questions and find answers here.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 636
Joined: Fri Dec 04, 2015 9:26 pm

Bug on Mail

Post by skinkairewalker »

hi everyone !

i am trying use mail functions , with gmail and smtp example dont working ...
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Bug on Mail

Post by Dude »

Not a bug without more info.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 636
Joined: Fri Dec 04, 2015 9:26 pm

Re: Bug on Mail

Post 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 ?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Bug on Mail

Post 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).
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 636
Joined: Fri Dec 04, 2015 9:26 pm

Re: Bug on Mail

Post by skinkairewalker »

i need open my computer port ? because i do everything to try it ... and dont works !
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Bug on Mail

Post by davido »

@skinkairewalker,
Please take a little look at the following thread, it might help.
http://www.purebasic.fr/english/viewtop ... 84#p475184
DE AA EB
swan
Enthusiast
Enthusiast
Posts: 225
Joined: Sat Jul 03, 2004 9:04 am
Location: Sydney Australia
Contact:

Re: Bug on Mail

Post 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.
Post Reply