Mark Woods 0 Report post Posted March 11 I have set up my TNG website on a Synology web server. So far everything seems to be working fine except sending an email from TNG. Are there any Synology users out there that can give me advice. I tried with just my email entered in the admin settings page, then I tried using my gmail account information, SMPT server and port number with no luck. Any suggestions? thanks Mark Share this post Link to post Share on other sites
crashar 0 Report post Posted March 12 I just use a standard outlook account through smtp. In the Setup page I set the Mail and registration settings as below. Use SMTP authentication = yes SMTP host name = smtp-mail.outlook.com Mail Username = (outlook email address) Mail Password = (outlook account password) Port number = 587 Encryption = starttls Share this post Link to post Share on other sites
Caanuck 0 Report post Posted March 12 I use gmail without any hassles on a QNAP NAS. Use SMTP authentication = yes SMTP host name = smtp.gmail.com Mail Username = (full gmail email address) Mail Password = (gmail account password) Port number = 465 Encryption = ssl The only tricky thing is if you use two factor authentication , you need to get an app password instead of just your usual gmail account password See this page for more details On all of this; https://kinsta.com/blog/gmail-smtp-server/ Share this post Link to post Share on other sites
Mark Woods 0 Report post Posted March 13 Thanks for both answers, I tried both ways. TNG says the emails are sent. They don’t arrive at the destination, I also checked the SPAM folder for each account. Share this post Link to post Share on other sites
Mark Woods 0 Report post Posted March 14 I am adding more information to help with understanding my issue. I am running TNG on two different servers, the first is my test server which is a Mac laptop OS 10.14.5 running php 7.4. The second is connected to the internet on a Synology NAS web server also running php 7.4. My problem is on both servers the email function will not work, that includes the “Contact Us” feature on the home page. I have been working on this for days. I have tried not using SMPT to what I think is every combination of SMPT server options found on Google’s help page. When I try to use the “Contact Us’ feature on the home page I get a reply that says “We're sorry, but your message could not be delivered. Please contact Our Family History directly at.” And when I try to email the users from the Admin users page I get the reply “Your e-mail message has been sent..” Any suggestions would be helpful. I can edit php code if needed. Thanks in advance Mark Share this post Link to post Share on other sites
jrueger 0 Report post Posted March 14 In general does email work on the Synology box or the Mac? I.e. can you send and receive email on the web servers outside of TNG? Do you have firewalls running at all that might block the ports outbound etc? Share this post Link to post Share on other sites
Mark Woods 0 Report post Posted March 14 I am able to email from the Synology server via the DMS notification feature and from the Mac using email client software. There are no firewalls that I see running. What I need to test is a basic php email script on both servers, I may end up have to write my own code if I can’t find one on the internet. Thanks Share this post Link to post Share on other sites
jrueger 0 Report post Posted March 15 I was playing with the TNG email stuff a few days ago trying to get it to work with my Microsoft 365 business email ... and managed to figure out that TNG uses the standard sendmail and smtpmail PHP routines ... and you can enable debug to output email sending results to the screen. It didn't help me but it was interesting and at least led me in the direction of figuring out what might be wrong. You can enable debug in the tngmaillib.php file after line 20 and a new line $mail->SMTPDebug = 4; so it says: $mail = new PHPMailer\PHPMailer\PHPMailer($options); $mail->SMTPDebug = 4; That should output the most verbose logging messages to the screen and that might help you to figure out what is going on at least ... and hopefully to a resolution. Anyway TNG is using the standard php email routines of class.phpmailer.php and class.smtp.php though they seem to be a few versions old. In any case investigating that might help solve your problems. Jeff Share this post Link to post Share on other sites
Mark Woods 0 Report post Posted March 15 Thanks Jeff I will definitely give that a try. Share this post Link to post Share on other sites
theKiwi 0 Report post Posted March 15 This works for me, and for many other TNG users... if you're hosted at Simply Hosting Put the eMail address in the top box and again in the box for mail username Password in the last box. For GMail these settings should work Quote How to find the SMTP Server for Gmail? To find the SMTP server, you can use the details that are mentioned below: Gmail SMTP server address: smtp.gmail.com Gmail SMTP name: Your full name Gmail SMTP username: Your full Gmail address (e.g., you@gmail.com) Gmail SMTP password: The password that you use to log in to Gmail Gmail SMTP port (TLS): 587 Gmail SMTP port (SSL): 465 I used to use that with TNG on the Server I ran from my basement. Roger Share this post Link to post Share on other sites
Mark Woods 0 Report post Posted March 18 The problem is Google is not accepting my credentials using TNG. I wrote the Google community and was sent a reply that I needed to use the Google app password. Does anybody else use the Google app password? It requires you use the two step verification method. But if you use a phone you only need one password which unlocks your two step deal. This seems silly to me, can anybody help me better understand what is going on? Thanks in advance. Share this post Link to post Share on other sites
theKiwi 0 Report post Posted March 18 Yes, I have set up Google app passwords for things in the past - I don't remember what they are, but I remember having used it somewhere in the past. Roger Share this post Link to post Share on other sites