<?php
//RasMail 1.02 FIRST EXAMPLE (using single attachment)
#Include of main file
include("rasmail_102.php");
#Setup simple body
$MyBody="Hello world, do you know that php rulez?";
#Creating istance
$NewMail=new MailSender();
$NewMail->Sender("phpuser@domanin.com");
$NewMail->Recipient("perluser@domain.com");
$NewMail->Subject("This is a test");
$NewMail->Body($MyBody);
$NewMail->Attachment("c:\mypics\picture.jpg");
$NewMail->Mailformat("1");
$NewMail->Priority("3");
$NewMail->Execute();
?>
|