Email setup on ARVIXE

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/17/2012 7:13:39 PM
Gravatar
Total Posts 37

Email setup on ARVIXE

 

Operating system = don't know (ARVIXE)
dbase = sql server 2008
mojoportal = mojoportal-2-3-8-1-mssql-net40-deploymentfiles





Can someone please me what I need to put in the user.config and/or web.config file for email to work?

The documentation (http://www.mojoportal.com/emailconfiguration.aspx) says to edit "ideally" the user.config file with the following settings.

<add key="SMTPServer" value="localhost" />
<add key="SMTPRequiresAuthentication" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="UserName" />
<add key="SMTPPassword" value="UPassword" />
<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="" />
<!-- example for Russian encoding
<add key="SmtpPreferredEncoding" value="koi8-r" />
-->

These settings to not exist in the user.config file that was downloaded from the "mojoportal-2-3-8-1-mssql-net40-deploymentfiles" package.

If I copy these into the file, the website breaks.

Is there any clear, step by step documentation on setting up email?

TIA

Greg

3/18/2012 7:59:11 AM
Gravatar
Total Posts 37

Re: Email setup on ARVIXE -- RESOLVED

Welcome friend!

Here is what you need in your user.config file if setting up mail forms or for your password recovery from a mojo install of "mojoportal-2-3-8-1-mssql-net40-deploymentfiles" on ARVIXE.

<!--____________________________DEMO USER.CONFIG FILE-- DO NOT INCLUDE THIS LINE _________________-->

<?xml version="1.0" encoding="utf-8"?>
<appSettings>

<!--
IMPORTANT:
Note that changes made to this file are not automatically detected by the ASP.NET runtime
It does detect changes to Web.config, so when you make a change in this file you need to touch Web.config (ie type a space in it andf save it)
to make it reload settings
-->

<add key="MSSQLConnectionString" value="server=XXXXXX;UID=XXXXXX;PWD=XXXXXX;database=XXXXXX" />

<add key="MySqlConnectionString" value="Server=localhost;Database=mojoprod;Uid=root;Pwd=Charset=utf8;" />

<add key="PostgreSQLConnectionString" value="Server=localhost;Port=5432;User Id=postgres;Password=;Database=mojo;Encoding=UNICODE;" />

<add key="FirebirdConnectionString" value="Data Source=localhost;Server Type=0;Port Number=3050;Database=C:\mojoportal\mojoportal.fdb;Dialect=3;Charset=UTF8;Pooling=True;Min Pool Size=0;Max Pool Size=200;Connection Timeout=10;Connection Lifetime=60;Fetch Size=200;User Id=SYSDBA;Password=masterkey" />

<!--
you can use a fully qualified file path as shown below
or if you are using the default db at /Data/sqlitedb/mojoportal.db
just leave this set to "defaultdblocation"
<add key="SqliteConnectionString" value="version=3,URI=file:C:\Projects\mojoportal\Web\Data\sqlitedb\mojoportal.db" />
-->

<add key="SqliteConnectionString" value="defaultdblocation" />

<!-- if running in medium trust uncomment this
<add key="RunningInMediumTrust" value="true" />
-->

<add key="ImageGalleryUseMediaFolder" value="true" />
<add key="GreyBoxCssIsLoadedFromSkin" value="true" />

<add key="DisableSearchFeatureFilters" value="false" />
<add key="SearchUseBackwardCompatibilityMode" value="false" />
<add key="EnableSearchResultsHighlighting" value="true" />
<add key="SearchIncludeModuleRoleFilters" value="true" />

<add key="UseLegacyCryptoHelper" value="false" />

<!-- this is true by default so that upgraded sites can change automatically from the older md5 hashing to the newer sha512 with salt
it is false here because it is not needed to do this extra check for new installations after we changed the hashing
since user.config.sample is only used when creating new sites and it is then renamed to user.config
-->
<add key="CheckMD5PasswordHashAsFallback" value="false" />

<add key="SMTPServer" value="mail.grass.arvixe.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="XXXXXX" />
<add key="SMTPPassword" value="XXXXXX" />

</appSettings>

 

Things to note:

1. You will first need to set up an email account from the ARXIXE cpanel. You can access the cpanel by referring to the email you received when you purchased hosting. (http://cp.yourWebSite.com)

2. "SMTPRequiresAuthentication" must be set to "true"

3. "SMTPServer" must be set to "mail.grass.arvixe.com"

4. Anywhere you see "XXXXXX" above you will need to change to your specific details.

Hope this helps any other poor SOB looking for complete documentation on a Sunday!

Greg 

4/2/2012 10:08:25 PM
Gravatar
Total Posts 355

Re: Email setup on ARVIXE

Actually, if mail server is set to localhost, as described here, it'll work just fine. I'm moving all my customer sites over to an Arvixe VPS account, and for ease of setup, I am making this change in my web.config files:

<!-- Setting this to true will cause SMTP settings to appear under Site Settings in the admin menu.
When this is enabled, you can configure different SMTP settings for each of your sites. If
all sites share one SMTP server, leave this set to false and override the SMTP settings below
in your user.config file. Note you also need to specify SMTP settings further below in the
system.net section. The settings here appply to features, but the settings in the system.net
mailSettings section are used for site registration and password recovery. -->
<add key="EnableSiteSettingsSmtpSettings" value="true"/>
<add key="MaskSmtpPasswordInSiteSettings" value="true"/>
<add key="ShowSmtpEncodingOption" value="true"/>

You must sign in to post in the forums. This thread is closed to new posts.