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
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.
Do you no a gd one i can use??
Dave
http://www.hotpop.com has free SMTP service, but they're not going to be as good as what you'd get with GMail.
Thanks for the reply anyway mate!!
Dave
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.
If you don't mind me asking, why are you trying to use the gmail servers as the outgoing mail server for your forum?
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.
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.
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.
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.
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.
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.
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.
So how is this working out for anyone ?
Is there a limit to the amount of emails sent per hour ?
Works great for me. Unfortunately I can't get it to work with joomla, but it works great for SMF!
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.
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.
If you don't need the storage of sent messages, just use your gmail address, but send through your web server's mail setup.
My goal was to use googles smtp server. When I don't I seem to get blacklisted as spam more.
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.
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.
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 ?
That is because you are sending through Google's server. Send through your own server, it should be capable of sending mail.
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!
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.
What about using the PHP default?
Odd that a host wouldn't have any SMTP access on their network.
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?
Admin -> Server Settings -> Feature Configuration -> Mail Type
Select "PHP Standard" from the drop down list and save.
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.
It should be configured to show the sendmail path in php.ini like this:
sendmail_path = /usr/lib/sendmail
The path differs on servers.
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?
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
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.
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.
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 :-\
pataforos, please use English or ask on the support board for your language.
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.
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.
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
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?
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.
how do u change the PHP.ini file? where is it
thanks
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.
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
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
The semi-colon ( ; ) at the front of the line means it is commented out. Remove that from the line and restart Apache.
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.
where that exactly we can add this line "extension=php_openssl.dll". still doesnt work for me.
help me please
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.
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.
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
thanks unrelenting.
do you have other idea where we can use email hosting for free without opening the ssl?
thanks
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.
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.
help please
up
help please
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.
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
help
help
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.
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
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 !
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?
It should already be in the php.ini file. You just have to uncomment it meaning delete the ; in front of it.
MYBESTHOMESnet, walaha, Tompalaz, have you managed to solve the issues yet?
\\\\\\\\\\\\\\\\
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.
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
Was everyone able to get their problems resolved?
If not please repost your issue.
Thanks
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?
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".
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).
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)
wot does all this mean.
does smf allow admins to give to provide email service as @urdomain.com.
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.
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...
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?