Problem:
How do I configure Arvixe server to send email from my website
Solution:
System.Net.Mail.MailMessage eMail = new System.Net.Mail.MailMessage();
eMail.IsBodyHtml = true;
eMail.Body = body;
eMail.From = new System.Net.Mail.MailAddress(fromEmail);
eMail.To.Add(toEmail);
eMail.Subject = subject;
System.Net.Mail.SmtpClient SMTP = new System.Net.Mail.SmtpClient();
SMTP.Credentials = new System.Net.NetworkCredential("user","pass");
SMTP.Host = "localhost";
SMTP.Send(eMail);
Source
http://forum.arvixe.com/smf/programming-questions-tutorials/how-to-send-asp-net-email-using-system-net-mail/
This missive records my trials and tribulations as I code my way through projects. Fix the problem once and reuse the solution!
Showing posts with label Arvixe. Show all posts
Showing posts with label Arvixe. Show all posts
Tuesday, May 13, 2014
Tuesday, April 1, 2014
Arvixe posting instructions for visual Studio
5.) In the Publish method dropdown box select Web Deploy
6.) For the Service URL enter in yourservername.arvixe.com
7.) For the Site/application enter in yoursitename.com
8.) For the User name enter in the username that was under your website’s Management Tab
Example: mywebsitename_admin
9.) For the Password enter the password for the user specified above
10.) For the Destination URL enter your website’s address: http://yourwebsiteaddress.com
11.) Click Validate Connection. If you receive an error here stop and review the previous
information and try again. If successful then click Next >
12.) Select Release in the Configuration dropdown box
13.) In the Databases section you should see the connection string that you added earlier in your
Web.config. Click the dropdown box and select your connection string and also check the Use this
connection string at runtime checkbox. Then click Next >
14.) Preview the files that are about to be deployed to your site and once you’re done click Publish
15.) Congratulations! You have successfully deployed your ASP.NET Site to Arvixe. - See more at: http://blog.arvixe.com/arvixe-asp-net-web-deployment-how-to-guide/#sthash.gPhKWu4V.dpuf
http://blog.arvixe.com/arvixe-asp-net-web-deployment-how-to-guide/
Subscribe to:
Posts (Atom)