Jump to content

Random question about links in emails.


Go to solution Solved by 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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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