p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   ASP.NET 4 General Discussion (http://p2p.wrox.com/asp-net-4-general-discussion-561/)
-   -   smtp settings in webconfig file (http://p2p.wrox.com/asp-net-4-general-discussion/95393-smtp-settings-webconfig-file.html)

dksellou December 29th, 2015 12:44 AM

smtp settings in webconfig file
 
I have a question-scenario and I would like your help. I am posting in this forum because I learned aspnet from the great book of Imaar (beginning aspnet 4.5) and I have built my website following the exercises in the book!

here is the scenario:
let's say that you are controlling the aspnet project of the customer plus the dedicated server . The server is a dedicated server (plesk control panel-version 12) at godaddy.

The website owner's website has a contact form where a user can submit it and send the comment/questions to him (the website owner).
In the webconfig file of the project ithere is something like that:

<smtp deliveryMethod="Network" from="Webmaster &lt;websiteowner@yahoo.com&gt;">
<network host="dedrelay.secureserver.net" port="25" />


The dedrelay.secureserver.net at webconfig file above is the server info that godaddy gave to the website owner.
However when a user submits the form, the e mail is not sent to the address defined at webconfig (websiteowner@yahoo.com)....because godaddy dedicated server uses its own default mail server.
so the website owner wants to use an external mail server (yahoo mail server) in Plesk instead of the default server.
how would you add the external server at plesk and how you would change the MX records in order to be able to receive the emails from the website forms into his yahoo mail account?
Does this make sense?

for example for smtp settings , where would you point your MX records etc?

Imar January 10th, 2016 12:18 PM

>> Does this make sense?

No, not at all. What are you asking?

This:

>> However when a user submits the form, the e mail is not sent to the address defined at webconfig (websiteowner@yahoo.com)....because godaddy dedicated server uses its own default mail server.

makes no sense to me. The yahoo address is a *from* address (used as a fallback) not a To address. You can send mail wherever you want regardless of the SMTP host used to send it.


Imar

dksellou January 10th, 2016 12:32 PM

When i set the toaddress to a yahoo address the contact form does not send the inquiry to the yahoo address. It sends it from the website but it is never delivered.

dksellou January 10th, 2016 12:34 PM

But no worries.
I figured out i think.
It has to do with my settings on the server, not the webconfig

Imar January 10th, 2016 03:19 PM

Ah see (I think). Go Daddy or Yahoo may be rejecting the mail because the from address doesn't match the domain or server where the mail originates.

My book describes how to add SMTP settings for other mail servers like Yahoo and Gmail. Not sure how to do it through Plesk but I assume they have a UI somewhere to register mail servers.

Cheers,

Imar

amychersey November 10th, 2017 08:56 AM

Our professional resume writers will help you with writing a resume in a short time


All times are GMT -4. The time now is 10:37 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.