colap Posted August 3, 2015 Share Posted August 3, 2015 <?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); ?> What will be the from address for this code? Which software/package to install to send email? Quote Link to comment Share on other sites More sharing options...
requinix Posted August 3, 2015 Share Posted August 3, 2015 The from address will be whatever the mail client is configured to use, which may also vary further if the email is sent through an email provider (like Gmail). You can install anything that claims to be a "sendmail" client. There are many to choose from, and while none of them are particularly better than others, some may be better suited to your needs. Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted August 3, 2015 Share Posted August 3, 2015 For what it's worth, more information about the From address can be found under the "additional_headers" parameter description here: http://php.net/manual/en/function.mail.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.