Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Send-email/PureBasic/send-email.basic
Normal file
15
Task/Send-email/PureBasic/send-email.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
InitNetwork()
|
||||
|
||||
CreateMail(0, "from@mydomain.com", "This is the Subject")
|
||||
|
||||
SetMailBody(0, "Hello " + Chr(10) + "This is a mail !")
|
||||
|
||||
AddMailRecipient(0, "test@yourdomain.com", #PB_Mail_To)
|
||||
|
||||
AddMailRecipient(0, "test2@yourdomain.com", #PB_Mail_Cc)
|
||||
|
||||
If SendMail(0, "smtp.mail.com")
|
||||
MessageRequester("Information", "Mail correctly sent !")
|
||||
Else
|
||||
MessageRequester("Error", "Can't sent the mail !")
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue