diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index 6aceeec6..0490afd7 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -10029,6 +10029,354 @@ UPDATE [dbo].[UserSettings] SET [PropertyValue] = @UserPasswordResetLetterTextBo GO +-- Exchange setup EMAIL TEMPLATE + + + +IF NOT EXISTS (SELECT * FROM [dbo].[UserSettings] WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'From' ) +BEGIN +INSERT [dbo].[UserSettings] ([UserID], [SettingsName], [PropertyName], [PropertyValue]) VALUES (1, N'ExchangeMailboxSetupLetter', N'From', N'orders@virtuworks.com') +END +GO + +DECLARE @ExchangeMailboxSetupLetterHtmlBody nvarchar(max) + +Set @ExchangeMailboxSetupLetterHtmlBody = N' + + Account Summary Information + + + + + + + + + +
+ + + + + + +
VirtuWorks: Run Your Business In The Cloud
+ + + + + + +
+ + + + + + +
+ + + + + + + + + + + +
+
+ + + + + + + + + +
+ + + + + + + +
+ + + + + + +
+ + +
+ +

+ Hello #Account.DisplayName#, +

+

+ Thanks for choosing VirtuWorks as your Exchange hosting provider. +

+
+ +

User Accounts

+

+ The following user accounts have been created for you. +

+ + + + + + + + + + + + + +
Username:#Account.UserPrincipalName#
E-mail:#Account.PrimaryEmailAddress#
Password Reset Url:Click here
+
+

DNS

+

+ In order for us to accept mail for your domain, you will need to point your MX records to: +

+ + + + + + +
#SmtpServer#
+

+ Webmail (OWA, Outlook Web Access)

+

+ https://mail.virtuworks.net/owa +

+

+ Outlook (Windows Clients)

+

+ To configure Outlook 2013 to work with the VirtuWorks servers, please reference: +

+

+ http://www.virtuworks.com/how-to-configure-my-outlook-2010-client-to-work-with-my-velum-hosted-exchange-account/ +

+

+ If you need to download and install the Outlook client:

+ + + + + + + + + + + + + + + + +
Outlook 2013 Client
+ Download URL:Outlook 2013 - 32bit
Outlook 2013 - 64bit
+ KEY:HPN4P-JKC89-VCCWD-24CD2-9P8H7
+ +

+ ActiveSync, iPhone, iPad

+ + + + + + + + + + + + + + + + + +
Server:#ActiveSyncServer#
Domain:#SamDomain#
SSL:must be checked
Your username:#SamUsername#
+ +

Password Changes

+

+ Passwords can be changed at any time using Webmail or the Control Panel.

+

Control Panel

+

+ If you need to change the details of your account, you can easily do this using Control Panel.

+

Support

+

+ You have 2 options, email help@virtuworks.com or use the web interface at http://www.virtuworks.com/support

+ +
+ +
+
+
+ + + + + + +
+ + + + + + +
+ + + + + + + + +
Visit VirtuWorks.com
Learn more about the services VirtuWorks can provide to improve your business.
Privacy Policy
VirtuWorks follows strict guidelines in protecting your privacy. Learn about our Privacy Policy.
Contact Us
Questions? For more information, contact us.
+
+
+
+
+ +'; + +IF NOT EXISTS (SELECT * FROM [dbo].[UserSettings] WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'HtmlBody' ) +BEGIN +INSERT [dbo].[UserSettings] ([UserID], [SettingsName], [PropertyName], [PropertyValue]) VALUES (1, N'ExchangeMailboxSetupLetter', N'HtmlBody', @ExchangeMailboxSetupLetterHtmlBody) +END +ELSE +UPDATE [dbo].[UserSettings] SET [PropertyValue] = @ExchangeMailboxSetupLetterHtmlBody WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'HtmlBody' +GO + + +IF NOT EXISTS (SELECT * FROM [dbo].[UserSettings] WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'Priority' ) +BEGIN +INSERT [dbo].[UserSettings] ([UserID], [SettingsName], [PropertyName], [PropertyValue]) VALUES (1, N'ExchangeMailboxSetupLetter', N'Priority', N'Normal') +END +GO +IF NOT EXISTS (SELECT * FROM [dbo].[UserSettings] WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'Subject' ) +BEGIN +INSERT [dbo].[UserSettings] ([UserID], [SettingsName], [PropertyName], [PropertyValue]) VALUES (1, N'ExchangeMailboxSetupLetter', N'Subject', N'Virtuworks Hosted Exchange Mailbox Setup') +END +GO + + +DECLARE @ExchangeMailboxSetupLetterTextBody nvarchar(2500) + +Set @ExchangeMailboxSetupLetterTextBody = N' +Hello #Account.DisplayName#, + +Thanks for choosing VirtuWorks as your Exchange hosting provider. + + +User Accounts + +The following user accounts have been created for you. + +Username: #Account.UserPrincipalName# +E-mail: #Account.PrimaryEmailAddress# +Password Reset Url: #PswResetUrl# + + +================================= +DNS +================================= + +In order for us to accept mail for your domain, you will need to point your MX records to: + +#SmtpServer# + +================================= +Webmail (OWA, Outlook Web Access) +================================= + +https://mail.virtuworks.net/owa + +================================= +Outlook (Windows Clients) +================================= + +To configure Outlook 2010 to work with VirtuWorks servers, please reference: + +https://portal.virtuworks.net/whmcs/knowledgebase.php?action=displayarticle&id=2 + +If you need to download and install the Outlook 2010 client: + +Outlook 2010 Download URL: +32 Bit - http://www.virtuworks.net/downloads/Outlook2010-32bit.zip +64 Bit - http://www.virtuworks.net/downloads/Outlook2010-64bit.zip +KEY: HXGFV-DY3HM-4W2BQ-3R7KQ-K8P49 + +================================= +ActiveSync, iPhone, iPad +================================= + +Server: #ActiveSyncServer# +Domain: #SamDomain# +SSL: must be checked +Your username: #SamUsername# + +================================= +Password Changes +================================= + +Passwords can be changed at any time using Webmail or the Control Panel (https://controlpanel.virtuworks.net). + + +================================= +Control Panel +================================= + +If you need to change the details of your account, you can easily do this using the Control Panel (https://controlpanel.virtuworks.net). + + +================================= +Support +================================= + +You have 2 options, email help@virtuworks.com or use the web interface at http://www.virtuworks.com/contact/' + +IF NOT EXISTS (SELECT * FROM [dbo].[UserSettings] WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'TextBody' ) +BEGIN +INSERT [dbo].[UserSettings] ([UserID], [SettingsName], [PropertyName], [PropertyValue]) VALUES (1, N'ExchangeMailboxSetupLetter', N'TextBody', @ExchangeMailboxSetupLetterTextBody) +END +ELSE +UPDATE [dbo].[UserSettings] SET [PropertyValue] = @ExchangeMailboxSetupLetterTextBody WHERE [UserID] = 1 AND [SettingsName]= N'ExchangeMailboxSetupLetter' AND [PropertyName]= N'TextBody' +GO + -- ORGANIZATION USER PASSWORD RESET TOKENS diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs index 43e9ec0d..404ce57d 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs @@ -1646,7 +1646,7 @@ namespace WebsitePanel.EnterpriseServer TaskManager.Write("MailTo : " + mailTo); // send mail message - //MailHelper.SendMessage(from, mailTo, string.Empty, subject, body, priority, isHtml); + MailHelper.SendMessage(from, mailTo, null, subject, body, priority, isHtml); } catch (Exception ex) {