freelanceprogrammers.org Forum Index » PHP
Need help in php mail()!!!
Joined: 31 Aug 2005
Posts: 10
Need help in php mail()!!!
*Php Mail(**Hi,
I am new to php. I heard about the mail function in php.
I thoght that i could send mail with out logining in to my account.
i thoght it was great.but when i tried to send mail. that is i woke from the
dream.
My friend said me to use Easyphp. So i ahve downloaded it and insatlled it.
CODE:
<?php
echo "<html><body>";
mail ("p.tamilselvan@...", "Subject", "Hello!");
echo "Sending mail...";
echo "</body></html>";
?>
ERROR:
Warning: 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
d:easyphpwwwmail_test.php on line 3
CONFIGURING php.ini (Setting the SMTP)!!!
I want to send a mail via php mail function.
When ever i send a mail from the php mail().
The following error comes.And i could not send any mail.
Please help me in configuring the php.ini.
And what values should be set in
smtp=?
smtp_port=?
sendmail_from=?
My Actual php.ini is
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = me@...
A few guys gave advice to save the SMTP to my ISP provider i did so.
Then when i sent mail.
The following error came.
Warning: mail(): SMTP server response: 550 5.7.1 Relaying not allowed:
p.tamilselvan@... in d:easyphpwwwmail_test.php on line 3
Please Reply the changes
Thanks in advance.
TaM *
Want to know ur IP ANd other details.
http://www.danasoft.com/sig/TaMiLL.jpg
[Non-text portions of this message have been removed]
Joined: 22 Apr 2005
Posts: 5
Need help in php mail()!!!
This happends because your ISP smtp server requires authentication
(check your outlook config). This is a restriction for PHP and cannot
send you a mail.
But you can use fake sendmail* to send the mail to you through your
ISP`s servers.
* http://glob.com.au/sendmail/
--
Best Regards,
Ezequiel Gonzalez Rial (gonrial@...)
Joined: 31 Aug 2005
Posts: 2
Need help in php mail()!!!
hi..
i think the problem is you don`t have the smtp server
installed in your system.. you can get freeware mail
server from
http://www.argosoft.com/mailserver/download.aspx
install it and then try...
All the best.
Joseph Griffin
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Joined: 24 Aug 2005
Posts: 3
Need help in php mail()!!!
> A few guys gave advice to save the SMTP to my ISP provider i did so.
>
> Then when i sent mail.
> The following error came.
>
> Warning: mail(): SMTP server response: 550 5.7.1 Relaying not allowed:
> p.tamilselvan@... in d:easyphpwwwmail_test.php on line 3
Try using phpmailer.sf.net. It supports SMTP Authentication.
Peace,
Shoan.
Joined: 31 Aug 2005
Posts: 10
Need help in php mail()!!!
thanks buddy
i will try out that
tam
On 8/31/05, Shoan Motwani <listmail@...> wrote:
>
> > A few guys gave advice to save the SMTP to my ISP provider i did so.
> >
> > Then when i sent mail.
> > The following error came.
> >
> > Warning: mail(): SMTP server response: 550 5.7.1 Relaying not allowed:
> > p.tamilselvan@... in d:easyphpwwwmail_test.php on line 3
>
> Try using phpmailer.sf.net <http://phpmailer.sf.net/>. It supports SMTP
> Authentication.
>
> Peace,
> Shoan.
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> SPONSORED LINKS
> Php
developer<http://groups.yahoo.com/gads?t=ms&k=Php+developer&w1=Php+developer&w2=
Basic+programming+language&w3=Computer+programming+languages&w4=Programming+lang
uages&w5=Object+oriented+programming+tutorial&w6=Java+programming+language&c=6&s
=187&.sig=E54kHe-H0HpEKMD07V3RGw> Basic
> programming
language<http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Php+d
eveloper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Prog
ramming+languages&w5=Object+oriented+programming+tutorial&w6=Java+programming+la
nguage&c=6&s=187&.sig=VnuKkeCAxdrAAE9-23d7Qg> Computer
> programming
languages<http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=
Php+developer&w2=Basic+programming+language&w3=Computer+programming+languages&w4
=Programming+languages&w5=Object+oriented+programming+tutorial&w6=Java+programmi
ng+language&c=6&s=187&.sig=K_RkoUAE9oNBZpCd1axeNg> Programming
>
languages<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Php+devel
oper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Programm
ing+languages&w5=Object+oriented+programming+tutorial&w6=Java+programming+langua
ge&c=6&s=187&.sig=tRU26qhza3U-Fhx7pb49-g> Object
> oriented programming
tutorial<http://groups.yahoo.com/gads?t=ms&k=Object+oriented+programming+tutoria
l&w1=Php+developer&w2=Basic+programming+language&w3=Computer+programming+languag
es&w4=Programming+languages&w5=Object+oriented+programming+tutorial&w6=Java+prog
ramming+language&c=6&s=187&.sig=JkfckoC1oFw4w6if5c6YZw> Java
> programming
language<http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Php+de
veloper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Progr
amming+languages&w5=Object+oriented+programming+tutorial&w6=Java+programming+lan
guage&c=6&s=187&.sig=sUKtmeOhO0DJbtcEeyUPNw>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "php-objects<http://groups.yahoo.com/group/php-objects>"
> on the web.
> - To unsubscribe from this group, send an email to:
>
php-objects-unsubscribe@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
[Non-text portions of this message have been removed]
Joined: 31 Aug 2005
Posts: 10
Need help in php mail()!!!
hello,
i will try that
thanks for the idea.
regards,
tamil
---------------------------------
On 8/30/05, Joseph Griffin.P.L. <griffinhere@...> wrote:
>
> hi..
>
> i think the problem is you don`t have the smtp server
> installed in your system.. you can get freeware mail
> server from
> http://www.argosoft.com/mailserver/download.aspx
>
> install it and then try...
>
> All the best.
> Joseph Griffin
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
>
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> SPONSORED LINKS
> Php
developer<http://groups.yahoo.com/gads?t=ms&k=Php+developer&w1=Php+developer&w2=
Basic+programming+language&w3=Computer+programming+languages&w4=Programming+lang
uages&w5=Object+oriented+programming+tutorial&w6=Java+programming+language&c=6&s
=187&.sig=E54kHe-H0HpEKMD07V3RGw> Basic
> programming
language<http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Php+d
eveloper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Prog
ramming+languages&w5=Object+oriented+programming+tutorial&w6=Java+programming+la
nguage&c=6&s=187&.sig=VnuKkeCAxdrAAE9-23d7Qg> Computer
> programming
languages<http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=
Php+developer&w2=Basic+programming+language&w3=Computer+programming+languages&w4
=Programming+languages&w5=Object+oriented+programming+tutorial&w6=Java+programmi
ng+language&c=6&s=187&.sig=K_RkoUAE9oNBZpCd1axeNg> Programming
>
languages<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Php+devel
oper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Programm
ing+languages&w5=Object+oriented+programming+tutorial&w6=Java+programming+langua
ge&c=6&s=187&.sig=tRU26qhza3U-Fhx7pb49-g> Object
> oriented programming
tutorial<http://groups.yahoo.com/gads?t=ms&k=Object+oriented+programming+tutoria
l&w1=Php+developer&w2=Basic+programming+language&w3=Computer+programming+languag
es&w4=Programming+languages&w5=Object+oriented+programming+tutorial&w6=Java+prog
ramming+language&c=6&s=187&.sig=JkfckoC1oFw4w6if5c6YZw> Java
> programming
language<http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Php+de
veloper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Progr
amming+languages&w5=Object+oriented+programming+tutorial&w6=Java+programming+lan
guage&c=6&s=187&.sig=sUKtmeOhO0DJbtcEeyUPNw>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "php-objects<http://groups.yahoo.com/group/php-objects>"
> on the web.
> - To unsubscribe from this group, send an email to:
>
php-objects-unsubscribe@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
[Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







