From 61785f0570ffcf0002165a637bbc35a259c3e48b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 6 Oct 2022 17:54:16 +0000 Subject: [PATCH] --- Pages/Contact.cshtml | 323 +++++++++++++++++++--------------------- Pages/Contact.cshtml.cs | 54 +++---- notes | 4 + 3 files changed, 185 insertions(+), 196 deletions(-) diff --git a/Pages/Contact.cshtml b/Pages/Contact.cshtml index ec17417..d8efecc 100644 --- a/Pages/Contact.cshtml +++ b/Pages/Contact.cshtml @@ -1,196 +1,181 @@ @page @model ContactModel @{ - ViewData["Title"] = "Contact"; + ViewData["Title"] = "Contact"; } -
- -
-

Have questions? We have answers!

-
-
-
- - -

 

+
+ +
+ +

Have questions? We have answers!

+
+
+ +
-
-
-
-
-
- -
    -
  • Follow along with the step tutorial How do I...?'s with screenshots in the AyaNova online Help documentation
  • -
- - -
    -
  • Contact us via direct email at support@ayanova.com
  • -
-
    -
  • Have a quick question? Send us your question via our online form below
  • -
-
-
-
-
-
-
-
-
-
-
- -
- - -
-
-
-
-
-
-
- -
- - -
-
-
-
+

 

+ + +
-
-
- -
- - +
+
+
+
    +
  • Contact us via direct email at support@ayanova.com
  • +
+
    +
  • Or send us your question via our online form below
  • +
+
-
-
-
- -
- - + +
+
+
+
+ +
+ + +
-
-
-
-
- -
- - +
+
+
+ +
+ + +
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+
+ +
+ + +
-
- - -
- - -
-
- -
-
- +
+ + +
+
+
+ +
+
+ - -
-
-
-
-

The email address you provided will automatically and immediately receive a copy of what you sent to us as confirmation too.

-

All of our responses are from real live people, so there could be a delay receiving a reply due to time zone differences, time of day, weekend, or if a holiday long weekend.

-

Why do we ask for your name, company name and email address?

-

We use the information you send us to respond to you, to provide sales support and technicial support to you and your company, and to make AyaNova recommendations and suggestions to you and your company. Also refer to our Privacy Policy for more clarity.

- -
-
-
-
+ +
+
+
+
+

All of our responses are from real live people, so there could be a delay receiving a reply due to time + zone differences, time of day, weekend, or if a holiday long weekend.

+ +

Why do we ask for your name, company name and email address?

+
+

We use the information you send us to respond to you, to provide sales support and technicial support to + you and your company, and to make AyaNova recommendations and suggestions to you and your company. Also + refer to our Privacy Policy for more + clarity.

-
-
-
-
-
-

If you have sent a question, but have not received a confirmation email

-

 

-

1. Check the spelling of your email address:

-

Just in case!

-

 

-

2. Confirm that your email address mailbox is not full:

-

Your mailbox may have an email quota. And if email forwarding, do check both the email address originally sent to as well as the email address account being forwarded to.

-

 

-

3. Check your Junk folder:

-

If you find the email(s) from us in your Junk folder, do edit your spam settings so that all email from support@ayanova.com is allowed.

-

 

-

4. Issues with HotMail or AOL accounts:

-

If you have sent an email using a HotMail or AOL account (@@hotmail.com or @@aol.com), although we may receive it and have sent a reply, you may never receive our emails and we will never be advised that it was rejected by HotMail

-

You can also check out these two URL links about why not to use a HotMail account if you actually want to receive email from other's that do not have a HotMail account:

-

http://www.theregister.com/2007/05/01/hotmail_friendly_fire/

-

http://www.iis-aid.com/articles/iis_aid_news/are_hotmail_cutting_their_own_throat

-

 

-

5. Your SPAM settings:

-

Your email program or your ISP (Internet Service Provider) is using a spam filter that is filtering out all email from us, or certain email depending on the content.

-

You may need to edit your email program and/or contact your ISP to allow all email from support@ayanova.com

-

Once you have done this, either forward your previous email, or send a new email stating that you did not receive a reply due possibly to a spam filter, and we will resend the information.

-

We are not made aware by your spam filter that the email has not been received by you. The only way is if you confirm the receipt, or contact us again.

-
-
-
-
-
- -
-
-
-
-
-

Can I phone someone or have someone phone me?

-

In order to be able to provide an affordable product for small business with fast technical support globally, we do not provide phone support.

-

Please contact us via the online form above, or send us a direct email to support@ayanova.com and our North American support staff will respond promptly between 9:00AM and 5:00PM Pacific Standard Time (-8GMT/ UTC) Monday to Friday.

- -
-
-
-
-
+
+
+
+
- -
-
-
- Ground Zero Tech-Works Inc., 05 - 3610 Christie Parkway Courtenay, BC V9N 9T6 Canada -
- Since 1999 AyaNova® is a registered trademark of Ground Zero Tech-Works Inc. in the United States and other countries. -
- End User License Agreement | Privacy Policy
-
-
- \ No newline at end of file +
+
+
+
+
+

