Community Discussions and Support
error in recived mail

http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1

but when i read received mail by Pegasus Mail this link is

http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1

 if you notice to above link, this link is incorrect. 13 character in the end of above line in not a html link.

why?Huh?

Hard to say what is wrong with the PHP process since I have not seen a MercuryS session log with what you have actually sent to MercuryS.  It looks like plain text but I suspect is is not.  I can paste this URL into into PMail as unwrapped plain text and send it without any problem on the receiving end at all.  I can do this as well with Outlook and Thunderbird.  I can also create a link in PMail with this string as send it as an HTML message and it comes through normally. There is something wrong with the string as sent via SMTP to the MercuryS server.

I suspect that one of those characters is not a valid ASCII character.  What happens when you select it all an use "Open selection as Hyperlink" in PMail?

 

<blockquote><p><b><a href="http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1" title="http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1">http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1 </a></b> </p><p>but when i read received mail by Pegasus Mail this link is </p><p><b><a href="http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95a" title="http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95a">http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95a</a></b>a6e8ab36847f1 </p><p> if you notice to above link, this link is incorrect. 13 character in the end of above line in not a html link.</p><p>why?<img src="http://community.pmail.com/emoticons/emotion-18.gif" alt="Huh?"> </p></blockquote><p>Hard to say what is wrong with the PHP process since I have not seen a MercuryS session log with what you have actually sent to MercuryS.  It looks like plain text but I suspect is is not.  I can paste this URL into into PMail as unwrapped plain text and send it without any problem on the receiving end at all.  I can do this as well with Outlook and Thunderbird.  I can also create a link in PMail with this string as send it as an HTML message and it comes through normally. There is something wrong with the string as sent via SMTP to the MercuryS server. </p><p>I suspect that one of those characters is not a valid ASCII character.  What happens when you select it all an use "Open selection as Hyperlink" in PMail? </p><p> </p>

hi friends.

I use of Pegasus Mail v4.41 and i configure Pegasus for use by local host. i write php code that generate hyperlink and send it  to user email by mercury.

by this code, mail have been send successfully but when i view sent mail by Pegasus the link is not correct and link have been send imperfect whereas

when i read mail by text editor link is correct.

 

please help me.  [:S]

<p>hi friends.</p><p>I use of Pegasus Mail v4.41 and i configure Pegasus for use by local host. i write php code that generate hyperlink and send it  to user email by mercury.</p><p>by this code, mail have been send successfully but when i view sent mail by Pegasus the link is not correct and link have been send imperfect <span dir="rtl">whereas </span></p><p>when i read mail by text editor link is correct. </p><p> </p><p>please help me.  [:S] </p>

I use of Pegasus Mail v4.41 and i configure Pegasus for use by local

host. i write php code that generate hyperlink and send it  to user

email by mercury.

by this code, mail have been send successfully

but when i view sent mail by Pegasus the link is not correct and link

have been send imperfect whereas

when i read mail by text editor link is correct.

If sending a plain test message by PHP you need to just enter the link, if sending HTML then the link has to be properly formatted.  For example, these two are both valid links 

http://www.pmail.com    http://www.pmail.com

but only the second one works when clicked since this is HTML and the code must be converted to a link.  

If this is not you problem then you have to provide more detail as to exactly what you are sending and what is wrong with the link.  A MercuryS session log showing what is being sent from the PHP program would be very useful.

 

<blockquote><p>I use of Pegasus Mail v4.41 and i configure Pegasus for use by local host. i write php code that generate hyperlink and send it  to user email by mercury.</p><p>by this code, mail have been send successfully but when i view sent mail by Pegasus the link is not correct and link have been send imperfect <span>whereas </span></p></blockquote><blockquote>when i read mail by text editor link is correct. </blockquote><p>If sending a plain test message by PHP you need to just enter the link, if sending HTML then the link has to be properly formatted.  For example, these two are both valid links </p><blockquote><p>http://www.pmail.com    <a href="http://www.pmail.com" title="http://www.pmail.com" mce_href="http://www.pmail.com">http://www.pmail.com</a></p></blockquote><p>but only the second one works when clicked since this is HTML and the code must be converted to a link.  </p><p>If this is not you problem then you have to provide more detail as to exactly what you are sending and what is wrong with the link.  A MercuryS session log showing what is being sent from the PHP program would be very useful.</p><p> </p>

very tanks for your response.

I think that i should explain more than my problem. 

my php code that generate hyperlink and send it is:

$e = mysql_real_escape_string ($useremail);
$a = md5(uniqid(rand(), true));
$body = "Thank you for registering at <whatever site>.
 To activate your account, please click on this link:\n\n";
$body .='http://127.0.0.1/frm/activate.php?x=' . urlencode($e) . "&y=$a";
mail('$useremail', 'Registration Confirmation', $body, 'From: admin@localhost');
echo '<h3>Thank you for registering!
A confirmation email has been sent to your address.
 Please click on the link in that email in order to activate your account.</h3>';
exit();

by this line of code

 $a = md5(uniqid(rand(), true));

generate a 32-character identifier that attached to user email and send to active.php page. the generated and sent link must be same to this link

http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1

but when i read recived mail by pegasus this link is

http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1

 if you notice to above link, this link is incorrect. 13 character in the end of above line in not a html link.

why?[:^)]

