using mail( )
Posted by: alanmarcel (200.178.171.---)
Date: January 09, 2007 02:33PM

Hello!

I am trying to do a simple email sender using the class mail( ) with gmail SMTP as see:

<?php

mail ("alanmarcell@gmail.com", "[web dev] inventário", $_POST["email"]);

?>

and I got the Warning:

Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.gmail.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\New Folder (4)\email\email.php on line 3

Beside set the SMTP, I know I should change the port to 465 and set email and password by SMTP. Taking a look in php.ini from Wampserver, I didn't find a variable to change port, email and password.

I hope any kind of help..

Regards,

Alan Marcel.

Options: ReplyQuote
Re: using mail( )
Posted by: yfastud (72.236.169.---)
Date: January 09, 2007 02:53PM

uh... by default, wampserver doesn't come w/ mail server, if you like to use command, you might want to use phpmailer

[phpmailer.sourceforge.net]

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: using mail( )
Posted by: ljzxtww (207.62.77.---)
Date: January 09, 2007 09:23PM

Hey yfastud

Which mail severs is good..

this one is good: [usa8.net.ru]


Please tell me that thank you


Larry

Options: ReplyQuote
Re: using mail( )
Posted by: yfastud (---.cable.mindspring.com)
Date: January 09, 2007 11:18PM

Firstly, winmail server is not FREE at all. For business, it might be good, but for testing like me, he... he... ;-) it's not good at all.

Secondly, I like mine because I can design my own log in page, not really look good right now, but when I have time... he... he... ;-)

It's not easy to tell which one is good because different people have different idea so look around and test each then pick the one you like most.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: using mail( )
Posted by: kenplz (---.net.my)
Date: February 02, 2007 12:11PM

How do i enable the "mail()" ?



Geez wamp!

Options: ReplyQuote
Re: using mail( )
Posted by: CyberSpatium (71.237.217.---)
Date: February 02, 2007 05:34PM

do not install your own email server. you are just asking for troubles. it will be no time before your insecure email server is harvested by spambots and turned in to a spammers proxy mail server. all email sent will have your ip address, not the spammers, so it will appear all email was sent by you. you will most likely get in trouble with your isp and maybe even get your account canceled.

use phpMailer.

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote


Sorry, only registered users may post in this forum.