Re: SMTP mail server
| From: | Ron Piggott | Date: | Sat, 25 Apr 2009 01:17:58 +0000 |
| Subject: | Re: SMTP mail server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291962@lists.php.net to get a copy of this message | ||
I am on a shared web site hosting company. They are asking me to edit
my PHP script to specify the SMTP using $aditional_parameters on the URL
below. If this can't be achieved then I need to confirm this.
Ron
On Fri, 2009-04-24 at 20:04 -0500, Adam Williams wrote:
>
> Ron Piggott wrote:
> > How do I specify an actual SMTP server? (Like mail.host.com)
> >
> > This is what I have so far:
> >
> > mail($email, $subject, $message, $headers);
> >
> > I was to http://ca2.php.net/manual/en/function.mail.php
> > and saw this
> > syntax:
> >
> > mail ( string $to , string $subject , string $message [, string
> > $additional_headers [, string $additional_parameters ]] )
> >
> > Ronhttp://
> >
> >
> http://www.php.net/manual/en/mail.configuration.php
>
> looks like you can edit php.ini and change SMTP=localhost to something
> else and restart apache (if needed)
>