|
Posted by Daniel Ennis on 10/11/37 12:00
B wrote:
> Hi,
> Im new to php (as of this weekend)
> I have an app setup which sends an email. I'm using php and mysql on
> Ubuntu.
> I'm a little confused how to setup the smtp mail servers in the
> php.ini file (this is where I set it up right?)
>
> Im sure I have the actual php code correct in my page, and it is the
> mail server settings thats creating the problems.
>
> Thanks for your time
> :)
You should just be able to use sendmail with the mail(); command.
Try this
<?php
mail('who@to.send.to','Testing Email','Hello!','From: your@email.com');
?>
this is enough for a basic sending of mail, and can be used for more
complex emails too using the 4th parameter of headers.
--
Daniel Ennis
faNetworks.net - Quality Web Hosting and Ventrilo Services
System Administrator / Web Developer
PHP Developer for 6 years
daniel@fanetworks.net
Navigation:
[Reply to this message]
|