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 = "autoyvykis@yahoo.com" ; 
  $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 = testing.php.mail1@gmail.com

 

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 (username@gmail.com)
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.