Beispiel #1
0
        public void userSubmit_Click(object sender, EventArgs e)
        {
            string _customerName    = fullNameInput.Text;
            string _customerEmail   = emailInput.Text;
            string _customerMessage = messageInput.Text;

            JoshCV.app.EmailConfig myEmail = new JoshCV.app.EmailConfig();
            myEmail.SendEmail("Web Contact From " + _customerName, _customerMessage, _customerEmail, "*****@*****.**", "");



            //List<string> emaillist = new List<string>();
            //emaillist.Add("*****@*****.**");
            //emaillist.Add(CustomerEmail);



            //MailMessage myMessage = new MailMessage();
            //myMessage.Subject = "Message to me";
            //myMessage.Body = "Thank you for your message, I will be in touch shortly. You have submitted the following message: " + CustomerMessage + "from the following email address: " + CustomerEmail;
            //myMessage.From = new MailAddress("*****@*****.**", "JCRZ Message");
            //myMessage.To.Add(_customerEmail);

            //MailAddress bcc = new MailAddress("*****@*****.**");
            //myMessage.Bcc.Add(bcc);

            //var client = new SmtpClient("217.194.212.22");

            //client.Send(myMessage);

            formReceipt.Visible = true;
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.MetaKeywords    = "Josh Crossley Contact";
            Page.MetaDescription = "Josh Crossley Curriculum Vitae. Aspiring Web Developer in Telford. Find out more. ";

            JoshCV.app.EmailConfig myEmail = new JoshCV.app.EmailConfig();
        }