Print Page | Close Window

Send email notifications through gmail SMTP server

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31631
Printed Date: 28 March 2026 at 9:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Send email notifications through gmail SMTP server
Posted By: ForumDummy
Subject: Send email notifications through gmail SMTP server
Date Posted: 20 September 2019 at 7:05am
What line or lines of code would I need to add to functions_send_mail.asp in order to send notification emails through the gmail server when someone makes a post? I am using CDOSYS. Gmail requires STARTTLS command. smtpusess or something like it? Thanks!



Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 September 2019 at 8:18am
As far as I am aware CDOSYS does not support STARTTLS.

You would need to use Persists AspEmail which is supported in Web Wiz Forums and does work with Gmail's STARTTLS.


-------------
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: ForumDummy
Date Posted: 20 September 2019 at 8:53am
I think I would like to try it. So should I add this code to functions_send_mail.asp?

Mail.TLS = True
Mail.Port = 587

or this?

.TLS = True
.Port = 587

Thank you.


Posted By: WebWiz-Bruce
Date Posted: 20 September 2019 at 2:38pm
You do not need to add anything to the functions_send_mail.asp file.

From the email settings page in the Web Wiz Forums admin area select the option for CDOSYS with SSL and set the port to 587.

TLS is just the new name for SSL. SSL was replaced with TLS 20 years ago, but TLS kept being called SSL as most people know what SSL but until recently most people would not have ever heard of TLS.


-------------
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: ForumDummy
Date Posted: 30 September 2019 at 9:38am
Now I am really getting confused.  To get Web Wiz Forums to work with gmail, don't we need STARTTLS? If so, then we cannot use CDOSYS, correct? Which is why you suggested Persists AspEmail, correct? If I need to use Persists AspEmail, then I would need to hard code some stuff into functions_send_mail.asp, wouldn't I? But I would prefer to use CDOSYS.


Posted By: WebWiz-Bruce
Date Posted: 30 September 2019 at 12:08pm
You can not use CDOSYS, but you can use Persists AspEmail with Gmail using STARTTLS.

No coding is required. All you need to do is from the 'Email Settings' page in the 'forum admin area' select the option for 'Persists AspEmail with TLS'.

After the connection is made to Gmails SMTP servers, Gmail will then send the STARTTLS command and Persists will then change to using TLS encryption for the connection.

I use this on several forums with Gmail and it works out the box with no code changes needed.


-------------
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



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