Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: Dave91 on March 03, 2006, 06:30:39 AM

Title: GMAIL and the SMTP feature
Post by: Dave91 on March 03, 2006, 06:30:39 AM
Hi all,

Im havin bizarre problems in setting up GMAIL as the email smtp client on my forum!!!

smtp.gmail.com is the smtp server... i know that much
davessite.forum is my username
port... i am having problems with i think as others told me to use different ports and still i had no luck,...

Any ideas fellow friends?? :D

Dave
Title: Re: GMAIL and the SMTP feature
Post by: Elmacik on March 03, 2006, 06:44:56 AM
We cant use gmail's SMTP service with SMF. Because gmail requires SSL (Secure Socket Layer) login.
But SMF uses standard login for SMTP. So it wont be able to conntect to gmail.
Title: Re: GMAIL and the SMTP feature
Post by: Dave91 on March 03, 2006, 11:36:09 AM
Do you no a gd one i can use??

Dave
Title: Re: GMAIL and the SMTP feature
Post by: Oldiesmann on March 03, 2006, 01:15:14 PM
http://www.hotpop.com has free SMTP service, but they're not going to be as good as what you'd get with GMail.
Title: Re: GMAIL and the SMTP feature
Post by: Dave91 on March 03, 2006, 02:28:34 PM
Thanks for the reply anyway mate!!

Dave
Title: Re: GMAIL and the SMTP feature
Post by: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on September 11, 2006, 11:07:18 PM
If you don't mind me asking, why are you trying to use the gmail servers as the outgoing mail server for your forum?
Title: Re: GMAIL and the SMTP feature
Post by: Lazybones on September 11, 2006, 11:15:11 PM
Because Google will host your private domain email for free https://www.google.com/a/ .

You get a @yourdomain.com address, but they are hosted in a gmail interface that you can admin.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on September 11, 2006, 11:18:58 PM
But they aren't hosting your site. At least, I didn't see anything about offering webspace on the page. You can use your hosts' internal mailserver (or smtp gateway) just fine. It also cuts down on traffic because your forum doesn't have to establish a connection to Google's servers and send however many messages to there, just to have them relayed to their destination.
Title: Re: GMAIL and the SMTP feature
Post by: Lazybones on September 11, 2006, 11:22:16 PM
Quote from: Motoko-chan on September 11, 2006, 11:18:58 PM
But they aren't hosting your site. At least, I didn't see anything about offering webspace on the page.

You can have your email server MX record point to a different server than your DNS record for your site. Hosting email can be a pain when it comes to filtering, spam, viruses and users who don't want to clean out their account.

There is an option to host pages as well, but I don't think they support dynamic content of any type.

When you are hosting multiple accounts for a guild, or small company, you don't just tack them on to your ISP account.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on September 11, 2006, 11:29:47 PM
I think you are misunderstanding my point, or I'm missreading you. You can use your hosted e-mail address as the sending address without having to use the gmail servers.

All MX records are for is where mail should come in when people are sending to you.
Title: Re: GMAIL and the SMTP feature
Post by: Lazybones on September 11, 2006, 11:36:40 PM
If my custom domain addresses are hosted by google, and I want my outgoing email notices to match my google accounts (lets assume I have no ISP email hosting). Then I need to send them out via google SMTP.

I have found a way that works so I posted it. Also installing the open SSL extention and using ssl:// should fix some other users problems with ISPs who force SSL as an option on all email accounts just like google.
Title: Re: GMAIL and the SMTP feature
Post by: Lazybones on September 11, 2006, 11:39:09 PM
P.S. As an added bonus of using Googles SMTP for outgoing email.. All outgoing email is tracked and searchable in the email accounts sent item folder.
Title: Re: GMAIL and the SMTP feature
Post by: Goosemoose on September 28, 2006, 01:08:57 PM
I also have gmail hosting my domains email. I used to have my server send out the emails but lots of email servers were blocking email from the forum as spam since the originating address didn't resolve back to google. I'm going to try this ssl tip right now, thanks.
Title: Re: GMAIL and the SMTP feature
Post by: xtremecruiser on October 25, 2006, 09:24:40 AM
So how is this working out for anyone ?
Is there a limit to the amount of emails sent per hour ?
Title: Re: GMAIL and the SMTP feature
Post by: Goosemoose on October 25, 2006, 11:39:05 PM
Works great for me. Unfortunately I can't get it to work with joomla, but it works great for SMF!
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 02, 2006, 11:16:25 PM
Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

