Jump to content

adamh91

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

adamh91's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I tried the original headers but changing the vxmailer parts, still no luck =/ Then i tried: $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= "Content-Transfer-encoding: 8bit\r\n"; $headers.= "From: ".$from."\r\n"; $headers.= "Reply-to: ".$from."\r\n"; Still filtering them 0.o
  2. Hey, I've made a mailing list and im having trouble with mail() It sends the mail each person in the database, but it keeps going in the spam folder =/ i tried using lots of different headers: $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "Organization: vxMailer \r\n"; $headers .= "Content-Transfer-encoding: 8bit\r\n"; $headers .= "Bcc: ".$to."\r\n"; $headers .= "From: vxMailer <".$from.">\r\n"; $headers .= "Reply-To: vxMailer <".$from.">\r\n"; $headers .= "Message-ID: <".md5(uniqid(time()))."@{$_SERVER['SERVER_NAME']}>\r\n"; $headers .= "Return-Path: <".$from.">\r\n"; $headers .= "X-Priority: 1\r\n"; $headers .= "X-MSmail-Priority: Normal\r\n"; $headers .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\r\n"; //hotmail and others dont like PHP mailer. $headers .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441\r\n"; $headers .= "X-Sender: ".$from."m\r\n"; $headers .= "X-AntiAbuse: This is a solicited email for - vxMailer mailing list.\r\n"; $headers .= "X-AntiAbuse: Servername - {$_SERVER['SERVER_NAME']}\r\n"; $headers .= "X-AntiAbuse: User - ".$from."\r\n"; Those headers dont send at all, ive tried all combinations i found on google and it just wont work. any help? thanks.
  3. can you explain sorry? thanks for the quick reply
  4. Hey, Im trying to insert some values into my table, im getting this error and i cant see why =/ Error, insert query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'use,to,from,message,subject,date) VALUES ('1','ALL','1','1','1','March 2, 2007, ' This code to insert: $subject = $_POST['subject']; $from = $_POST['from']; $message = $_POST['message']; $date = date("F j, Y, g:i a"); $conn = mysql_connect($db_host, $db_user, $db_pass) or die ('Error: '. mysql_error()); mysql_select_db($db_name); $query = "INSERT INTO history (use,to,from,message,subject,date) VALUES ('1','ALL','$from','$message','$subject','$date')"; mysql_query($query) or die('Error, insert query failed: ' . mysql_error());
  5. Yeah i was refering to that sorry. thanks for everyones help but ive decided to store it differently ^^
  6. Sorry for the 'bump'. but i need help =[
  7. Sorry, I want to edit variables in config.php, would i write a new config.php?
  8. Thanks guys It was a silly mistake in config.php, the $db_name has a spelling mistake
  9. Hey, I'm getting this error in my code: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/r3v/public_html/scripts/includes/emails.php on line 40 I was wondering if its an error in my code, i cannot see any, or i have chmodded it incorrectly. <? include 'config.php'; $i = 1; //---Display Emails---\\ $conn = mysql_connect($db_host, $db_user, $db_pass) or die ('Error: '. mysql_error()); mysql_select_db($db_name); $sql = "SELECT email FROM emails"; $res = mysql_query($sql); while($row = mysql_fetch_array($res)){ if ($i == 1) { echo '<tr valign="top">'; echo '<td width="100%" bgcolor="#0098CC" class="alt1">'.$row['email'].'</td>'; echo '</tr>'; $i = 2; } else { echo '<tr valign="top">'; echo '<td width="100%" bgcolor="#00A6DA" class="alt1">'.$row['email'].'</td>'; echo '</tr>'; $i = 1; } } mysql_free_result($res); mysql_close($conn); //---End Display---\\ ?>
  10. Hey, I was wondering if its possible to edit the variables in another file. e.g. config.php $db_user = "admin"; $db_pass = 'password'; $db_host = 'localhost'; $db_name = 'mail'; somename.php <? include 'config.php'; //Some code to edit the variable stored in config.php ?> Sorry for the bad explanation Is there a way to do this? =s thanks
  11. hey, i was wondering how i can get the value stored in a variable to show in the textfield, im using this at the moment, but it doesnt seem to work =/ at the top of my code: <? include 'config.php'; ?> the part i need help with: <input name="textfield" type="text" size="50" value=<?php echo $db_user ?> /> $db_user is a variable stored in config.php thanks
  12. PHP version  4.4.1  :-\ any other ideas?
  13. Thanks, i echoed the variable to test and it shows it without the string i want to replace, which is good. but how can i write the new data to the file, i tried fwrite and file_put_contents, neither of them work, file_put says function unknown :S any help?, thanks :D
  14. [quote author=Barand link=topic=112700.msg457594#msg457594 date=1161805113] Now there's a text-book example of how to drive away good help. [/quote] Sorry, Was just a joke  :(
×
×
  • 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.