Solved

Send email via HTML

Posted on 2013-11-21
2
291 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
2 Comments
 
LVL 52

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Email attacks are the most efficient and effective way for cyber criminals and hackers to compromise a computer or network. We often find our-self second guessing the authenticity of an email message, for such instances we can follow practical princ…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now