You are here: Re: sending email with php « PHP Programming Language « IT news, forums, messages
Re: sending email with php

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация