does anyone know a way to send an email from gmails smtp in PHP?

Mickey Blue

New Member
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 isWarning: 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 1and my php.ini mail stuff is:\[code\]...[mail function]; For Win32 only.; http://php.net/smtpSMTP = smtp.gmail.com; http://php.net/smtp-portsmtp_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 =...\[/code\]
 
Back
Top