|  | sendmail problem with @ sign
|
Original Message | sendmail problem with @ sign Author M Ulm on 06-25-2002 at 16:19 (EST) | My server wants the sendmail_path to include my email address.
"/usr/lib/sendmail -t -f your_email_address";
but ushop.pl crashes when I put the @ sign in $sendmail_path=.
|
|
| Messages In This Discussion |
2. RE: more info Author Bill Weiner on 06-26-2002 at 04:41 (EST) | | In Perl, the @ sign is a special character .... so to actually insert it into a string, you have to do one of these two things:
1) Escape the @ sign by putting a backslash ( ) in front of it, such as:
"My email address is support@uburst.com"
or
2) Enclose the string in single quotes ( ' ) instead of double quotes, such as:
'My email address is support@uburst.com'
Now, if you want to include your email address with the sendmail -f option, then these are actually the recommended steps:
STEP 1: Make a backup of your current ushop-lib.pl script... just in case.
STEP 2: Open your current ushop-lib.pl file with any TEXT editor such as WordPad.
STEP 3: Do a search on the following line:
$mail_program = $sendmail_path . " -t";
STEP 4: Change that line to: $mail_program = $sendmail_path;
STEP 5: Save the script... as TEXT if your editor asks... and then transfer it back to your server.
STEP 6: Now you can add any flags that you want when specifying the $sendmail_path in configuration question #8 of the ushop.pl script, such as:
$sendmail_path = '/usr/lib/sendmail -t -f you@yourdomain.com';
|
|
3. email notification? Author M Ulm on 06-26-2002 at 09:33 (EST) | | I have tried both of the above suggestions. They didn't work. I got the message Sendmail = ERROR - Incorrect Sendmail Path
|
|
4. email notification? Author M Ulm on 06-26-2002 at 11:09 (EST) | | It has started to work now, but it still gives me an error in the diagnostics test. Sendmail = ERROR - Incorrect Sendmail Path
|
|
5. RE: email notification? Author Bill Weiner on 06-26-2002 at 20:54 (EST) | | The Diagnostic Test simply checks for the existance of a file located where ever you have your $sendmail_path set to. So the above modification will cause the "Incorrect Sendmail Path" error in the diagnostic report. Just ignore that error if the above modification is working for you.
|
|
|
|