Sending an email in PB
Posted: Sun Feb 04, 2024 10:51 pm
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