this.user
Members-
Posts
52 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
this.user's Achievements
Member (2/5)
0
Reputation
-
the script works fine, i must of edit it incorrectly $from = 'help@me.com'; $body = "<html>\n"; $body .= "<body style=\"font-family:Verdana, Verdana, Geneva, sans-serif;\">\n"; $body .= $message; $body .= "</body>\n"; $body .= "</html>\n"; $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers = "From: $from"; $headers .= "\nMIME-Version: 1.0\n" ."Content-Type: multipart/alternative;\n" ." boundary=\"{$mime_boundary}\""; $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/html; \n" . "Content-Transfer-Encoding: 7bit\n\n" . $body . "\n\n" . "--{$mime_boundary}\n" . 'Content-Type: text/plain; charset="utf-8"' . "\n" . 'Content-Transfer-Encoding: 7bit' . "\n\n" . 'This is a HTML email and your email client software does not support HTML email!' . "\n\n" . "--{$mime_boundary}--\n"; mail($to, $subject, $message, $headers, '-f'.$from); Here is the email source and here is the MSQ data MQS Score: 78 of 100 SPAM: BODY: Message only has text/html MIME parts (-17) SPAM: URI: URI hostname has long non-vowel sequence (-5)
-
$headers = "From: $from"; $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" ."Content-Type: multipart/alternative;\n" ." boundary=\"{$mime_boundary}\""; $message = "This is a multi-part message in MIME format.\n\n" . . "--{$mime_boundary}\n" . "Content-Type: text/html; \n" . "Content-Transfer-Encoding: 7bit\n\n" . $body . "\n\n" . "--{$mime_boundary}\n" . 'Content-Type: text/plain; charset="utf-8"' . "\n" . 'Content-Transfer-Encoding: 7bit' . "\n\n" . 'This is a HTML email and your email client software does not support HTML email!' . "\n\n" . "--{$mime_boundary}--\n";
-
I am trying to eliminate this issue but I have had no luck here is my current code: $from = 'help@my.com'; $body = "<html>\n"; $body .= "<body style=\"font-family:Verdana, Verdana, Geneva, sans-serif;\">\n"; $body .= $message; $body .= "</body>\n"; $body .= "</html>\n"; $boundary = uniqid('np'); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers = "From: $from"; $headers .= "\nMIME-Version: 1.0\n" ."Content-Type: multipart/alternative;\n" ." boundary=\"{$mime_boundary}\""; $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/html; \n" . "Content-Transfer-Encoding: 7bit\n\n" . $body . "\n\n" . "--{$mime_boundary}--\n"; mail($to, $subject, $message, $headers, '-f'.$from); I have tried adding the plain text part but nothing has worked, could someone else look at this and show me what I need to add so that it has the text/plain MIME part as well?
-
Here there guys, I am having an issue with sending out emails, when I send them out, they are either blocked or junked by different mail servers. Could someone please explain to me why this is happening, and look at my code and let me know what i can do to change it. HEre is the code: $boundary = uniqid('np'); $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: Support <help@mysite.com>\r\n"; $headers .= "Subject: $subject\r\n"; $headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n"; $zmessage = "This is a MIME encoded message."; $zmessage .= "\r\n\r\n--" . $boundary . "\r\n"; $zmessage .= "Content-type: text/html;charset=utf-8\r\n\r\n"; $message = $zmessage . $message $message .= "\r\n\r\n--" . $boundary . "--"; mail($to, $subject, $message, $headers); here is what it looks like when it arrives :
-
I have three tables team id player team_id supply team_id player table has the following data: Mike, tom, john, joe supply table has the following data: bat, glove, hat when i run this query, i get repeat values back, how do i make this unique, so each value from each table appears once. 'SELECT DISTINCT team.*, player.name, supply.name FROM team LEFT JOIN player ON(player.team_id=team.id) LEFT JOIN supply ON(supply.team_id=team.id) WHERE team.id="43"'; i would like this result instead
-
[!!911!!] Most bizarre issue I have ever encountered with php....
this.user replied to this.user's topic in PHP Coding Help
The the ajax I posted is stripped down, I am returning a json value, in which I have dumped the session variable. yes it is showing, '9,9' no matter how many times I call the ajax. -
I have three files: the /index.php page is the landing page, which includes the file /include/index.php once the page loads, I make ajax calls to /include/ajax.php here is what the files basically looks like: index.php <html><body><? include('include/index.php'); ?></body></html> include/index.php <? session_start() unset($_SESSION['team']); $_SESSION['team'] = '9'; include/ajax.php <? session_start() $_SESSION['team'] = $_SESSION['team'] . ',9'; Pretty simple right? However, here is what is happening, every time I make a call ajax call to /include/ajax.php, the code in /include/index.php also gets executed and team is reset to 9! I am using jquery to make the ajax call: $("input:radio").live('click', function() { $.ajax( { url:'include/ajax.php', success: function (data) { alert('done'); } }); }); and when I view the value after each ajax call, it is set to just 9. This is not any other issue, other than the code in include/index.php being executed each time the ajax function is called. Why in the world is the code in include/index.php being execute?! Under what circumstance would such a thing occur?
-
Just use: '/[a-zA-Z\'.-]{2,20}$/' I just noticed you are using a dash ('-') is should be a comma, as far as I know
-
What I mean, is as soon at the user hits one.php, he/she is redirected to two.php. I am not looking to use the Header function, I need to redirect and post to two.php.
-
lets say I have two pages: one.php two.php Now with that in mind, is there a way for page one.phpto automatically post values to page two.php viathe $_POST variable?
-
I am passing this value: the the following code is not handling it correctly: $data = mysql_real_escape_string(strip_tags(htmlspecialchars($data))); here is what it looks like when the server gets it: and here is after the code executes: Notice if I have it bugs out.