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.
Related
I would like to route all outgoing external mails via an external SMTP provider, in this case, Mailgun is my provider.
I have fiddled around with Org -> Hub -> Send connectors without any luck, the mails keep getting stuck and will only work if I use my standard send-connector.
Any ideas?
PS: If im in the right area, where and how can i debug the Send connector ? eventvwr isnt telling me much
Thanks in advance
I messed up the credentials. cy#
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
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!
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...
I have a server with Plesk installed.
On that I've created a domain, my-domain.com, and added and e-mail account noreply#my-domain.com with access to SMTP for sending e-mails.
With PHPMailer or Swift Mailer I am able to send via the SMTP account noreply#my-domain.com whenever the from address is outside the my-domain.com, for example info#my-second-domain.com.
Whenever I'm using an e-mail address that ends on #my-domain.com it fails.
I've tried to look in the /usr/local/psa/var/log/maillog file, but it only stores the mails that doesn't fail.
Can someone help me figure out where the problems is?
You can try this:
Delete the related domain in the qmail file /var/qmail/control/virtualdomains
Then reload/restart qmail. Now it should work.
More technical background at http://forum.parallels.com/pda/index.php/t-93222.html
Benjamin answer didn't work on my installation (Plesk 11.5), but I found another solution:
just turn off the mail service itself. It might not be the solution for everyone but it was for me (my domain's mx records pointing to another server, with some scripts sending emails here and there).
You can turn off the mail service fairly easily using Plesk GUI.
Then uncheck
However, this won't turn it off for subdomains and secondary domains you might have. No problem, just log in with ssh and run this command:
/usr/local/psa/bin/domain -u mydomain.example.com -mail_service false
And if one day you decide you want to turn it back on just replace false by true.