|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
In Runtime
Join Date: Feb 2005
Posts: 256
|
Hey Guys
I need some help on creating sendmail.php page using google mail information what code do I need to create this?
__________________
Now Open @ http://timscomputerrepair.net Building Custom Computers/Servers and Selling Computer Equipment. |
|
|
|
|
|
#2 |
|
Cheesoid
|
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?
|
|
|
|
|
|
#3 |
|
Site Team
Join Date: Mar 2004
Posts: 6,945
|
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.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian… Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns. "The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries." |
|
|
|
|
|
#4 |
|
In Runtime
Join Date: Dec 2007
Posts: 195
|
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).
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|