Welcome Guest, please login or register.
Username:
Password:

News: Welcome to Hostpapa Forums!
Pages: [1]   Go Down
Topic Tools  
Read
February 07, 2012, 06:58:17 AM
propete10
Newbie
*
Posts: 2



Hello folks.

I've been having real difficulty for a week now trying to get Website registration working properly.

Locally (using XAMPP connected to my work domain and mail exchange) I have no problems registering an account to my website and sending emails for registration. Crucially I can send to both hotmail and my work email address and both addresses receive these emails perfectly.

Unfortunately, when I attempt this online registration using my website, all registration emails to my work email address are blocked (whereas hotmail accepts them no problem)

I already have a ticket with the Hostpapa support team but it's taking an awfully long time for responses.

The rejection email is :



This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  plight@mywork.com
    SMTP error from remote mail server after end of data:
    host mta1.mywork.com [91.121.43.66]: 550 Local Sender Policy Framework rule 3 violation

------ This is a copy of the message, including all the headers. ------

Return-path: <MyUser@hp95.hostpapa.com>
Received: from MyUser by hp95.hostpapa.com with local (Exim 4.69)
        (envelope-from <MyUser@hp95.hostpapa.com>)
        id 1RuiVy-0007LQ-Mh
        for plight@mywork.com; Tue, 07 Feb 2012 10:43:10 +0000
To: plight@mywork.com
Subject: My Website Registration
From: webmaster@MyWebsite.com
Reply-To: webmaster@MyWebsite.com
Content-Type: text/html; ch#%$!t=ISO-8859-1
X-Mailer: PHP/5.3.8
Message-Id: <E1RuiVy-0007LQ-Mh@hp95.hostpapa.com>
Date: Tue, 07 Feb 2012 10:43:10 +0000

<p>Hi plight,</p><p>Thank you for registering with MyWebsite.com. The details you submitted were:</p><table width="100%">
                                        <tr>
                                                <td align="left" valign="top" style="width:50%">
                                                        <p>Forename: plight</p><p>Surname: plight</p><p>Date of birth: </p><p>Gender: Male</p><p>Biography: </p><p>Password: p</p>
                                                </td>
                                                <td align="left" valign="top" style="width:50%">
                                                        <p>House: </p><p>Address 1: </p><p>Address 2: </p><p>Town: </p><p>County: </p><p>Postcode: </p><p>Telephone: </p><p>E-mail: plight@mywork.com</p>
                                                </td>
                                        </tr>
                                </table><p>Please check back for regular updates and continue your support for us by visiting the site and donating if you can.</p>
                                <p>Kind Regards,</p>
                                <p>Pete and Andy</p>


The code used to generate this email is:

Code:
  // success so display details and send email  
  $subject = "MyWebsite Registration";
  $body1 = "<p>Hi ".safetext($uforn).",</p><p>Thank you for registering with MyWebsite.com. The details you submitted were:</p>";
  $body2 = "<table width=\"100%\">
<tr>
<td align=\"left\" valign=\"top\" style=\"width:50%\">
<p>Forename: ".safetext($uforn)."</p><p>Surname: ".safetext($usurn)."</p><p>Date of birth: ".safetext($udob)."</p><p>Gender: ".safetext($usex)."</p><p>Biography: ".safetext($ubio)."</p>
</td>
<td align=\"left\" valign=\"top\" style=\"width:50%\">
<p>House: ".safetext($uhous)."</p><p>Address 1: ".safetext($uaddr1)."</p><p>Address 2: ".safetext($uaddr2)."</p><p>Town: ".safetext($utown)."</p><p>County: ".safetext($ucoun)."</p><p>Postcode: ".safetext($upost)."</p><p>Telephone: ".safetext($utele)."</p><p>E-mail: ".safetext($uemail)."</p>
</td>
</tr>
</table>";
  $body3 = "<p>Before you log in you must complete registration by clicking the following link:<br /><br /><a href=\"".CurrPageURL()."?uactkey=".$uactkey."\" class=\"ulink\" onclick=\"window.open(this.href); return false;\">".CurrPageURL()."?uactkey=".$uactkey."</a><br /><br />If this is an error, ignore this email and you will be removed from our mailing list automatically.</p>
<p>Regards,</p>
<p>MyWebsite.com Team</p>";
  $body = str_replace("\n.", "\n..", $body1.$body2.$body3);
 
  addtag('h2','Registration complete');
  addtag('p','Your details:');
  addtag('',$body2);
 
  $headers = 'From: webmaster@MyWebsite.com' . "\r\n" .