If you have sent a question, but have not received a reply

+

 

+

We answer every email we receive promptly within business hours. Verify you used the correct email + address and check your spam folder.

+
+
+
+
+
+ +
+
+
+
+
+

Can I phone someone or have someone phone me?

+

In order to be able to provide an affordable product for small business with fast technical support + globally, we do not provide phone support.

+

Please contact us via the online form above, or send us a direct email to support@ayanova.com and our + North American support staff will respond promptly between 9:00AM and 5:00PM Pacific Standard Time (-8GMT/ + UTC) Monday to Friday.

+ +
+
+
+
+
+ + +
+
+
+ Ground Zero Tech-Works Inc., 05 - 3610 Christie Parkway Courtenay, BC V9N 9T6 Canada +
+ Since 1999 AyaNova® is a registered trademark of Ground Zero Tech-Works Inc. in the United States and + other countries. +
+ Privacy Policy
+
+
+ \ No newline at end of file diff --git a/Pages/Contact.cshtml.cs b/Pages/Contact.cshtml.cs index 9ee48ac..bac432a 100644 --- a/Pages/Contact.cshtml.cs +++ b/Pages/Contact.cshtml.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; +using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.RazorPages; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; @@ -9,7 +6,6 @@ using System.Net.Mail; using System.Net; //for captcha: using System.Net.Http; -using System.Net.Http.Headers; using Newtonsoft.Json.Linq; using Microsoft.Extensions.Configuration; @@ -72,12 +68,15 @@ namespace contact.Pages var blocks = new List(); blocks.Add("google"); blocks.Add("jumboleadmagnet");//<--fuck this guy in particular, keeps spamming + blocks.Add("boostleadgeneration"); + //ericjonesmyemail@gmail.com var companyname = Contact.Company.ToLowerInvariant(); foreach (string s in blocks) { if (companyname.Contains(s)) { goto skipspam; + } } @@ -108,8 +107,8 @@ namespace contact.Pages smtpClient.Port = 587; smtpClient.UseDefaultCredentials = false; //testing - smtpClient.EnableSsl=true; - + smtpClient.EnableSsl = true; + // smtpClient.Port=465; // smtpClient.DeliveryMethod= SmtpDeliveryMethod.Network; @@ -127,8 +126,8 @@ namespace contact.Pages //Fastmail server names and ports help page: https://www.fastmail.help/hc/en-us/articles/1500000278342 //APP Password created in fastmail for smtp use only labelled 'contact-form': cnea8agl6nlx5j7l -//try using from as support@onayanova.com -//try domain version if this still won't work + //try using from as support@onayanova.com + //try domain version if this still won't work smtpClient.Credentials = new System.Net.NetworkCredential("support@onayanova.com", "cnea8agl6nlx5j7l"); //****************************************************************************************************************** //****************************************************************************************************************** @@ -137,26 +136,27 @@ namespace contact.Pages } } - //SEND COPY TO CLIENT - using (var message = new MailMessage()) - { - message.To.Add(new MailAddress(Contact.Email)); - message.From = new MailAddress("support@ayanova.com"); - message.Subject = $"Confirmation that your question about AyaNova has been received from {Contact.Company}"; - message.Body = MessageBody; + //Removed 2022-10-06 causing backscatter and also not helpful + // //SEND COPY TO CLIENT + // using (var message = new MailMessage()) + // { + // message.To.Add(new MailAddress(Contact.Email)); + // message.From = new MailAddress("support@ayanova.com"); + // message.Subject = $"Confirmation that your question about AyaNova has been received from {Contact.Company}"; + // message.Body = MessageBody; - using (var smtpClient = new SmtpClient("smtp.fastmail.com")) - { + // using (var smtpClient = new SmtpClient("smtp.fastmail.com")) + // { - smtpClient.Host = "smtp.fastmail.com"; - smtpClient.Port = 587; - smtpClient.UseDefaultCredentials = false; - smtpClient.EnableSsl=true; - //NOTE: Do not use the noreply email address to send mail, it crashes the server somehow - smtpClient.Credentials = new System.Net.NetworkCredential("support@onayanova.com", "cnea8agl6nlx5j7l"); - smtpClient.Send(message); - } - } + // smtpClient.Host = "smtp.fastmail.com"; + // smtpClient.Port = 587; + // smtpClient.UseDefaultCredentials = false; + // smtpClient.EnableSsl=true; + // //NOTE: Do not use the noreply email address to send mail, it crashes the server somehow + // smtpClient.Credentials = new System.Net.NetworkCredential("support@onayanova.com", "cnea8agl6nlx5j7l"); + // smtpClient.Send(message); + // } + // } } diff --git a/notes b/notes index f5c1f60..bdad173 100644 --- a/notes +++ b/notes @@ -16,6 +16,10 @@ $Profit //empty publish folder then... dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64 +backup last contact in contact.last folder +remove all files from contact.last +then cp -a ../contact/. . + copy up to server .NET Core apps: /srv/coreapps/contact