views:

34

answers:

1

i am trying to send an email through gmails smtp (smtp.gmail.com), but i get the same error every time. does anyone know a way to send a simple html email to one person?

the error i get is

Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. b22sm3382948anb.15 in C:\wamp\www...\test.php on line 1

and my php.ini mail stuff is:

...
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP =  smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = *****@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = 

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
;mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =
...