NYCPHP Meetup

NYPHP.org

[nycphp-talk] Emailing from a PHP script

Nikola Mitic nikola.mitic at gmail.com
Fri Sep 14 09:27:08 EDT 2007


It looks OK.

Can you check that you changed php.ini file that your server is using?

you can see that with <? echo phpinfo(); ?>

Best,
Nikola Mitic
http://www.twospots.com

On 9/14/07, PaulCheung <paulcheung at tiscali.co.uk> wrote:
>
> Can anybody see what I am doing wrong??
>
> I have set php.ini (as per the manual) to my email settings
> ======================================
> [mail function]
> ; For Win32 only.
> SMTP = smtp.tiscali.co.uk
> smtp_port = 25
>
> ; For Win32 only.
> sendmail_from = paulcheung at tiscali.co.uk
> ========================================================
> I run the script and the following message appears
>
> Warning: mail() [function.mail]: Failed to connect to mailserver at
> "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
> or use ini_set() in C:\xampp\htdocs\tp_access.php on line 61
> ========================================================
> script line 61   mail(to, subject, message, "From:
> paulcheung at tiscali.co.uk");
>
> Following the textbook example it should work - why am I directed to
> localhost??
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070914/c02db538/attachment.html>


More information about the talk mailing list