This works beautifully. Thanks.
Title: Re: GMAIL and the SMTP feature
Post by: Goosemoose on November 03, 2006, 01:23:16 AM
Ok, there is a huge problem here that I realized. There is a 500 email a day limit on all gmail accounts. This means that my messages were not getting sent out after about 6pm each day as I had reached my limit. Short of a mod to rotate through several email addresses, this will be a problem for most decent sized forums. Check your error logs in the admin panel to see if this is affecting you.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on November 03, 2006, 01:43:35 AM
If you don't need the storage of sent messages, just use your gmail address, but send through your web server's mail setup.
Title: Re: GMAIL and the SMTP feature
Post by: Goosemoose on November 03, 2006, 03:06:08 AM
My goal was to use googles smtp server. When I don't I seem to get blacklisted as spam more.
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 03, 2006, 07:19:38 PM
Quote from: Motoko-chan on November 03, 2006, 01:43:35 AM
If you don't need the storage of sent messages, just use your gmail address, but send through your web server's mail setup.

Do you know how to set up the built in mail server in windows server 2003 or maybe have a link to a simple tutorial and turning it on? I haven't a clue but would like to use it.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on November 03, 2006, 08:55:23 PM
The simplest solution is installing the SMTP server that comes with Windows in IIS (if you are using IIS for your web server this is the easiest way). You could also look into using Mercury Mail (http://www.pmail.com/overviews/ovw_mercury.htm) also.
Title: Re: GMAIL and the SMTP feature
Post by: xtremecruiser on November 08, 2006, 06:20:16 PM
Quote from: Goosemoose on November 03, 2006, 01:23:16 AM
Ok, there is a huge problem here that I realized. There is a 500 email a day limit on all gmail accounts. This means that my messages were not getting sent out after about 6pm each day as I had reached my limit. Short of a mod to rotate through several email addresses, this will be a problem for most decent sized forums. Check your error logs in the admin panel to see if this is affecting you.

That email limit is a issue.
Any other emails allow this or have a higher outbound limit ?
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on November 08, 2006, 06:35:11 PM
That is because you are sending through Google's server. Send through your own server, it should be capable of sending mail.
Title: Re: GMAIL and the SMTP feature
Post by: rabidjade on November 20, 2006, 04:35:02 AM
Sorry for bringing up an old thread but this had the information I needed. I have the same problem where I have no SMTP mail servers to use and already primarily use gmail for my website host on my home server. I installed Mercury mail server but it looks like it's a dedicated server to the Pegasus mail client and has no mention that I could find of being used elsewhere. If anyone knows anything about Mercury, PM me, thanks!
Title: Re: GMAIL and the SMTP feature
Post by: Dozzer on November 21, 2006, 11:24:01 AM
Quote from: Motoko-chan on September 11, 2006, 11:07:18 PM
If you don't mind me asking, why are you trying to use the gmail servers as the outgoing mail server for your forum?

well..  my host does not have SMTP access...
so my new users never get a registration e-mail.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on November 21, 2006, 11:33:21 AM
What about using the PHP default?

Odd that a host wouldn't have any SMTP access on their network.
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 24, 2006, 07:59:10 PM
Quote from: Motoko-chan on November 21, 2006, 11:33:21 AM
What about using the PHP default?

Odd that a host wouldn't have any SMTP access on their network.

What has to be set to use the php default without a mail server set up on the server that you use? Is there a setting in php I should look for or elsewhere?

Title: Re: GMAIL and the SMTP feature
Post by: Elmacik on November 24, 2006, 08:12:31 PM
Admin -> Server Settings -> Feature Configuration -> Mail Type
Select "PHP Standard" from the drop down list and save.
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 24, 2006, 08:15:26 PM
Quote from: Elmacik on November 24, 2006, 08:12:31 PM
Admin -> Server Settings -> Feature Configuration -> Mail Type
Select "PHP Standard" from the drop down list and save.

I've tried that. It never connects to send emails that way. I thought maybe there was a setting in the php software that I needed to set to get the PHP email to work.
Title: Re: GMAIL and the SMTP feature
Post by: Elmacik on November 24, 2006, 08:25:49 PM
It should be configured to show the sendmail path in php.ini like this:
sendmail_path = /usr/lib/sendmail
The path differs on servers.
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 24, 2006, 08:29:07 PM
Quote from: Elmacik on November 24, 2006, 08:25:49 PM
It should be configured to show the sendmail path in php.ini like this:
sendmail_path = /usr/lib/sendmail
The path differs on servers.

Where would I look to find the correct sendmail path on a Windows 2003 Server?
Title: Re: GMAIL and the SMTP feature
Post by: Elmacik on November 24, 2006, 08:33:50 PM
There is no sendmail in Windows. There are of course clones of sendmail for windows, but you still need an SMTP server to configure it to work properly.

http://www.google.com/search?rls=en&q=sendmail+windows
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 24, 2006, 08:52:37 PM
Quote from: Elmacik on November 24, 2006, 08:33:50 PM
There is no sendmail in Windows. There are of course clones of sendmail for windows, but you still need an SMTP server to configure it to work properly.

http://www.google.com/search?rls=en&q=sendmail+windows

I was afraid of that. I guess I'll just continue using gmails server.
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on November 27, 2006, 10:53:01 AM
PHP default uses the standard PHP mail functions. For Windows this uses the SMTP server settings in php.ini. For *NIX platforms, the sendmail path is used.
Title: Re: GMAIL and the SMTP feature
Post by: patoforos on November 28, 2006, 09:15:23 AM
dios sera que agluien me explica paso a paso como configuro smtp para mi foro... con gmail o con lo que sea... que no entiendo.. .. graxias :-\
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on November 28, 2006, 12:39:58 PM
pataforos, please use English or ask on the support board for your language.
Title: Re: GMAIL and the SMTP feature
Post by: webtech on January 23, 2007, 10:49:10 PM
I went to simple machines because of the features and themes.  It looks great and will work well for newbies.  BUT I cannot get the smf to send emails. 
When I use the default PHP, I get nothing,, no error,, nada

I then tried every possible SMTP configuration; no email, just error 500

Then I tried the gmail route and had new errors.
fsockopen()[<a href='funtion.fsockopen'>function.fsockopen</a>: unable to connect to smtp.gmail.com:465

Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

In this recomendation, step 1, where do I go to insert this code?

If there is any other help you can give me, I would really appreciate it.  If I can't get this working I am going to have to abandon ship...

I am surprised that since this is obviously a problem for several users that more detailed help is not available.
Title: Re: GMAIL and the SMTP feature
Post by: Goosemoose on January 25, 2007, 01:50:47 AM
webtech, If you can't get the normal php mail to work, I'd email your host and ask them what's up. That is a problem with the php installation or a restriction the host has placed on you.
Title: Re: GMAIL and the SMTP feature
Post by: dewasalju on March 04, 2007, 05:50:02 AM
Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

where can i find the php.ini? Thank you
Title: Re: GMAIL and the SMTP feature
Post by: JustTheGladiatoR on May 19, 2007, 06:15:29 AM
Quote from: Motoko-chan on September 11, 2006, 11:07:18 PM
If you don't mind me asking, why are you trying to use the gmail servers as the outgoing mail server for your forum?
Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

how can i enable the ssl extension on the server?
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on May 19, 2007, 01:55:37 PM
PHP would need to be compiled with OpenSSL support for that module. If you don't have administrative access on the server, you'd need to ask the server administrator/your host.
Title: Re: GMAIL and the SMTP feature
Post by: dirtylaundry on May 27, 2007, 01:56:21 PM
how do u change the PHP.ini file? where is it

thanks
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on May 27, 2007, 03:26:44 PM
It depends on how PHP was set up. Use a phpinfo script (What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0)) to see where it is. It will be shown in the "Configuration File (php.ini) Path" line.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on June 14, 2007, 02:50:14 AM
Quote from: Motoko-chan on May 27, 2007, 03:26:44 PM
It depends on how PHP was set up. Use a phpinfo script (What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0)) to see where it is. It will be shown in the "Configuration File (php.ini) Path" line.

