This is my first PHP program.and i wanted to develop it..but i havent more knowledge.i need your help to do this.....
I wrote this PHP snippet to send SMS to my local network through mywebsite.Now i wanted to send a MMS to it.But i dont know How to attach image to it... Can you please help me to do this...
Below is my SMS Code....
<html>
<body><?php
if (isset($_REQUEST['email']))
//if "SMS form" is filled out, send email
{
//send email
$to = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "$to@sms.mtel.com", "$subject",
$message, "||SSSSS||" );
echo "Thank you for using my Testing SMS System.";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mail.php'>
mobile number(e.g 7123456789): <input name='email' type='text' /><br />
Name: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?><br>
</body>
</html>
<body><?php
if (isset($_REQUEST['email']))
//if "SMS form" is filled out, send email
{
//send email
$to = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "$to@sms.mtel.com", "$subject",
$message, "||SSSSS||" );
echo "Thank you for using my Testing SMS System.";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mail.php'>
mobile number(e.g 7123456789): <input name='email' type='text' /><br />
Name: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?><br>
</body>
</html>
if i change..... mail( "$to@sms.mtel.com", "$subject", to mail( "$to@mms.mtel.com", "$subject",
then thisone send pefectly..without any issue....But i wanted to Send with Image..How can i attach a image to this programme(Upload images from my computer or Select available images)
Can anyone give me a full code for this? and please intergrate that code to my code also or send me a Complete answer to how to do this?
thanks