How do I send an email from a server to remote client?

5 pts.
Tags:
Email Server
Email server software
Remote users
WAMP Stack
how to send an email from a server to remote client

Software/Hardware used:
wamp

Answer Wiki

Thanks. We'll let you know when a new response is added.

a simple sample message, we could use:

<?php
$to = “recipient@example.com”;
$subject = “Hi!”;
$body = “Hi,\n\nHow are you?”;
if (mail($to, $subject, $body)) {
echo(“<p>Message successfully sent!</p>”);
} else {
echo(“<p>Message delivery failed…</p>”);
}
?>

That’s it!

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Helen82
    a simple sample message, we could use: <?php $to = "recipient@example.com"; $subject = "Hi!"; $body = "Hi,nnHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> That's it! [url=http://www.softwareoutsourcing.biz/services/mobile-development/iphone-ipad.html] Mobile App Development[/url]
    35 pointsBadges:
    report
  • Helen82
    a simple sample message, we could use: <?php $to = “recipient@example.com”; $subject = “Hi!”; $body = “Hi,nnHow are you?”; if (mail($to, $subject, $body)) { echo(”<p>Message successfully sent!</p>”); } else { echo(”<p>Message delivery failed…</p>”); } ?> That’s it! __________________________ http://www.softwareoutsourcing.biz/services/mobile-development/iphone-ipad.html
    35 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following