'Reply-To: webmaster@MyWebsite.com' . "\r\n" .
'Content-Type: text/html; ch#%$!t=ISO-8859-1'."\r\n".
'X-Mailer: PHP/' . phpversion();
  if (mail($uemail, $subject, $body, $headers)) {
      addtag('p',"An email has been sent to ".$_POST[email]." which requires activation. Please follow the instructions in this message to complete the activation of your account. If you don't receive an email after some time, check your Spam or Junk mail folders.");
  } else {
      //echo("<h2>The message below has failed to be sent</h2>".$subject.$body);
  echo "<p>The message has failed to be sent. Please
<a href=\"mailto:webmaster@MyWebsite.com?
Subject=Registration%20email%20send%20error!\"
class=\"ulink\">contact us</a> for assistance</p>";
  }

Thank you for your time to read this post and help as it is very much appreciated!

Let me know if you need any more information

Regards,
Pete
Logged
 

Read
February 08, 2012, 04:51:06 AM
propete10
Newbie
*
Posts: 2



Ok so I managed to resolve the SPF issue I had by modifying the Reply-To email header to become an address at my company. This managed to get around the SPF issue but now I have a new one as shown below.

To get around this new problem, my I.T department has advised I do the following:
    "you probably need to look at sending domin ip and your email address- theres  no SPF record for hp95.hostpapa.com"

Can anyone assist me in doing this please?

Regards,
Pete

--=_4ssm8fwl9cpe
Content-Type: text/plain;
 ch#%$!t=ISO-8859-1;
 DelSp="Yes";
 format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit



--=_4ssm8fwl9cpe
Content-Type: message/rfc822;
 name="Forwarded Message: Mail delivery failed: returning message to sender"

Return-path: <>
Envelope-to: Website@hp95.hostpapa.com
Delivery-date: Tue, 07 Feb 2012 12:55:40 +0000
Received: from mailnull by hp95.hostpapa.com with local (Exim 4.69)
        id 1RukaC-00083z-B0
        for Website@hp95.hostpapa.com; Tue, 07 Feb 2012 12:55:40 +0000
X-Failed-Recipients: plight@Company.com
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@hp95.hostpapa.com>
To: Website@hp95.hostpapa.com
Subject: Mail delivery failed: returning message to sender
Message-Id: <E1RukaC-00083z-B0@hp95.hostpapa.com>
Date: Tue, 07 Feb 2012 12:55:40 +0000

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  plight@company.com
    SMTP error from remote mail server after end of data:
    host mta1.company.com [91.121.43.66]: 550 Local Sender Policy Framework rule 3 violation

------ This is a copy of the message, including all the headers. ------

Return-path: <Website@hp95.hostpapa.com>
Received: from Websiteby hp95.hostpapa.com with local (Exim 4.69)
        (envelope-from <Website@hp95.hostpapa.com>)
        id 1RukaB-00083g-LT
        for plight@company.com; Tue, 07 Feb 2012 12:55:39 +0000
To: plight@company.com
Subject: Website Registration
From: webmaster@Website.com
Reply-To: plight@local.company.com
X-Mailer: PHP/5.3.8
Message-Id: <E1RukaB-00083g-LT@hp95.hostpapa.com>
Date: Tue, 07 Feb 2012 12:55:39 +0000

Hi plight, Thank you for registering with Website.com. The details you submitted were:Forename: plight/r/r

Surname: plightPlease check back for regular updates and continue your support for us by visiting the site and donating if you can.

--=_4ssm8fwl9cpe--
Logged
 

Read
March 26, 2012, 11:32:36 AM
Electric Ant
Newbie
*
Posts: 2



Hi Propete10
I've had a similar problem. I have two add-on domains and sometimes if I sent email using my hostpapa smtp to send the mail but using these domain names in the email address they get bounced back. I was told I need an SPF record which would allow me to send mail from a different domain on another domains behalf without it getting marked as SPAM.

I think I have solved my problem. First I went to here
 
http://www.mxtoolbox.com/spf.aspx
 to see if my domain SPF was ok.

I then logged into my HostPapa control panel, and went to Mail/ email authentication. I added my two add on domains in the section where it says INCLUDE list, then clicked on Enable SPF.

Hope this helps.
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net