is there any way to alter the php.ini file to enable the ssl extension?

many thanks
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 03, 2007, 11:54:28 PM
Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

I already add this:

;extension=eloader.dll

extension=php_memcache.dll

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

but still the error:

2: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
File: D:\Apache\htdocs\forum\Sources\Subs-Post.php
Line: 973

Any help please..

thanks in advance
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on July 04, 2007, 12:00:14 AM
The semi-colon ( ; ) at the front of the line means it is commented out. Remove that from the line and restart Apache.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 04, 2007, 02:08:03 AM
Quote from: Motoko-chan on July 04, 2007, 12:00:14 AM
The semi-colon ( ; ) at the front of the line means it is commented out. Remove that from the line and restart Apache.

thanks i will try this.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 04, 2007, 02:36:59 AM
where that exactly we can add this line "extension=php_openssl.dll". still doesnt work for me.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 04, 2007, 07:25:25 PM
help me please
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on July 04, 2007, 07:27:50 PM
It's in the php.ini file. Some people don't have access to that file. Ask your host via their forums or help ticket to find out how to access it or see if they will enable the php_openssl.dll for you.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 04, 2007, 09:49:55 PM
Quote from: unrelenting on July 04, 2007, 07:27:50 PM
It's in the php.ini file. Some people don't have access to that file. Ask your host via their forums or help ticket to find out how to access it or see if they will enable the php_openssl.dll for you.

