View Category

Check your language appears on the site

Your language name should appear within the HTML found at the main page.

Send an email

Use library functions, classes or objects to create a short email addressed to your own email address. The subject should be, "Greetings from", and the user should be prompted for the message body, and whether to cancel or proceed with sending the email.
(* Using the library smtp-mail-0.1.3: *)

let () =
let h = Smtp.connect "" in
Smtp.helo h "hostname";
Smtp.mail h "<>";
Smtp.rcpt h "<>";
let email_header = "\
From: John Smith <>\r\n\
To: Jane Smith <>\r\n\
Subject: Greetings from" in
let email_msg = "Hi,\n\nHow are you?" in h (email_header ^ "\r\n\r\n" ^ email_msg);
Smtp.quit h;