Solved

Send email via HTML

Posted on 2013-11-21
2
299 Views
Last Modified: 2014-03-26
I am trying to create an HTML page on my website using FrontPage, I placed fields on the page where the customer should enter personal information and comments, and then a click on command button to submit the comment, which should forward customer's input to my email.
If the above cannot be done with FrontPage, is there another software that I can use to accomplish the above by opening the html page that was created in FrontPage?
Also, if the customer omitted any of the required fields, how can I make the "Submit" unavailable until all required information is entered?
0
Comment
Question by:Moshe Singer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39668011
FrontPage is a webdevelopment tool (that happens to be outdated and probably not generating  acceptable code).

Sending mail is going to be done via your serverside code or using a 3rd party smtp mail service.

Based on the topic of your question, I assume you want a .NET solution.  
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_25349468.html
http://www.experts-exchange.com/Programming/Languages/.NET/Q_23284381.html

You can also use api's from a 3rd party service like mandrill http://mandrill.com/  https://mandrillapp.com/api/docs/
0
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
ID: 39668562
hi..
I'm not sure exactly what you're asking. If you're asking about HOW to send an email, the .NET Framework includes the System.Net.Mail namespace for sending out email via SMTP.

You can create a new SmtpClient. If it's deployed on a LAN then you can set the Host property to an Exchange server or other SMTP server.

You can then create a MailMessage with the body set to the HTML content to send.

Here's a sample:

 //create the mail message
 MailMessage mail = new MailMessage();

 //set the addresses
 mail.From = new MailAddress("me@mycompany.com");
 mail.To.Add("you@yourcompany.com");

 //set the content
 mail.Subject = "This is an email";
 mail.Body = "this is a sample body with html in it. <b>This is bold</b> <font color=#336699>This is blue</font>";
 mail.IsBodyHtml = true;

 //send the message
 SmtpClient smtp = new SmtpClient("127.0.0.1");
 smtp.Send(mail);
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question