grilldor Posted November 11, 2006 Share Posted November 11, 2006 Im trying to send a mail with HTML script in it.. Im having a problem with sending URL adresses :[code]<?php$to = '[email protected]';$subject = 'Registration';$message = '<b>Thank you for registering to Cruxx Online!</b> You are one step away from creating your account !</b><br />The remaining step is to validate that this email exists and that it is tied to an account name.<br /><br />Please copy the following validationID into the form located at : <a href="http://crux.projetlogik.com">http://crux.projetlogik.com </a><br />VALIDATION ID : G2J4J6KL2K44<br /><br />Thank you ! See you soon in the galaxy!';$headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-Type: text/html; charset=iso-8859-1' . "\r\n";$headers .= 'From: Cruxx Online <[email protected]>' . "\r\n";mail($to, $subject, $message, $headers);?> [/code] email will not send when the // are added to : http://crux.projetlogik.com... whats up? Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/ Share on other sites More sharing options...
Orio Posted November 11, 2006 Share Posted November 11, 2006 Try escaping the slashes so they will be "back-slash + slash". (\/ instead of /).Orio. Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123218 Share on other sites More sharing options...
grilldor Posted November 11, 2006 Author Share Posted November 11, 2006 ive tried escaping but it then returns http:/\/\!! Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123244 Share on other sites More sharing options...
grilldor Posted November 12, 2006 Author Share Posted November 12, 2006 help? =) Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123582 Share on other sites More sharing options...
Adika Posted November 12, 2006 Share Posted November 12, 2006 [code]$headers = 'MIME-Version: 1.0\r\n';$headers .= 'Content-Type: text/html; charset=iso-8859-1\r\n'.'Content-Transfer-Encoding: base64\r\n\r\n';$headers .= 'From: Cruxx Online <[email protected]>\r\n';[/code]I replaced the double slashes with single, deleted the double slashes, and added some new line.Just replace your script with this script and it should work fine. Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123633 Share on other sites More sharing options...
grilldor Posted November 13, 2006 Author Share Posted November 13, 2006 hey thanks for the reply! But your script has a lil prob... the FROM header doesnt work with it :( the email is sent by "Nobody" whats uP? Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123806 Share on other sites More sharing options...
grilldor Posted November 13, 2006 Author Share Posted November 13, 2006 oh and the base64 encoding sends weird emails : N§“*.~Šëz¬µêâžh»±ÄéåŠw˜¢æ«z‰Þ²×©k²~º&r·š¶)àÊ‹«iÇ(º{S…êÞ™¨§Šx,µêb²Ú/jXj×…«m†+™¨¥{¬¶Æ§vØZ¶+b²ØžvÚ§¢éí©ž>Wš±ç(§+ayú%–Œ"žÚ–'Z¶*' 8§¶‹ayú+šZj×jØm¶Ÿÿr»±¦º#zÙh‚)¢e@,€ÀLƒ ?Õ÷œož{Î7ëuï¾·ßÞßy›iå@0M·Û}wÛ]õÙ¦“…©äÊ‹’y쨺Ê(ž)í…蕬r Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123807 Share on other sites More sharing options...
Adika Posted November 13, 2006 Share Posted November 13, 2006 Try this:[code]$headers .= 'From: Cruxx Online <[email protected]>'\r\n';[/code]If that doesn't help, use your version of From.Is the message sending you HTML now? Link to comment https://forums.phpfreaks.com/topic/26944-mail-html/#findComment-123822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.