I look for information on the web and found something but nothing work. My gmail got allways use protocole https and IMAP is activate, but my mail never send
P.S.: I have a search bar to do and i see that quickseach exist in umbraco but i don't know how to use it someone can tell me.
Thank you for the future replay and have a good day.
Send email contact us page
Hello,
I know this issue has been addressed hundreds of times. I use a base template and in it i found a contact us form. I do some modification for my need :
and
using System;
using umbraco;
namespace RunwayContactForm {
public partial class Contact : System.Web.UI.UserControl {
private string subject;
public string Subject {
get { return subject; }
set { subject = value; }
}
private string yourEmail;
public string YourEmail {
get { return yourEmail; }
set { yourEmail = value; }
}
protected void Page_Load(object sender, EventArgs e) {
}
protected void SendMail(object sender, EventArgs e) {
Page.Validate();
if (Page.IsValid) {
library.SendMail(tb_email.Text, yourEmail, subject, String.Format("Name : {0} \\n Phone : {1} \\n Message : {2}",tb_name.Text,tb_phone.Text,tb_msg.Text),true);
bt_submit.Visible = false;
lb_success.Visible = true;
}
}
}
}
in my web.config :
<system.net>
<mailSettings>
<smtp>
<network host="smtp.gmail.com" port="587" defaultCredentials="false" userName="[email protected]" password="mypassword" enableSsl="true" />
</smtp>
</mailSettings>
</system.net>
I look for information on the web and found something but nothing work. My gmail got allways use protocole https and
IMAP is activate, but my mail never send
P.S.: I have a search bar to do and i see that quickseach exist in umbraco but i don't know how to use it someone can tell me.
Thank you for the future replay and have a good day.
is working on a reply...