hello, im using a wamp server and i want to sent an email and after writting the code, im getting an error that says 'warning: mail() [function.mail]: failed to connect to mail server at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set().'
Im not familiar with the php.ini file so i need help to fix this error.
James singizi
Recommended Answers
Jump to Post@James singizi
warning: mail() [function.mail]: failed to connect to mail server at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set().'
It means look in your php.ini for the SMTP.
In order to use the mail() function you must setup the php.ini parameters …
Jump to PostI didn't think you could set up a local server with email unless you have an email client to handle this.
you could try setting it in your email file code: phpini_set("sendmail_from", "info@mydomain.com"). I heard this works
All 5 Replies
LastMitch
James singizi
rayidi
commented:
It will works for localhost with out ssl connection
+2
moneeshot
0
Newbie Poster
James singizi
LastMitch
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.