OpenShift & SwiftMail email authentication on remote site only - openshift

I am trying to send email via my gmail account and cannot find a solution to this error:
Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at .....
If I run my website on localhost (using win7, IIS Express and WebMatrix) my code works and the email is delivered. So my problem appears to be a possible configuration problem or misunderstanding on my part with OpenShift.
I have tried both port 465/SSL and 587/TLS and neither work on uploaded code.
Let me know what information to post to help track this problem down.
Many thanks in advance.

Simply change your gmail account security settings, it's work for me. There is no other issue it will be..cheers!

Related

Mailgun + phpMailer + GoDaddy

Please excuse newbie language because i am exactly that.
I am hosting myDomain.com on GoDaddy (registered in Asia)
I have deployed a phpScript for which i originally had a frustrating time validating credentials but finally succeeded thanks to the help of the forums here. (NB my SMTP Host was smtpout.asia.secureserver.net and SMTP Port =80 - none of the other ports would work)
I have now setup a subdomain on GoDaddy mailgun.myDomain.com and have verified this on Mailgun. creating a simple info#mailgun.myDomain.com i also succeeded in applying the necessary MailGun SMTP credentials to a Gmail account such that i can be managed from there - sending and receiving not a problem.
However, i am now unable to apply those same SMTP credentials via PHPMailer. THis has been discussed many times i know - and i've read through as best i can but have had little success finding a solution. I came across a recent reply from Synchro
https://stackoverflow.com/a/42291223/7802270
"Build your message as you would normally in PHPMailer, then call preSend() and getSentMIMEMessage() instead of send()."
Can i assume this is with reference to the class.phpmailer.php file?
And if so - i'm not sure i'm reading his comment correctly but do i then replace all instances of send() with getSentMIMEMessage()? or preSend()? It can't be both...
Thank you in advance for any clarifications

SMTP Send Mail Task Failing

I have already gone through multiple links before posting and it is not a repeat question.I am not pretty sure that i should post it here or on server fault.
I am trying to configure the SMTP email task but running into error mentioned below.
System.Net.WebException: Unable to connect to the remote server
System.Net.Sockets.SocketException:An attempt was made to access a socket in a way forbidden by its access permissions ipaddress:25
I also tried to verify using powershell, if the SMTP is fine and below are the results:
Using Send-mailmessage : It is working really fine
Using Net.Mail.SmtpClient : I could send email to organization email ids but not outside.
Can someone help me understand where exactly the problem could be.
The problem was Antivirus was blocking the requests from SSIS but was allowing the powershell requests.

Error when sideloading an Outlook add-in

When I try to sideload my Outlook add-in, created based on the last Ignite session by Andrew Salamatov, I get following error when I add the add-in from a URL (https://bulkpermissiondemo.azurewebsites.net/manifest-bulkpermission.xml): "The app can't be installed. This app isn't supported by the version of Exchange Server that your account connects to."
any idea what I'm doing wrong?
Thanks :-)
We’ve tried installing the manifest provided in the link but were unable to reproduce the error listed in the original post on recent builds. Could you try installing the manifest again and see if the same error occurs? If so, would you be willing to provide the email address for the account you are trying to install the add-in to? Then we can take a look at the server logs to see what the issue might be.

OpenERP 7.0 configure mail servers

I have a problem configuring Outgoing Mail Servers.
When I click "Test Connection", I see "Connection test succeeded! Everything seems properly set up!", but when I try to create user, and I click "Send reset password instructions by email", I've got a message "Cannot send email: no outgoing email server configured. You can configure it under Settings/General Settings."
I tried with various smtp servers and I got a clue when trying gmail smtp.
Google asked me:
You can switch to an app made by Google such as Gmail to access your
account (recommended) or change your settings at
https://www.google.com/settings/security/lesssecureapps so that your
account is no longer protected by modern security standards.
When I switched off the "modern security standards" I managed to send reset password instructions, however I can't use gmail for OpenERP.
I run OpenERP on my Synology NAS and there is something that smtp servers don't like. They allow to connect, but wouldn't allow to send emails.
IP is not and issue, as I tried smtp settings from account I actually have set up in my Outlook.
I will welcome any idea to solve it.
Thanks!
I found the reason.
It makes no sense to me and I can't find the logic behind it, but this is causing the problem described.
The Company email has to be the same as ERP email servers.
this actually happens when there is not email provided for the admin user. please provide the admin user the same email address used in outgoing mail server
I had the same problem, but I solved it.
Please follow the below steps.
Go to 'My Account'
Please select the 'Connected apps & sites'
Then you will see the 'Allow less secure apps: ON' Please 'ON' that button.
Please try again to Press 'Test Connection' button.
Hope this will help you.

Mail server rejecting default credentials in smtp settings for asp.net 4.0 healthMonitoring

I have successfully set up health monitoring for logging errors on my ASP.NET web page to the Windows Event Log, a SQL Server database, and through email (Microsoft Exchange) when I specify a user name and password in the web.config file. However, if I change from specifying a user name and password to defaultCredentials="true" in web.config, I get the following error message in my Windows Event Log when it tries to generate the email:
System.Web.HttpException (0x80004005): Unable to send out an e-mail to the SMTP
server. Please ensure that the server specified in the <smtpMail> section is
valid. ---> System.Net.Mail.SmtpException: Mailbox unavailable. The server
response was: 5.7.1 Client does not have permissions to send as this sender
I am running Windows Vista on a corporate domain. My Windows login is identical to my Microsoft Exchange login. Can anyone provide some insight as to why specifying my login credentials explicitly in the web.config file works, but using defaultCredentials="true" does not? Are there any known solutions so that I can have an automated email sent through healthMonitoring without having to store my user name and password in the web.config file?
Since I earned the tumbleweed badge for this question, I doubt an answer will be of much value to anyone else; but knowing that I will inevitably fall into the same trap at a later date, I thought I would post an answer to my own question...
Authentication is not necessary for sending emails within the same domain; so instead of specifying defaultCredentials="true", I removed all fields related to authentication, and the emails began working again.
Note that this is only a partial solution. I only need to send emails to addresses within the same domain for now. Sending emails outside of this domain will not work without authentication, so if/when that is needed, it will be back to the drawing board...