ProblemI have a Google App account for my domain name. I t is a free account that enables all my users to use POP mail service.
That is is has smtp also > smtp.gmail.com port:
465 or 587 (both, one at a time)
Please note: I have enabled POP in the no-reply@mydomain.com and using username no-reply@mydomain.com and its password to send mail. But the WWF generates error:
Server Error in Forum ApplicationAn error has occured while sending an email.
Please contact the forum administrator.
Support Error Code:- err_Access_send_mail_footer
File Name:- functions_send_mail.asp
Error details:-jmail.SMTPMail
The message was undeliverable. All servers failed to receive the message
Here is what gmail says about configuration:
----------------------------
Configuring other mail clients
You can use the following information to configure POP with many
mail clients. If you encounter difficulties, we suggest contacting your
mail client's customer support department for further instructions --
we're not able to provide assistance with configuring mail clients not
listed here.
| Incoming Mail (POP3) Server - requires SSL: |
pop.gmail.com
Use SSL: Yes
Port: 995 |
| Outgoing Mail (SMTP) Server - requires TLS: |
smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587
|
| Account Name: |
your Gmail username (including @gmail.com) |
| Email Address: |
your full Gmail email address (username@gmail.com) |
| Password: |
your Gmail password |
Please note that if your client does not support
SMTP authentication, you won't be able to send mail through your client
using your Gmail address.
--------------------------------
The Solution
This can be done with two lines of code :) Thanks to microsoft. This is a CDOSYS solution.
Open up functions_send_mail.asp and in line 193 you change the port number of gmail
Here is line 193
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 |
Change the line into
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 |
or (Do you notice the change in port number?)
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587 |
Before line 205 add this line:
.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True |
Here is line 205:
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 |
Now all you need to do is select CDOSYS as your email component from admin panel.
And gmail's smtp is smtp.gmail.com port 465 or 587 requires username+password to authenticate.
Tested with WWF v9.02
Edited by StarDust - 08 August 2007 at 7:18am