Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mail form problem

Featured Replies

Can someone help with this code, I try to do mail form but it does not work

<?php

function send_employee(){


	ob_start();





			$mailto = 'email@url.com';	

			$subject="Contact ".$_POST['lastname']."  ".$_POST['firstname'];

$strTo = $mailto;	
$strSubject = $subject;

$strMessage = "Recruit with HF ::".$_POST['lastname']."  ".$_POST['firstname']."
				Last name:  ".$_POST['lastname']."
				First name:  ".$_POST['firstname']."

				Email:  ".$_POST['email']."
				Home Phone Number:  ".$_POST['telephone']."
				Mobile:  ".$_POST['mobile']."
				Enquiry:  ".$_POST['enquiry']."
				Address:  ".$_POST['address']."
				City:  ".$_POST['city']."
				Location:  ".$_POST['location'];



$m = new Mail(); // create the mail
$m->From($email_from);
$m->To($mailto);
$m->Subject($subject);
$m->Body($strMessage,"utf-8");
//$m->Attach($strFileName, "text/html", "inline" );
if($_FILES['browseandattachfile']['name']!=''){
$m->Attach($_FILES['browseandattachfile']['tmp_name'],$_FILES['browseandattachfile']['type'], "attachment" );
}
$m->Send();	// send the mail
echo "<script language='JavaScript'>alert('Thank you for contacting HR');window.location= 'contact-us.html';</script>";die;		
//echo $m->Get(); // show the mail source

//ob_clean();
//ob_end_clean();
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.