I am working on a web-app and i need to send sms and mail to those who are registering as new-user's and sending information about the update through the same
Asked
Active
Viewed 65 times
0
-
What you have done so far ? put your sample code you tried here – jayalalk Mar 08 '14 at 05:04
-
Then what we will do for you? – jogesh_pi Mar 08 '14 at 05:06
-
PEAR Mail for Email: http://stackoverflow.com/questions/1361762/how-to-send-html-mails-using-pear-mail – noahnu Mar 08 '14 at 05:13
2 Answers
1
You can send mail using php to use mail function following is example of mail:
<?php
$to = "somebody@example.com, somebodyelse@example.com";
$subject = "HTML email";
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";
mail($to,$subject,$message,$headers);
?>
And for sending sms to need purchase sms gateway.

user3374268
- 63
- 1
- 7
0
to send sms you will need an getway
to send email using php use the function mail()
http://www.php.net/manual/pt_BR/function.mail.php there's you can find all the documentation

user3173819
- 62
- 7
-
It is better to use a different mail library e.g. Pear. PHP mail() is very limited. – noahnu Mar 08 '14 at 05:12
-