thanks for your reply. but what i mean is the line at php.ini?  can access the file since im hosting my forum in my local pc.
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on July 04, 2007, 11:15:26 PM
Quote from: madagascar on July 04, 2007, 09:49:55 PM
Quote from: unrelenting on July 04, 2007, 07:27:50 PM
It's in the php.ini file. Some people don't have access to that file. Ask your host via their forums or help ticket to find out how to access it or see if they will enable the php_openssl.dll for you.

thanks for your reply. but what i mean is the line at php.ini?  can access the file since im hosting my forum in my local pc.

In your post about 4 posts you bolded the part that needs changed:

;extension=php_openssl.dll

make that line look like this:

extension=php_openssl.dll
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 05, 2007, 03:11:17 AM
thanks unrelenting.

do you have other idea where we can use email hosting for free without opening the ssl?

thanks
Title: Re: GMAIL and the SMTP feature
Post by: hvyhitter on July 06, 2007, 09:23:15 AM
google wont work for me on this one.. I keep getting a sector 5 error..

i am trying what oldiesmann suggested hotpop.com

500 mail limit on it.. but.. whatever.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 08, 2007, 05:06:08 AM
Quote from: hvyhitter on July 06, 2007, 09:23:15 AM
google wont work for me on this one.. I keep getting a sector 5 error..

i am trying what oldiesmann suggested hotpop.com

500 mail limit on it.. but.. whatever.


can you share to us the details on how to install hotpop.com?

appreciate of your reply.

thanks in advance.
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 10, 2007, 07:10:24 PM
help please
Title: Re: GMAIL and the SMTP feature
Post by: madagascar on July 12, 2007, 03:22:36 AM
up
Title: Re: GMAIL and the SMTP feature
Post by: MYBESTHOMESnet on July 17, 2007, 02:07:51 AM
help please
Title: Re: GMAIL and the SMTP feature
Post by: hvyhitter on July 28, 2007, 10:26:08 AM
yeah that didnt work either.. the hoptpop way.. I went through my ISP and made an address through them (I had up to 10 of them) I just send it that way.. and things have been peachy using that method.
Title: Re: GMAIL and the SMTP feature
Post by: MYBESTHOMESnet on September 04, 2007, 06:47:03 AM
Hi all,

Could someone help me have my ssl open at php.ini? I tried the procedure above but still doesn't work.

