Solved

Send email via HTML

Posted on 2013-11-21
2
289 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

771 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

11 Experts available now in Live!

Get 1:1 Help Now