Hello everybody,
I can not send email, i use purebasic own sample code inside the help. But it gives error!
Do i need to setup any mail client? Such as thunderbird or outlook etc.
My system is clean. There is no mail client software.
Is this the what i need? Or i have any thing else to solve this situation.
*P.S. I use Purebasic v5.60 + Ubuntu
Cant Send EMAIL!
Re: Cant Send EMAIL!
I could not get it to work with the smtp.free.fr mail server in the example, but it did work when I used a different one (Mailjet). I tested it on Windows 10 and Ubuntu. I do not have any mail clients setup.
Re: Cant Send EMAIL!
I use my gmail account... And Orginal sample inside help... Ofcourse i change the variables for may gmail account... But it gives "0"...
__________________________________________________
Code tags added
22.05.2017
RSBasic
Code: Select all
InitNetwork()
; Be sure to use the right login and right password
;
Login$ = "yourlogin"
If CreateMail(0, Login$ + "@gmail.com", "Hello")
AddMailRecipient(0, "youraddress@youraddress.com", #PB_Mail_To)
Debug SendMail(0, "smtp.gmail.com", 587, #PB_Mail_UseSSL, Login$, "password")
EndIf
Code tags added
22.05.2017
RSBasic
Re: Cant Send EMAIL!
I tried your code with my Gmail account. At first, I had the same results as you, but when I added the #PB_Mail_Asynchronous flag to the SendMail command, it worked.arma wrote:I use my gmail account... And Orginal sample inside help... Ofcourse i change the variables for may gmail account... But it gives "0"...
__________________________________________________Code: Select all
InitNetwork() ; Be sure to use the right login and right password ; Login$ = "yourlogin" If CreateMail(0, Login$ + "@gmail.com", "Hello") AddMailRecipient(0, "youraddress@youraddress.com", #PB_Mail_To) Debug SendMail(0, "smtp.gmail.com", 587, #PB_Mail_UseSSL, Login$, "password") EndIf
Code tags added
22.05.2017
RSBasic