Error Message: You have forgot to open the SSL.

Attached is my php.ini file.

Thanks
Title: Re: GMAIL and the SMTP feature
Post by: MYBESTHOMESnet on September 05, 2007, 12:55:02 AM
help
Title: Re: GMAIL and the SMTP feature
Post by: MYBESTHOMESnet on September 07, 2007, 05:27:09 AM
help
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on September 07, 2007, 10:19:55 PM
Quote from: MYBESTHOMESnet on September 07, 2007, 05:27:09 AM
help

You're either updating the wrong php.ini file or you aren't allowed to change it or something like that because you have it uncommented correctly in that file.
Title: Re: GMAIL and the SMTP feature
Post by: Fiery on October 09, 2007, 11:54:41 PM
There are many many different people posting requests for help in here (and its rather confusing).

If you are still having issues please post what your exact problem is so we can try to help out.  If you tried a suggestion and it didnt work let us know in that post.

Thanks
Title: Re: GMAIL and the SMTP feature
Post by: walaha on October 23, 2007, 07:35:12 AM
Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

I cant find php.ini file !
Title: Re: GMAIL and the SMTP feature
Post by: Tompalaz on November 06, 2007, 04:53:36 AM

Quote from: Lazybones on September 11, 2006, 10:01:21 PM
To use the GMAIL SMTP feature just do the following:

Found a way to fix this without altering SMF, it is rather simple.

1. Enable the SSL extension in PHP.ini
extension=php_openssl.dll

2. Use the following mail server settings in server setup
Mail Type: SMTP
SMTP server: ssl://smtp.gmail.com <-- ssl:// is case sensitive
SMTP port: 465
SMTP username: [email protected] <-- replace stars with account and domain name.

should the extenstion for openssl in linux be extension=php_openssl.so?
and were do i put this line in the php.ini file?
Title: Re: GMAIL and the SMTP feature
Post by: unrelenting on November 06, 2007, 10:05:13 PM
It should already be in the php.ini file. You just have to uncomment it meaning delete the ; in front of it.
Title: Re: GMAIL and the SMTP feature
Post by: Sarge on December 09, 2007, 04:05:54 AM
MYBESTHOMESnet, walaha, Tompalaz, have you managed to solve the issues yet?
Title: Re: GMAIL and the SMTP feature
Post by: rummie on December 18, 2007, 05:22:21 PM
\\\\\\\\\\\\\\\\
Title: Re: GMAIL and the SMTP feature
Post by: 青山 素子 on December 18, 2007, 06:23:07 PM
Quote from: rummie on December 18, 2007, 05:22:21 PM
you cant find it because it probably isnt where you are looking!

if you create a file called php.ini in the SAME FOLDER WHERE YOUR SCRIPTS ARE RUN FROM

(i.e. in the folder where the INDEX.PHP for SMF is) then that  file is the one that will control how PHP executes)

This only applies to certain hosts. If in doubt, check their support area, or contact them.
Title: Re: GMAIL and the SMTP feature
Post by: TSWatcher on December 22, 2007, 10:27:47 PM
You may wish to consider a hosting service that allows you access to your own smtp and pop servers. Most have an hourly rate instead of a daily rate like Gmail. My hourly rate is 200 mails an hour so anything more then that gets held until the next hour, and I have yet to actually hit 200 ph.

The TS Watcher
Title: Re: GMAIL and the SMTP feature
Post by: Fiery on January 20, 2008, 09:27:34 PM
Was everyone able to get their problems resolved?

If not please repost your issue.

Thanks
Title: Re: GMAIL and the SMTP feature
Post by: softtouch on January 27, 2008, 09:54:05 PM
We need a module which allow to set:
- smtp server
- port
- Use encrypted protocoll (NO, SSL, TLS)
- SMTP Authentication (username, password)
- Email From (name and email address)

I use something similar with a drupal site, and it send email perfectly via my gmail email account (SSL).
(Note: I host my domain at home on my own server, not hosted at google)
I only installed openssl, enabled it in the php.ini and setup the parameter described above in a module I installed for drupal.

