Page 1 of 1

Sending an email in PB

Posted: Sun Feb 04, 2024 10:51 pm
by matalog
Should this work to send an email in PB?

Code: Select all

emailaddress$="email@gmail.com"
password$="secretpassword1"
toaddress$="email@hotmail.com"

CreateMail(1,emailaddress$,"Greetings")
SetMailBody(1,"Test Email")
 AddMailRecipient(1, toaddress$, #PB_Mail_To)

 Debug SendMail(1,"smtp.gmail.com",587,#PB_Mail_Debug,emailaddress$,password$)
 
  Repeat
    Debug MailProgress(1)
    Delay(300)
   Until Progress = #PB_Mail_Finished Or Progress = #PB_Mail_Error

Re: Sending an email in PB

Posted: Sun Feb 04, 2024 11:20 pm
by mk-soft
You must allow third party e-mail programmes online access to your e-mail account.

Re: Sending an email in PB

Posted: Mon Feb 05, 2024 4:51 am
by DarkDragon