May you explain to me how the contact page setting is working?I mean is the email writtin the textbox ignored and how?If so what determine the sender email and the receiver email?
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
The from address is from the txtEmail.Text, txtName.Text as per the code
msg.From = new MailAddress(txtEmail.Text, txtName.Text);
Hope it helps
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
The from address is from the txtEmail.Text, txtName.Text as per the code
msg.From = new MailAddress(txtEmail.Text, txtName.Text);
Hope it helps
Now that is my question..How could the website send from the user email without knowing his user name and password as you know this is not mailto which will open on the client computer?!
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
Sorry I am not sure I understand you here, but if you have a website and you send out email as
info@domain but you could still have
email sent to you on that address.
But I guess most of the time you would not send mail to youself, unless you where testing something out.
Hope it helps
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
Yes, So you need to set these up to your own settings before you deploy the site.
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
TheEagle
Member
71 Points
482 Posts
contact page-sending from user email?!
Jul 12, 2008 05:49 AM|LINK
Hi,
May you explain to me how the contact page setting is working?I mean is the email writtin the textbox ignored and how?If so what determine the sender email and the receiver email?
jeremyh
Star
8173 Points
1477 Posts
Re: contact page-sending from user email?!
Jul 12, 2008 07:01 PM|LINK
Take a look in the web.config at
<theBeerHouse defaultConnectionStringName="LocalSqlServer"> <contactForm mailTo="thebeerhouse@wrox.com"/> <articles pageSize="10" /> <polls archiveIsPublic="true" votingLockByIP="false" /> <newsletters fromEmail="thebeerhouse@wrox.com" fromDisplayName="TheBeerHouse" /> <forums threadsPageSize="8" hotThreadPosts="10" bronzePosterPosts="10" silverPosterPosts="20" goldPosterPosts="50" /> <store sandboxMode="true" businessEmail="thebeerhouse@wrox.com" /> </theBeerHouse>For the default values.
Hope it helps
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
TheEagle
Member
71 Points
482 Posts
Re: contact page-sending from user email?!
Jul 13, 2008 08:11 AM|LINK
OK.This mean the email thebeerhouse@wrox.com is the receiver email so what is the sender email?
jeremyh
Star
8173 Points
1477 Posts
Re: contact page-sending from user email?!
Jul 13, 2008 08:18 AM|LINK
The from address is from the txtEmail.Text, txtName.Text as per the code
Hope it helps
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
TheEagle
Member
71 Points
482 Posts
Re: contact page-sending from user email?!
Jul 13, 2008 08:25 AM|LINK
Now that is my question..How could the website send from the user email without knowing his user name and password as you know this is not mailto which will open on the client computer?!
jeremyh
Star
8173 Points
1477 Posts
Re: contact page-sending from user email?!
Jul 13, 2008 08:28 AM|LINK
Oh Ok well the setting that it is using to send the mail are these from the web.config
<system.net> <mailSettings> <!-- <smtp deliveryMethod="Network"> --> <smtp deliveryMethod="PickupDirectoryFromIis" from="thebeerhouse@wrox.com"> <network defaultCredentials="true" host="(localhost)" port="25" /> </smtp> </mailSettings> </system.net>Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
TheEagle
Member
71 Points
482 Posts
Re: contact page-sending from user email?!
Jul 13, 2008 09:04 AM|LINK
Don't you think it is impossible to use the same email to send the message and receive it?
jeremyh
Star
8173 Points
1477 Posts
Re: contact page-sending from user email?!
Jul 13, 2008 01:24 PM|LINK
Sorry I am not sure I understand you here, but if you have a website and you send out email as info@domain but you could still have
email sent to you on that address.
But I guess most of the time you would not send mail to youself, unless you where testing something out.
Hope it helps
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
TheEagle
Member
71 Points
482 Posts
Re: contact page-sending from user email?!
Jul 14, 2008 09:24 PM|LINK
As you mentioned in your previous posts the email in both settings is:thebeerhouse@wrox.com as following:
Which means we are setting the same email as in "from" and "mailto" .Is this correct?
jeremyh
Star
8173 Points
1477 Posts
Re: contact page-sending from user email?!
Jul 15, 2008 09:12 AM|LINK
Yes, So you need to set these up to your own settings before you deploy the site.
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.