need help on creating sendmail.php page using google apps information

So you need to SEND it though Google's SMTP server? I'm not SURE if it's possible since they need secure authentication - is there no other server you could use?
 
OK...

fundamentally this is how it works.

php has a function called mail()

this is how to use it. - http://uk3.php.net/manual/en/function.mail.php

or you can search the forum, as I know I've posted a few code samples with using this particular function.

if you want to use googles server as an SMTP server, you'll need to add the SMTP server address to the php.ini configuration file, there is a line for SMTP servers where you specify the address.

of course, when this address is in your network you can happily just accept SMTP connections from our web server.

the setup is fairly easy...

now comes the difficult part...

ther is no way that I know of, (that's not to be said it can't be done however) of sending SMTP authentication with the php mail function. so you'll have to persuade google to become and open relay...

good luck with that.
 
If you want to send authenticated mail with PHP, use PEAR. It comes with all PHP installations, however is not installed. Look at the root of your PHP installation (or have your host install it for you).
 
Back
Top Bottom