Forum Moderators: coopster

Message Too Old, No Replies

Mail() function not working properly

It simply wont send if there's a URL in the message

         

panic

12:31 am on Sep 9, 2003 (gmt 0)

10+ Year Member



After rigorous testing, I've come to the conclusion that on one of my servers, you flat out wont send an email using the mail() function that has a URL in the body.

After a few Google queries, I saw one other person that had the same problem. Their solution was to urlencode, then urldecode the URL.

I then rewrote my code accordingly.

What's weird is that my code works on one of my servers, but not the other. They're both running 4.3.2, and they both successfully send plaintext emails.

Any ideas as to what I should do now?

-panic

jatar_k

3:38 pm on Sep 9, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hm, mail is a serious pain all of the time.

Have you compared the server settings to see if there are any differences?

panic

4:53 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



Unfortunately, I don't have access to either of the servers' config files. :(

Do you think it might have to do with the version of SendMail on the servers?

-panic

vincevincevince

5:29 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i've no idea about this - but just for a stab, try htmlentities() around the url?

panic

10:41 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



I tried htmlentities function on my URL, but unfortunately, it didn't work. :(

-panic