Jump to content

What package/software to install to send email from windows?


colap

Recommended Posts

http://php.net/manual/en/function.mail.php

 

It is windows 8, wamp server is installed. What package/software to install to send email from windows?

 

Which code to take:

 

<?php
// The message
$message = "Line 1\r\nLine 2\r\nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70, "\r\n");

// Send
mail('caffeinated@example.com', 'My Subject', $message);
?>  

Or

 

<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>  

Is it needed to write "From address" through mail function?

Where to configure "From address" ?

Link to comment
Share on other sites

What package/software to install to send email from windows?

Linux! Ha!

 

Just kidding. I agree with Ch0cu3r; setting up email servers sucks. There's lots of very affordable SMTP services these days, like Gmail, that can get you up and running with no problem.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.