The remote certificate is invalid according to the validation procedure.. for email functionality using asp.net - smtpclient

While working on email functionality using asp.net, I found the following error :
Unknown error occurred when sending email: The remote certificate is invalid according to the validation procedure.. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
After analysis on the above issue I found the solution as mentioned below :
Setting the SMTPEnableSsl property of the SmtpClient class to false resolved the issue.
Thanks & Regards,
Santosh Kumar Patro

After analysis on the above issue I found the solution as mentioned below :
Setting the SMTPEnableSsl property of the SmtpClient class to false resolved the issue.

Related

fitbitScraper does not log in

I used to be able to use the fitbitScraper package to access the intra-day setps count and heart rate data for our study. Recently though, the "login" function of the package has stopped working. I receive the following error message after my each attempt to log in:
login("myemail#gmail.com", "mypassword", rememberMe = TRUE)
Error in login("myemail#gmail.com", "mypassword", rememberMe = TRUE) :
login failed
I wonder if anyone has experienced this problem and knows a fix to it.
I have tried re-installing the package, even updating R to its latest version but none of them has helped.
Fitbit recently updated their API and no longer allows for using web scraping methods. Best to use the direct Fitbit API and the personal app setting to access your own data.
More information can be found here.

Issue with sending test email - Sitecore Email Campaign Manager 3.3

When I try to send test email(all templates except Plain Text) I see this error in the log:
ERROR Exception: System.Net.WebException
Message: The connection to the remote server can not be established.
Source: System
at System.Net.HttpWebRequest.GetResponse ()
at Sitecore.Modules.EmailCampaign.Core.WebContent.DownloadString (String url, Boolean useIisCredentials, String user agent)
nested exception
Exception: System.Net.Sockets.SocketException
Message: It could not be established because the target machine actively refused
When I test it with Plain Text message all works fine.
On the ecm.requestbody page I see this exception:
exception: The connection to the remote server can not be established.
    at System.Net.HttpWebRequest.GetResponse ()
    at ASP.sitecore_admin_ecm_requestbody_aspx.DownloadString (String url, Boolean useIisCredentials, String iisUser, String iisPass)
Fields IIS.User and IIS.Password in the file Sitecore.EmailExperience.Core.config is also filled
Check your Base URL setting on your EXM manager root - it should be the URL of your Sitecore instance.
More on manager roots here:
https://doc.sitecore.net/email_experience_manager/30/setting_up_exm/the_manager_root/the_manager_root_settings
If that doesn't fix your issue there's a good knowledge base article here:
https://kb.sitecore.net/articles/553662
It was a stupid issue with wrong hostname in my hosts(system32/driver/etc/hosts) file

Links in EXM emails are broken for some users

We experience the following problem: when we send an email via EXM, links inside the email body doesn't work for some users.
Links inside email body are always converted by default to something like:
http://domainname/sitecore/RedirectUrlPage.aspx?ec_contact_id=xxxx84B137D2037C7D180&ec_message_id=xxxxB4CEAA3FD1A3B&ec_url=%2fthelinkpath
that is obviously done for tracking reasons.
However, some users experience 404 error when navigate the link. The Log always says the following:
ERROR EmailCampaign: Object reference not set to an instance of an object.
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Sitecore.Analytics
at Sitecore.Analytics.Tracking.StandardSession.InitializePage(ICurrentPageContext currentPageContext, ICurrentPageContext oldPage)
at Sitecore.Analytics.Tracking.StandardSession.Identify(String userName)
at Sitecore.Modules.EmailCampaign.Core.Pipelines.RedirectUrl.IdentifyContact.Process(RedirectUrlPipelineArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Modules.EmailCampaign.UI.RedirectUrlPage.HandleMessageEvent(ID messageId, ID contactId)
at Sitecore.Modules.EmailCampaign.UI.MessageEventPage.OnLoad(EventArgs e)
The only way to fix this error for the user is to clear his cookies or use another browser or use incognito mode. The user is currently logged out from the website.
Sitecore version 8.0 + EXM
Has anyone faced this problem before?
Indeed, this is because of cookies stored from previous sessions, thanks Tchami.
Sitecore Support answer was the same:
This error occurs when you open multiple mails with multiple
contactId's in the same browser.
But they didn't propose any solution except for clearing cookies or using another browser.
However, we don't want to break user experience even for this rarely appeared cases.
So, in order to handle the exception, we have found that the following pipeline processor should be rewritten:
<processor type ="Sitecore.Modules.EmailCampaign.Core.Pipelines.RedirectUrl.IdentifyContact, Sitecore.EmailCampaign" />
You can have a look at the code of custom processor here.

riemann email setup issue

I am trying to set up riemann (for monitoring) with email alerts. I have used the following section in my riemann.config file but after reloading the config, I get the error copied below. Any thoughts on troubleshooting this will be greatly appreciated.
Riemann.config
(streams
(where (and (service #"^riemann netty execution-handler")
(state "critical"))
(email "user#somewhere.com")))
Error:
java.lang.RuntimeException: Unable to resolve symbol: email in this context, compiling:(/home/user/test/riemann-0.2.4/etc/riemann.config:40:9)
I forgot to add the mailer section in the config - update to follow.
The attempt to send the email is successful - I am getting a different error now which I will post as a separate question (riemann email exception with SMTP).
You are missing the (let ...) expression that defines email as a mailer.
See example HERE

Uncaught Oauth Exception

I have a php application calling the Graph API. It's been working for almost a year and stopped working today with the following error:
Fatal error: Uncaught OAuthException: This IP can't make requests for that application. thrown in /mnt/var/vcap.local/dea/apps/nn-6-38e7eee3a80186c674057d8c08ede661/app/vendor/facebook/php-sdk/src/base_facebook.php on line 1133
The server is through appfog and the hostname is: nn.aws.af.cm
I've looked through posts suggesting that I add the IP to a whitelist. This did not solve the problem. (54.236.159.122)
I'd appreciate it if someone could provide the correct answer. Thanks in advance for your time.