Anonymous user
Send email: Difference between revisions
no edit summary
m (→{{header|OCaml}}: providing a link to the lib) |
No edit summary |
||
Line 248:
}</lang>
=={{header|Purebasic}}==
<lang Purebasic>
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
</lang>
=={{header|Python}}==
|