www.uburst.com www.uburst.com

"sendmail problem with @ sign"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"sendmail problem with @ sign"
Posted by M Ulm on Jun-25-02 at 04:19 PM (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=.

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

more info, M Ulm, Jun-25-02, (1)
RE: more info, Bill Weiner, Jun-26-02, (2)
email notification?, M Ulm, Jun-26-02, (3)
email notification?, M Ulm, Jun-26-02, (4)
RE: email notification?, Bill Weiner, Jun-26-02, (5)
email notification?, M Ulm, Jun-27-02, (6)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "more info"
Posted by M Ulm on Jun-25-02 at 06:00 PM (EST)
I think I have the same problem as the person near the end of the post listed below.

http://www.uburst.com/dcforum/ushop_place_order/130.html

When I use "/usr/lib/sendmail" it said it worked but I didn't get the mail.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: more info"
Posted by Bill Weiner on Jun-26-02 at 04:41 AM (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';

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "email notification?"
Posted by M Ulm on Jun-26-02 at 09:33 AM (EST)
I have tried both of the above suggestions. They didn't work. I got the message
Sendmail = ERROR - Incorrect Sendmail Path
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "email notification?"
Posted by M Ulm on Jun-26-02 at 11:09 AM (EST)
It has started to work now, but it still gives me an error in the diagnostics test.
Sendmail = ERROR - Incorrect Sendmail Path
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "RE: email notification?"
Posted by Bill Weiner on Jun-26-02 at 08:54 PM (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.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
6 . "email notification?"
Posted by M Ulm on Jun-27-02 at 07:36 AM (EST)
Thanks for your help.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.