Jump to content

SMTP server


marko-p

Recommended Posts

I need to create a form, which could send an e-mail.

I use Microsoft Outlook to send emails now.

I got to know, that i need SMTP server.

So, downloaded one @ http://www.softstack.com/freesmtp.html.

Tried to configure it to make my php send mail's, but it didn't work.

Got so called error

Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first c28sm5344885fka in C:\web\two\mailform.php on line 9

 

I'm @ testing position, so my php code is very simple :

 

<?php

  $email = "[email protected]" ; 
  $subject = "test" ;
  $message = "this is a test" ;
  mail($email,$subject,$message);

?>

 

My XAMPP configuration :

 

enabled extensions

 

extension=php_openssl.dll
extension=php_pop3.dll
extension=php_smtp.dll

 

 

php.ini

 

[mail function]
; For Win32 only.
SMTP = smtp.gmail.com 
smtp_port = 465

; For Win32 only.
sendmail_from = [email protected]

 

I use gmail.com mail, and they declare these things:

 

Incoming Mail (POP3) Server - requires SSL:  	pop.gmail.com
Use SSL: Yes
Port: 995

Outgoing Mail (SMTP) Server - requires TLS: 	smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587

Account Name: 	your Gmail username (including @gmail.com)
Email Address: 	your full Gmail email address ([email protected])
Password: 	your Gmail password

 

so, .....

 

In the "free smtp server" there's two options to configure :

DNS server

and

SMTP port.

 

I don't know what to write in first one, so i set it to Autodetect.

SMPT port - is set to 465.

 

I set SMTP server to localhost In the outlook mail account's settings,

and set smtp.gmail.com in the Free SMTP server's configuration

 

As my knowledge whispers me, this should be fine enough, to be working, but...

NOT ... does the smtp server is too poor, to fit my poor needs?

Or is this the poorness, of my knowledge (this option is more convincing)

 

Moreover, yesterday, after reinstalling XP on my pc, i saw a MS IIS , and a SMTP service.

Does it have to be installed? Or is it smth like smtp server?

What does my error message mean? what should i do?

Link to comment
https://forums.phpfreaks.com/topic/74174-smtp-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.