-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working on localhost but not on godaddy server #1488
Comments
|
@Synchro you mean this: sg2plcpnl0207.prod.sin2.secureserver.net right? 2018-07-03 07:42:02 SERVER -> CLIENT: 220-sg2plcpnl0207.prod.sin2.secureserver.net ESMTP Exim 4.89_1 #1 Tue, 03 Jul 2018 00:42:02 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. 2018-07-03 07:42:02 CLIENT -> SERVER: EHLO websitename.com 2018-07-03 07:42:02 SERVER -> CLIENT: 250-sg2plcpnl0207.prod.sin2.secureserver.net Hello sg2plcpnl0207.prod.sin2.secureserver.net [148.72.232.108] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-CHUNKING 250-STARTTLS 250 HELP 2018-07-03 07:42:02 CLIENT -> SERVER: STARTTLS 2018-07-03 07:42:02 SERVER -> CLIENT: 220 TLS go ahead 2018-07-03 07:42:02 CLIENT -> SERVER: EHLO websitename.com 2018-07-03 07:42:02 SERVER -> CLIENT: 250-sg2plcpnl0207.prod.sin2.secureserver.net Hello sg2plcpnl0207.prod.sin2.secureserver.net [148.72.232.108] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-CHUNKING 250 HELP 2018-07-03 07:42:02 CLIENT -> SERVER: AUTH LOGIN 2018-07-03 07:42:02 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2018-07-03 07:42:02 CLIENT -> SERVER: cHJhY3RpY2VtYWlsMzA0OThAZ21haWwuY29t 2018-07-03 07:42:02 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2018-07-03 07:42:02 CLIENT -> SERVER: QXVyb3JhX0JvcmVhbGlzOTg= 2018-07-03 07:42:04 SERVER -> CLIENT: 535 Incorrect authentication data 2018-07-03 07:42:04 SMTP ERROR: Password command failed: 535 Incorrect authentication data 2018-07-03 07:42:04 SMTP Error: Could not authenticate. 2018-07-03 07:42:04 CLIENT -> SERVER: QUIT 2018-07-03 07:42:04 SERVER -> CLIENT: 221 sg2plcpnl0207.prod.sin2.secureserver.net closing connection 2018-07-03 07:42:04 SMTP connect() failed |
I'm guessing that's your own server's internal name, so it's probably the same as using localhost. You could try disabling auth. Either way, this is a GoDaddy support question. |
@Synchro m a newbie to this... and godaddy support is stupid, i mean nothing worked from there.... can you help in any way or i have to post in their forum ? |
@Synchro Setting auth to false worked... still is it good? i mean is it ok if authentication remains disabled? |
It's just that if you're sending from your own machine back to itself, then auth isn't gaining you any extra security, and although the server advertises auth, it's probably not set up with the users and passwords you expect. This kind of setup is common in shared hosting. GoDaddy is pretty much the bottom of the barrel as far as hosting goes - you can get a whole server to yourself at scaleway.com for €3/month, though that comes with more responsibility as well as capabilty. |
Im having issues with godaddy,, trying to get this contact form working, works great on local, but not godaddy server using System; public partial class Default2 : System.Web.UI.Page
} |
@donkeysmell Your code isn't even using PHP, let alone PHPMailer! |
Hi Marcus @Synchro I'm having issues with Godaddy and PHPMailer
I get a 500 internal server error (which is pretty useless) without any other information even though I have SMTPdebug is set to 3. |
@tanushree57 what does your error logs say? |
Is this what you're looking for?
|
Yes, this is what you should look for:
The server smtpout.secureserver.net (or something in-between such as Godaddy) won't let you connect to it. |
As far as I'm aware, GoDaddy's outbound mail servers use neither encryption nor authentication, and trying to use either will cause it to fail, so I'd recommend turning both of those off and switching to port 25. |
Ohh got it. I found the PHPMailer troubleshooting docs and tried the bit of code that you'll have provided under Godaddy. So now it's using localhost at port 25 without either safety measure (the stupidity!). And I think I've got it working now. Thank you so much @NiklasBr & @Synchro ! Btw just a query regarding this way of handling it, isn't it less secure considering the username and password aren't taken into account? |
Well, I can understand their reasoning to some extent. They know exactly who you are from your source IP, so can use that for authentication. The traffic is only exposed on the local network, so it's only visible to local users (which might include other GoDaddy users, though even that may be protected by other means), so encryption isn't strictly needed. Combining the two makes things less complicated for them, but as you say, if I wanted to keep things secure I would not be hosting on GoDaddy anyway... :) |
Oh yes, I've realised that recently and switched to Bluehost for others but this is a long-standing client who already has his hosting there for sometime so it needed a fix. Godaddy has been nothing but a hassle in the email department every time I've used it. Merci beaucoup quand même |
am using this code:-
`$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = 'tls';
$mail->Host = "https://sg2plcpnl0207.prod.sin2.secureserver.net:......(the address of cpanel index)"; // SMTP server
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->IsHTML(); // set the SMTP port for the GMAIL server
$mail->Username = "email@gmail.com"; // SMTP account username
$mail->Password = "password"; // SMTP account password
$mail->SetFrom('email@gmail.com','blah blah
blah');
on localhost i used ssl and 465 and this thing worked but looking at forums on godaddy i changed it to tls 587 but it still shows SMTP connect() failed.. even at debug = 3
The text was updated successfully, but these errors were encountered: