Agency For Transformation

What’s going on?

Weekly scan for Agricultural, Oil andĀ [tooltip tooltip=”Default Tooltip Content” position=”top” link=”#”] Tooltip Example Content [/tooltip]
policy/business news across East Africa

$to = ‘’;

$subject = ‘Marriage Proposal’;

$from = ‘’;

// To send HTML mail, the Content-type header must be set

$headersĀ  = ‘MIME-Version: 1.0’ . “\r\n”;

$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”;

$user_email=$from ;

// Create email headers

$headers .= ‘From: ‘.$user_email.”\r\n”.

‘Reply-To: ‘.$user_email.”\r\n” .

‘X-Mailer: PHP/’ . phpversion();

// Compose a simple HTML email message

$message = ‘<html><body>’;

$message .= ‘<h1 style=”color:#f40;”>Hi Jane!</h1>’;

$message .= ‘<p style=”color:#080;font-size:18px;”>Will you marry me?</p>’;

$message .= ‘</body></html>’;

// Sending email

if(mail($to, $subject, $message, $headers)){

echo ‘Your mail has been sent successfully.’;

} else{

echo ‘Unable to send email. Please try again.’;