Why is that not possible for SMF?
Title: Re: GMAIL and the SMTP feature
Post by: Sarge on January 27, 2008, 11:01:14 PM
Quote from: softtouch on January 27, 2008, 09:54:05 PM
We need a module which allow to set:
- smtp server
- port
- Use encrypted protocoll (NO, SSL, TLS)
- SMTP Authentication (username, password)
- Email From (name and email address)

It's been explained in this topic. In SMF Admin > Server Settings > Feature Configuration, set:

Mail type: SMTP
SMTP server: ssl://smtp.gmail.com
SMTP port: 465
SMTP username: [email protected] (substitute your account with the administrator e-mail you have registered your domain with in Google Apps)
SMTP password: the one for your administrator Gmail account.

Put the same e-mail address in Admin > Server Settings > Core Configuration tab > "Webmaster Email Address".
Title: Re: GMAIL and the SMTP feature
Post by: softtouch on January 29, 2008, 11:33:04 PM
Quote from: Sarge on January 27, 2008, 11:01:14 PM
Quote from: softtouch on January 27, 2008, 09:54:05 PM
We need a module which allow to set:
- smtp server
- port
- Use encrypted protocoll (NO, SSL, TLS)
- SMTP Authentication (username, password)
- Email From (name and email address)

It's been explained in this topic. In SMF Admin > Server Settings > Feature Configuration, set:

Mail type: SMTP
SMTP server: ssl://smtp.gmail.com
SMTP port: 465
SMTP username: [email protected] (substitute your account with the administrator e-mail you have registered your domain with in Google Apps)
SMTP password: the one for your administrator Gmail account.

Put the same e-mail address in Admin > Server Settings > Core Configuration tab > "Webmaster Email Address".

Does not work...

Followed EXACTLY your instruction, but get error in log and no mail is sent:

-> Ran into problems sending Mail. Error: 555 5.5.2 Syntax error k19sm866716rvb.18

I am using SMF 1.1.4
OpenSSL is installed (of course, because it works just fine with my drupal site).
Title: Re: GMAIL and the SMTP feature
Post by: Sarge on January 31, 2008, 01:53:45 AM
Have you configured the MX records and other DNS settings as required by Google?
Step 2: Verify domain ownership (http://www.google.com/a/help/intl/en/admins/resources/setup/step_two.html)
Configuring Your MX Records (http://www.google.com/support/a/bin/answer.py?answer=33352&ctx=sibling)
Creating Your CNAME Record (http://www.google.com/support/a/bin/answer.py?answer=47283&ctx=sibling)
Title: Re: GMAIL and the SMTP feature
Post by: falguni1 on January 31, 2008, 02:44:20 AM
wot does all this mean.

does smf allow admins to give to provide email service as @urdomain.com.
Title: Re: GMAIL and the SMTP feature
Post by: Sarge on January 31, 2008, 03:58:18 AM
Quote from: falguni1 on January 31, 2008, 02:44:20 AM
does smf allow admins to give to provide email service as @urdomain.com.

SMF does not create e-mail addresses, it simply uses what e-mail address you provide to it, and those addresses should exist.
Title: Re: GMAIL and the SMTP feature
Post by: softtouch on February 12, 2008, 03:15:30 AM
Quote from: Sarge on January 31, 2008, 01:53:45 AM
Have you configured the MX records and other DNS settings as required by Google?
Step 2: Verify domain ownership (http://www.google.com/a/help/intl/en/admins/resources/setup/step_two.html)
Configuring Your MX Records (http://www.google.com/support/a/bin/answer.py?answer=33352&ctx=sibling)
Creating Your CNAME Record (http://www.google.com/support/a/bin/answer.py?answer=47283&ctx=sibling)


Sorry for the late response.
Yes, google is setup properly, and I can easily send emails via drupal using y google accounts for my domain.
But the same settings applied to smf does not work. I will try again...
Title: Re: GMAIL and the SMTP feature
Post by: Sarge on February 12, 2008, 03:22:46 AM
I'm not sure about Drupal (to be honest, I have yet to take a look at it), but are there any e-mail settings that Drupal has and SMF doesn't? Like a protocol list or something?