Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-10-2008, 08:32 PM   #1
In Runtime
 
ColdwaterCS's Avatar
 
Join Date: Feb 2005
Posts: 256
Default need help on creating sendmail.php page using google apps information

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.
ColdwaterCS is offline   Reply With Quote
Old 08-12-2008, 05:41 PM   #2
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: 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?
__________________

j03 is offline   Reply With Quote
Old 08-13-2008, 05:40 AM   #3
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: need help on creating sendmail.php page using google apps information

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."
root is offline   Reply With Quote
Old 08-15-2008, 12:44 PM   #4
In Runtime
 
Join Date: Dec 2007
Posts: 195
Default Re: need help on creating sendmail.php page using google apps information

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).
colorblindjimbo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 07:47 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0