Jump to content

Herg

Member
  • Posts

    8
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About Herg

Contact Methods

  • Website URL
    http://

Herg's Achievements

0

Reputation

  1. Hey guys. I solved the problem. I was just too silly to read the php syntax properly. The function mail must be fed with variables (in this order): to, subject, message, headers. Since only need an empty mail with correct headers, I had removed the 'message' string in the first place. So below you will find the correct code for the relevant part for sending a the mail as I wanted it to be. ... $headers .= 'From: '.$email."\n"; $headers .= 'MIME-Version: 1.0' ."\n"; $headers .= 'Content-Type: text/plain; charset=iso-8859-1' ."\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n"; if ($Ok && ($msg != '')) { mail($emailmanager, 'Unsubscribe', 'Abmeldung', $headers); Header("Location: $urlok"); } else { Header("Location: $urlko"); } ?>
  2. Hello guys, I have a small problem with a php mailer. I am sure you could help me and thank you in advance: Situtation: I am about to establish a newsletter. I manage the newsletter with sendblaster (www.sendblaster.com). To unsubscribe from the newsletter, people would have to send an e-mail with the subject "unsubscribe". The program reads that e-mail and removes them from the list of recipients. I want the users also to be able to unsibscribe via a webform. Therefore I modified the free registration php mailer to fullfill the needs of unsubscribing. All works fine, exept one thing: When I receive the e-mail, the displayed "sender" is always the webserver. But I want the sender to be the e-mail adress people have netered into the form. In the code listed below, that should be the varible $email <?php $emailmanager = 'NOTTODEDISCLOSED'; $urlok = 'unsubscribe-confirm-ok.htm'; $urlko = 'unsubscribe-confirm-ko.htm'; error_reporting(0); set_magic_quotes_runtime (0); if (get_magic_quotes_gpc()) { foreach($_POST as $k=>$v) $_POST[$k] = stripslashes($v); foreach($_COOKIE as $k=>$v) $_COOKIE[$k] = stripslashes($v); } $msg = $_COOKIE['sb'.$_GET['id']]; $email = trim($_GET['email']); $Ok = ereg("^([a-zA-Z0-9_\.-]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", $email); $headers = 'From: ' . $email . "\n"; $headers .= 'MIME-Version: 1.0' ."\n"; $headers .= 'Content-Type: text/plain; charset=iso-8859-1' ."\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n"; if ($Ok && ($msg != '')) { mail($email,'Unsubscribe',$headers); Header("Location: $urlok"); } else { Header("Location: $urlko"); } ?> In my opinion, the sender should be derived from the variable $email. But it does not work. However, when I enter $emailmanager instead, this variable will be shown as the sender. I really don't know why this is... Thank you so much for your help in advance! Herg
  3. Thank you for the hint. I'm going to try this next time. On the program files folder, I have no idea. I only remember that there are two of them ("Program Files" and "Program Files (x86)"). Hope you find a solution! Kind regards, Herg
  4. Thanks for this idea, it sounds good. I might try this later. For now, I have my Vista Business x64 system running, so I can start working Next tinkering with next re-install
  5. I finally did move my user folder (only mine, not the whole 'users' folder) via changing dozens of registry entries manually and it works. Anyone tried this with C:\ProgramData\ ?
  6. Because I don't know who to do exactly. Do you mean I shall manually edit the registry after installing Vista? Wouldn't that be much work plus the chance to forget any reg entry? Anyways, after Vista is installed, many programs are located in C:\ProgramData . I suggest some cannot be moved because the belong to process running. If you have any idea on an easy-to-use way, e.g. an existing reg-editing-script, please let me know. Thanks, Herg
  7. Hello all I am an university student form Germany. I found this place via the "forum" link on vlite.net because I was searching for answers to some vlite related questions. Seems to be a competent and nice place I am not an IT professional, but rather an "advanced user" who seeks some help with Windows especially. Thanks in forward for answering my questions and sorry that I might not be able to help you on your's... Kind regards Herg
  8. Hello Guys I, too, wondered how to set alternative directory paths. Specifically, I want the \ProgramData and the \Users folders to be on partitions different from C:\ The reason is simple: a ) I want to keep the Windows drive clean b ) I want to do an easy back-up with all relevant data of \user (documents as well as application settings), this becomes more difficult if I have the settings in C:\ but the Documents moved via the explorer In the tool nLite (for Win XP), there has been the possibility to set paths for "Documents and Settings", "Program Files", and "Temp". Via google I have seen that there might be some possibilities to move the folder using WAIK oder manual registry edits. But I would greatly appreciate a vLite-integrated solution, simply because it would be easier for me as non-it-pro and because it would cause less problems if from the beginning of the setup, Windows itself uses the alternate \ProgramData and \Users folders. Thanks for the work done so far with developing vLite and please, please try to integrate an option to change paths into the next version. Thanks a lot! Herg
×
×
  • Create New...