NYCPHP Meetup

NYPHP.org

[nycphp-talk] can't get php to work

David Mintz david at davidmintz.org
Fri Mar 16 11:30:45 EDT 2012


On Fri, Mar 16, 2012 at 11:29 AM, David Mintz <david at davidmintz.org> wrote:

>
>
> On Fri, Mar 16, 2012 at 9:11 AM, Peter Lehrer <plehrer at gmail.com> wrote:
>
>> Hi,
>> I am trying to get the php mail function to work. I have a website
>> running Apache2 and PHP Version 5.3.3-7+squeeze8 on Debian. I tried to
>> get a test email message working. Here is my code:
>>
>> <?php
>> $to = "plehrer at gmail.com";
>> $subject = "Test mail";
>> $message = "Hello! This is a simple email message.";
>> $from = "plehrer at me.outlook.com";
>> $headers = "From:" . $from;
>> mail($to,$subject,$message,$headers);
>> echo "Mail Sent.";
>> ?>
>>
>>
> What platform are you on?
>

My apologies. You said Debian.

-- 
David Mintz
http://davidmintz.org/
It ain't over:
http://www.healthcare-now.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20120316/b90f5ae1/attachment.html>


More information about the talk mailing list