Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

vbcoach's Achievements


Member (2/5)




Community Answers

  1. This was one of the most thoughtful, well written responses I have ever had on this forum in all the years that I have been on here. You are spot-on in regards to my skill set, but I have had to learn everything on my own. Thank you for your thoughtful (and not demeaning) response.
  2. For anyone who might be reading this using the Network Solutions Shared Hosting platform, the ultimate fix was the mail server security was changed last November and required SSL/TLS now, even though they did not update their own documentation. Even their own technicians were not aware of this. The ultimate fix was upgrading PHPMailer to v6.6.0 and changing the port to 587 with TLS (on localhost)
  3. So PHP 7.4 threw too many errors on my site, so I dropped down to PHP 7.0 Took care of other issues, but now on the test PHPMail script getting this error - I think it has something to do with the headers not being recognized? Warning: mail(): SMTP server response: 553 5.0.0 <custserv@networksolutions.com... Unbalanced '<' 500 5.5.1 Command unrecognized: "Content-Type:text/html>" in \\WDP\DFS\30\1\9\6\3007726691\user\sites\xxxxxx.site\www\mailer.php on line 19 FAILED TO SEND! Any thoughts? Anyone?
  4. Also, what I would like to do now since I have upgraded the PHP to v7.4 is to try the newer PHPMailer v5.6 or v6.x - but I am running a Windows website on NetSol shared hosting platform, so I do not have backend or command-line access like I do on a linux system. When I look at the PHPMailer code, I do not see files from the documentation like the PHPautoloader.php for example, nor do I see a folder called vendor anywhere? IU am kind of stumped at this point and really need some help with this ASAP! Thanks...
  5. Well what I did was to upgrade php from v5.6 to v7.4 and now nothing works, except for better error messages. <html> <head> <title>PHP Form Mail Test Script</title> </head> <body> <h3>PHP Form Mail Test Script</h3> <?PHP error_reporting(E_ALL); $email = $_REQUEST['email']; $body = $_REQUEST['body']; $subject = $_REQUEST['subject']; $from = $_REQUEST['from']; $sendusing = $_REQUEST['sendusing']; $usehtml = $_REQUEST['usehtml']; if ($sendusing == "mail") { $header = "From: " . $from . "\n"; if ($usehtml == "yes") $header .= "Content-Type:text/html\n"; else $header .= "Content-Type:text/plain\n"; if (mail($email, $subject, $body, $header)) echo "SUCCESS... Email sent using Mail() function";else echo "FAILED TO SEND!"; echo "<br>" . date('l dS \of F Y h:i:s A') . "<br><br>"; } else if ($sendusing == "pear") { if (mail_this($email, $subject, $body, $from)) echo "SUCCESS... Email sent to using PEAR module";else echo "FAILED TO SEND!"; echo "<br>" . date('l dS \of F Y h:i:s A') . "<br><br>"; } else { $email = "Type Email Address"; $body = "FormMail Test"; $subject = "Test Email"; $from = "custserv@networksolutions.com"; $sendusing = "mail"; } ?> <table><form method="post" action="" name="sendmailtest"> <tr><td>TO:</td><td><input value="<?PHP echo $email;?>" name="email" size="35"></td></tr> <tr><td>FROM:</td><td><input value="<?PHP echo $from;?>" name="from" size="35"></td></tr> <tr><td>Subject:</td><td><input value="<?PHP echo $subject;?>" name="subject" size="35"></td></tr> <tr><td colspan=2>Body:<br><textarea cols="45" rows="3" name="body"><?PHP echo $body;?></textarea></tr> <tr><td>Send Using:</td> <td><input name='sendusing' value='mail' type='radio'<?PHP if ($sendusing == "mail") echo " checked='checked'";?>><b>Mail() Function</b><br> <input name='sendusing' value='pear' type='radio'<?PHP if ($sendusing == "pear") echo " checked='checked'";?>><b>PEAR Module</b></td></tr> <tr><td>Use HTML <input name="usehtml" value="yes" type="checkbox"<?PHP if ($usehtml == "yes") echo " checked='checked'";?>></td> <td align=right><input name="submit" value="Send Email" type="submit"></td></tr> </form></table> <?PHP function mail_this($email, $subject, $body, $from) { include('Mail.php'); $headers['From'] = $from; $headers['To'] = $email; $headers['Subject'] = $subject; if ($usehtml == "yes") $headers['Content-type'] = "text/html"; else $headers['Content-type'] = "text/plain"; $params["host"] = "localhost"; $params["port"] = "25"; $params["auth"] = false; $params["username"] = "username"; $params["password"] = "password"; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('smtp', $params); $mail_object->send($email, $headers, $body); if (PEAR::isError($mail_object)) { return false; } else { return true; } } ?> </body> <!-- ####################################################### ## ## ## NOTE: This is a Network Solutions Test Script. ## ## Any modifications to this script are not the ## ## responsibility of Network Solutions as this script## ## was generated only to ensure that your service is ## ## functioning properly. ## ## ## ####################################################### --> </html> Anyone else care to take a stab at this? Thanks for trying Ginerjm
  6. Anyone else care to take a stab at this? Thanks for trying Ginerjm
  7. Wow! We are just not on the same page here! The NS script is only a "test script" to verify that the PHP Mail() service is working. It send out a test email given the options you enter. If I "UNCHECK" the send using HTML box, the test script sends out a 'test' email properly and returns a message saying the email was sent successfully. If I "CHECK" the use HTML box, I still get the same message that the email was sent successfully, but no email is received. NetSol is obvioulsy blocking HTML emails from being sent somehow. I just can't figure out what they did on the backend to block HTML emails.
  8. Let's take the confusion out of this, shall we? For years and years and years, I have been using the PHPMail script on github. Been working sending html emails for 7-8 years now without issue. It stopped sending last November. Something changed at NetSol and I don't know what it might be? Some security issue most likely? Network Solutions placed a test php mail script in my root folder years ago for testing. It was created by NetSol for NetSol accounts for testing purposes. That test script has various small options like using PHP Mail() or PEAR module, and also has a checkbox to enable sending as HTML. This script verified that PHPMail() is working. With HTML unchecked, the test email sends just fine, and I receive a message stating that the email has been sent successfully. With the HTML box checked? Same response, message sent successfully, but no HTML email is ever received. Hope this clears things up? What have I done? Remember, nothing in the original PHPMail script (or website) has been changed at all regarding the PHPMail module. In the TEST script, I tried auth-true and entered the un & pw, and still no HTML mail is ever received. This is why I came here. Why is HTML mail suddenly being blocked?
  9. I was saying that I was using two scripts. It's the Network Solution test-email.php script that has the HTML checkbox option. The PHPMail script I use to send the team receipt page emails already has HTML enabled. The script returns a message that the email is being sent as usual, but nothing is received via email.
  10. Yes, the isHTML(true) is part of the PHPMail script and my test-mail script. Only difference is that the test script has a checkbox to enable sending of mail using HTML. That's when it stops sending.
  11. Added the error reporting, no errors - says the HTML email was sent, but it never arrives.
  12. Yes for the past two days I have contacted numerous people over at Network Solutions, and all they want to do is send me over to their paid support a.k.a. "MyTime Support". My code hasn't changed a bit, but I am sure Network Solutions did some upgrades they didn't tell me about.
  13. As you may already know, I do not have rights to edit the php.ini code as it is on a shared hosting site, but I will try your suggestion to add these two lines of code and see how the site reacts to it. I am using the pretty much standard PHPMail script. This script has served me well for the past 7-8 years or so and was working quite fine, actually. That is up until November of last year. The script still works, but only without HTML. Don't know if NetSol suddenly requires SMTP Auth now or what? Let me see what happens with your suggested changes...
  14. Hello all. Need assistance on something I think should be a simple fix . I am using a PHP Mailer app on my website hosting, which is Network Solutions, I know, shame on me. Very recently Network Solutions stopped sending my HTML-encoded emails for some unknown odd reason. Using their PHP mail testing application, those emails with non-HTML are working and sending just fine, but as soon as I try to send one with HTML(isHTML=True) encoding, it never sends, but I also don't get an error. The program tells me the email was sent successfully. Can anyone help me out here?
  15. Thank you ginerjm, I will give that a try. Much appreciated. I inherited this mess. Thanks for your help.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.