Print Page | Close Window

How to use smtp.gmail.com as a mail server in WWF?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=23531
Printed Date: 06 April 2026 at 3:35pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to use smtp.gmail.com as a mail server in WWF?
Posted By: StarDust
Subject: How to use smtp.gmail.com as a mail server in WWF?
Date Posted: 15 June 2007 at 12:12pm
Problem

I 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 Application
An 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 http://mail.google.com/support/bin/answer.py?answer=12103&topic=1555 - 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

I guess as v9.02 is out there, it is appropriate to post http://forums.webwiz.net/forum_posts.asp?TID=24104&PID=126209#126209 - it here.
http://forums.webwiz.net/forum_posts.asp?TID=24104&PID=126209#126209 - http://forums.webwiz.net/forum_posts.asp?TID=24104&PID=126209#126209


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x



Replies:
Posted By: WebWiz-Bruce
Date Posted: 15 June 2007 at 1:10pm
SMTP usually work on port 25, beceuase GMail are using a different port you would need to edit the file functions_send_mail.asp and change the port number.

However, if you try and send email to a remote server like GMail on a different network you will get long delays when posting a message, these will increase as more users request email notification for posts.

This is because a connection needs to be made to the SMTP server for each email, if the mail server is not on a local network then this is often slow and courses delays.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kpdillon
Date Posted: 15 June 2007 at 7:26pm
I route outbound email through GMAIL using stunnel.   http://forums.webwiz.net/forum_posts.asp?TID=22367&KW=stunnel&PID=119274#119274 - Have a look at here .  I've been using this solution for month's without any problems.


Posted By: StarDust
Date Posted: 15 June 2007 at 9:14pm
Originally posted by -boRg- -boRg- wrote:

SMTP usually work on port 25, beceuase GMail are using a different port you would need to edit the file functions_send_mail.asp and change the port number.

However, if you try and send email to a remote server like GMail on a different network you will get long delays when posting a message, these will increase as more users request email notification for posts.

This is because a connection needs to be made to the SMTP server for each email, if the mail server is not on a local network then this is often slow and courses delays.


I am glad that this post brought your attention. Thank You.

Sorry for my late return, one of my Netfirms.com domain account has just been hacked by a ***ker and he traqnsfered my domain! I am really puzzled!

But gonna try the solution ASAP.


Posted By: StarDust
Date Posted: 15 June 2007 at 9:15pm
Originally posted by kpdillon kpdillon wrote:

I route outbound email through GMAIL using stunnel.   http://forums.webwiz.net/forum_posts.asp?TID=22367&KW=stunnel&PID=119274#119274 - Have a look at here .  I've been using this solution for month's without any problems.



Thank you also! I just clicked on the link.


Posted By: kpdillon
Date Posted: 16 June 2007 at 7:47pm

How difficult would it be to support TLS and SSL relay support natively in Webwiz?

I'm not a programmer but I imagine it would be easier to do in .net then it would be in asp.


Posted By: StarDust
Date Posted: 05 August 2007 at 12:41pm
Originally posted by kpdillon kpdillon wrote:

How difficult would it be to support TLS and SSL relay support natively in Webwiz?

I'm not a programmer but I imagine it would be easier to do in .net then it would be in asp.


To me ASP.Net or ASP they are two different path to reach the destination. I am writing a function to solve this gmail issue right now and it is in ASP.

As WWF Free users are not allowed to modify scripts, I am not modifying any of it. (This is a very very baaaaad idea of borg. we are missing the charm of mods of WWF)


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: pappu
Date Posted: 08 August 2007 at 6:43am
hi

  I already tested by chaning the ports

  It dont work
  
  U need to set SSL Setting too.

  but after setting ssl to 1 i m unable to send mail.

  I got the email code from my own site where i used gmail to send mail .

  & my code works fine dunno why wwf with port & smtp not sending mail.

thanks




Posted By: StarDust
Date Posted: 08 August 2007 at 7:01am
Originally posted by pappu pappu wrote:

hi

  I already tested by chaning the ports

  It dont work
  
  U need to set SSL Setting too.

  but after setting ssl to 1 i m unable to send mail.

  I got the email code from my own site where i used gmail to send mail .

  & my code works fine dunno why wwf with port & smtp not sending mail.

thanks




Changing the port won't just work, any way. It is because of the way functions_send_mail.asp has been coded, there is no way you can define SSL / STARTTLS with WWF even with version 9! Gmail requires you to do this to use gmail's smtp.

But this can be done with two lines of code :)

The Solution

I guess as v9.02 is out there, it is appropriate to post forum_posts.asp?TID=24104&PID=126209#126209 - it here.
forum_posts.asp?TID=24104&PID=126209#126209 - http://forums.webwiz.net/forum_posts.asp?TID=24104&PID=126209#126209




-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: pappu
Date Posted: 08 August 2007 at 7:16am
Hi

  I m using 8.0.6
 
  I set the ssl true But still im getting error

 thanks


Posted By: StarDust
Date Posted: 08 August 2007 at 7:23am
Originally posted by pappu pappu wrote:

Hi

  I m using 8.0.6
 
  I set the ssl true But still im getting error

 thanks


I forgot what was in wwf v8.06. But i guess v8.06 ddid not use SMTP authentication. You need to re-code function_send_mail.asp

can you post the lines that start with With objCDOSYSCon and ends with End With so that i can look into and tell you what to do.




-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: WebWiz-Bruce
Date Posted: 08 August 2007 at 7:40am
SMTP authentication is available in 8.06 you enter the authentication details into the admin area.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: StarDust
Date Posted: 08 August 2007 at 7:47am
Originally posted by -boRg- -boRg- wrote:

SMTP authentication is available in 8.06 you enter the authentication details into the admin area.


Thank you -boRg- for your attention on this post.

Just a note situation like this, wouldn't it be better if we cud download old versions?


Sending email using smtp.gmail.com requires STARTTLS that is why i am asking for the code.


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: WebWiz-Bruce
Date Posted: 08 August 2007 at 8:44am
Not really as you should always be running the latest version, as it fixes bugs, improves security, etc.

If you run an older version then you leave yourself wide open to hackers, and if you have a support issue it's usually related to something which is fixed in a new version.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: pappu
Date Posted: 08 August 2007 at 8:57am
Quote With objCDOSYSCon
'Use SMTP Server authentication if required
If strMailServerUser <> "" AND strMailServerPass <> "" Then

' Specify the authentication mechanism to basic (clear-text) authentication cdoBasic = 1
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

'SMTP Server username
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = strMailServerUser

'SMTP Server password
.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = strMailServerPass
End If

'Out going SMTP server
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer

'SMTP port
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465

'CDO Port (1=localhost 2=network)
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = intSendUsing

'Use SSL

.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1
'Set CDO pickup directory if using localhost (CDO Port 1)

If intSendUsing = 1 Then
'CDO pickup directory (used for localhost service)
' .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:\inetpub\mailroot\pickup"
End If

'Timeout
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Fields.Update

End With



Above code is similar which i use my site to send mail but it is not working with wwf

I changed the port & server as gmail required &
ssl to 1

thanks




Posted By: StarDust
Date Posted: 08 August 2007 at 8:58am
That is true. -boRg-

WWF is a great application. I just love it. It's neat and clean and FAST! Just don't know how to thank you.


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: StarDust
Date Posted: 08 August 2007 at 9:01am
Originally posted by pappu pappu wrote:

Hi

  I m using 8.0.6
 
  I set the ssl true But still im getting error

 thanks



Can you copy and paste the code in functions/send_mail.asp of your Web Wiz Forum installation?

Or at least the code you are using to send email?

Unless i look into the code, i cannot help you.


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: StarDust
Date Posted: 08 August 2007 at 9:09am
pappu,

If you are using gmail, this is for you.


This block of code needs to be modyfied.
'SMTP port
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
'CDO Port (1=localhost 2=network)
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = intSendUsing
'Use SSL
'.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1


Copy and paste following lines of code replacing above lines:
'SMTP port
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
'CDO Port (1=localhost 2=network)
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = intSendUsing
'Use SSL
'.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true


Notice the red colored part that needs your attention. First line of code is your port. It must be changed accordingly. If this bunch does not work just replace the port 587 with 465.

Make sure you use in Email configuration in Admin Panel:

Select CDOSYS as your mail component

smtp.gmail.com as smtp server
A valid gmail email address as username
And password of that email address.


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net