Jump to content

What will be the from address for this code?


colap

Recommended Posts

<?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('[email protected]', 'My Subject', $message);
?>  

What will be the from address for this code? Which software/package to install to send email?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.