&lt;p&gt;very tanks for your response. &lt;/p&gt;&lt;p&gt;I think that i should explain more than my problem.&amp;nbsp;&lt;/p&gt;&lt;p&gt;my php code that generate hyperlink and send it is:&lt;/p&gt;&lt;p&gt;$e = mysql_real_escape_string ($useremail); &lt;b&gt;$a = md5(uniqid(rand(), true));&lt;/b&gt; $body = &quot;Thank you for registering at &amp;lt;whatever site&amp;gt;. &amp;nbsp;To activate your account, please click on this link:\n\n&quot;; &lt;b&gt;$body .=&#039;http://127.0.0.1/frm/activate.php?x=&#039; . urlencode($e) . &quot;&amp;amp;y=$a&quot;;&lt;/b&gt; mail(&#039;$useremail&#039;, &#039;Registration Confirmation&#039;, $body, &#039;From: admin@localhost&#039;); echo &#039;&amp;lt;h3&amp;gt;Thank you for registering! A confirmation email has been sent to your address. &amp;nbsp;Please click on the link in that email in order to activate your account.&amp;lt;/h3&amp;gt;&#039;; exit(); &lt;/p&gt;&lt;p&gt;by this line of code&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;$a = md5(uniqid(rand(), true));&lt;/b&gt;&lt;/p&gt;&lt;p&gt;generate a 32-character identifier that attached to user email and send to active.php page. the generated and sent link must be same to this link&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1&quot; title=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1&quot; mce_href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1&quot;&gt;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1 &lt;/a&gt;&lt;/b&gt; &lt;/p&gt;&lt;p&gt;but when i read recived mail by pegasus this link is &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&quot; title=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&quot; mce_href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&quot;&gt;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&lt;/a&gt;&lt;/b&gt;a6e8ab36847f1 &lt;/p&gt;&lt;p&gt;&amp;nbsp;if you notice to above link, this link is incorrect. 13 character in the end of above line in not a html link.&lt;/p&gt;&lt;p&gt;why?[:^)] &lt;/p&gt;

very tanks for your response.

I think that i should explain more than my problem. 

my php code that generate hyperlink and send it is:

$e = mysql_real_escape_string ($useremail);

$a = md5(uniqid(rand(), true));

$body = "Thank you for registering at <whatever site>.

 To activate your account, please click on this link:\n\n";

$body .='http://127.0.0.1/frm/activate.php?x=' . urlencode($e) . "&y=$a";

mail('$useremail', 'Registration Confirmation', $body, 'From: admin@localhost');

echo '<h3>Thank you for registering!

A confirmation email has been sent to your address.

 Please click on the link in that email in order to activate your account.</h3>';

exit();

by this line of code

 $a = md5(uniqid(rand(), true));

generate

a 32-character identifier that attached to user email and send to

active.php page. the generated and sent link must be same to this link

http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1

but when i read recived mail by pegasus this link is

http://127.0.0.1/frm/activate.php?x=omid%40localhost&y=adaa259aa513449d95aa6e8ab36847f1

 if you notice to above link, this link is incorrect. 13 character in the end of above line in not a html link.

why?[:^)]

 

 

&lt;p&gt;very tanks for your response. &lt;/p&gt;&lt;p&gt;I think that i should explain more than my problem.&amp;nbsp;&lt;/p&gt;&lt;p&gt;my php code that generate hyperlink and send it is:&lt;/p&gt;&lt;p&gt;$e = mysql_real_escape_string ($useremail); &lt;b&gt;$a = md5(uniqid(rand(), true));&lt;/b&gt; $body = &quot;Thank you for registering at &amp;lt;whatever site&amp;gt;. &amp;nbsp;To activate your account, please click on this link:\n\n&quot;; &lt;b&gt;$body .=&#039;http://127.0.0.1/frm/activate.php?x=&#039; . urlencode($e) . &quot;&amp;amp;y=$a&quot;;&lt;/b&gt; mail(&#039;$useremail&#039;, &#039;Registration Confirmation&#039;, $body, &#039;From: admin@localhost&#039;); echo &#039;&amp;lt;h3&amp;gt;Thank you for registering! A confirmation email has been sent to your address. &amp;nbsp;Please click on the link in that email in order to activate your account.&amp;lt;/h3&amp;gt;&#039;; exit(); &lt;/p&gt;&lt;p&gt;by this line of code&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;$a = md5(uniqid(rand(), true));&lt;/b&gt;&lt;/p&gt;&lt;p&gt;generate a 32-character identifier that attached to user email and send to active.php page. the generated and sent link must be same to this link&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1&quot; title=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1&quot; mce_href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1&quot;&gt;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95aa6e8ab36847f1 &lt;/a&gt;&lt;/b&gt; &lt;/p&gt;&lt;p&gt;but when i read recived mail by pegasus this link is &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;a href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&quot; title=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&quot; mce_href=&quot;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&quot;&gt;http://127.0.0.1/frm/activate.php?x=omid%40localhost&amp;amp;y=adaa259aa513449d95a&lt;/a&gt;&lt;/b&gt;a6e8ab36847f1 &lt;/p&gt;&lt;p&gt;&amp;nbsp;if you notice to above link, this link is incorrect. 13 character in the end of above line in not a html link.&lt;/p&gt;&lt;p&gt;why?[:^)] &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

hey i find simple method for solving problem. [:D]

I should right click on body message mail and select the reformat long line. 

tanks for your help. 

&lt;p&gt;hey i find simple method for solving problem. [:D]&lt;/p&gt;&lt;p&gt;I should right click on body message mail and select the reformat long line.&amp;nbsp;&lt;/p&gt;&lt;p&gt;tanks for your help.&amp;nbsp; &lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft