Jump to content

Random question about links in emails.


njdubois

Recommended Posts

Odd one for you!

 

I am sending emails out with some text and a link to : someurl.com/view.php?blah=blip

 

Been using the same code for a while, and outside of emails actually being sent (which ended up being godaddy, not my code!) the link has worked 100%. Until today!  I got forwarded an email back.  The link was pointing to an error page.  File not found!  Huh?

 

Looked at the link and it is now : http://www.someurl.com/someurl.com/view.php?blah=blip

 

I do send out CC to myself and other admins, our links were fine?  For good measure I'm going to complete the whole url, probably should have in the first place.  What is stopping this from becoming :

http://www.someurl.com/http://www.someurl.com/view?blah=blip

 

Is there something else I can be doing to stop that from ever happening again?

 

Thanks

 

Nick

 

Link to comment
https://forums.phpfreaks.com/topic/288338-random-question-about-links-in-emails/
Share on other sites

Sorry for the confusion!

 

On my site, I have an email function that sends an email alerting the user to a change.

 

The godaddy part was unrelated, ignore it.

 

From my code, I am sending the link:

someurl.com/view.php?file=123

 

but the user gets :

 

http://www.someurl.com/someurl.com/view.php?file=123

 

Is this happening because I don't have the full "http://www" ?  or is there something else causing this?

 

Thanks

Sure, 

<br />
This alert is to inform you that a Final Critique was posted to the call with these details:<br />
<a href="someurl.com/view.php?file='.$call_id.'">'.$brief_call_details.'(Click here to see this call)</a>
<br /><br />

Thanks for looking!

 

Nick

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.