Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2016, 02:18 PM
Registered User
 
Join Date: Oct 2015
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default Sending email from production server

Hi Imar,
I've deployed my website to Windows Azure, thanks to your instructions and your amazing book I've learned from.
But something unexpected happened. I have a contact form with the same settings and configurations in web.config file as in the book, where I use my personal email to send and receive visitors emails, but when I click on the send button, the process terminate, and I receive a privacy warning email to my inbox instead of the usual "visitor" email.
Why this happen? and how can I solve it?

Thanks very much

Last edited by Madongeer; February 25th, 2016 at 03:03 PM..
 
Old March 1st, 2016, 03:56 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you elaborate on this:

>> and I receive a privacy warning email to my inbox instead of the usual "visitor" email.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 1st, 2016, 04:04 PM
Registered User
 
Join Date: Oct 2015
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

precisely, it's a security threat warning.
happened with both gmail and outlook, that's the message I received from gmail (after submitting the message in the contact form)
http://i.stack.imgur.com/1L4vf.png

But that mostly happens from the production server.
 
Old March 6th, 2016, 02:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think what you need to do is set up an "app password". I briefly touch on this subject in the book (Chapter 9):

"Don’t forget to enter your password and username — which in the case of Gmail is your full Gmail e-mail address. Depending on your settings, you may need to generate an application-specific password, which you can do here: http://bit.ly/N9Wv35."

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 12th, 2016, 03:24 AM
Registered User
 
Join Date: Mar 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I think I have same issue here. I have asp.net web application and I use gmail to send emails in this application. It was working well for a long time. Suddenly the production server stopped sending emails. The same works good on my local development pc as well as a test server. How can i fix this issue? Thanks
 
Old March 13th, 2016, 10:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you try what I recommended to Madongeer?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending email problem - SMTP server response: 554 Havokx Beginning PHP 0 July 27th, 2007 04:04 AM
~* Installing MSRS in Production Server *~ chakravarthy_vr Reporting Services 0 March 9th, 2006 09:31 PM
Sending EMail thru SMTP server in C# - Most of the peri C# 1 December 20th, 2004 09:33 PM
Sending email on win 2003 server md_haris VBScript 3 October 21st, 2004 12:20 PM
values not showing in production server. stewdabaker Classic ASP Databases 1 June 9th, 2004 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.