email to client & admin

peterthegrate

Avatar: peterthegrate

2009-02-21 13:33

My web hosting service requires a 5th (-f) parameter to be specified (domain verification) to allow e-mail scripts to be used & gives the following example:
<?php
mail("Youremail@yourdomain.co.uk", "Feedback Form results", $_REQUEST[message], "From: $_REQUEST[email]", "-f".$_REQUEST[email]);
?>
I have tried adding this to the @mail line (line 214) of common.php & similarly to the sendEmail line of orders.php, but still cannot send e-mails from quick cart. E-mails are successfully sent from other areas of my website, so I presume I am not adding this extra parameter correctly to the quick.cart code. Can anyone help? Thanks in advance - Peter.

» Quick.Cart v3.x

peterthegrate

beholder

Avatar: beholder

2009-02-21 13:49

try changing this line of core/common.php:
if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sSender ) ){

to:
if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sSender, '-f'.$sSender ) ){

peterthegrate

Avatar: peterthegrate

2009-02-21 14:23

Thanks for that - obvious really, well obvious with hindsight. E-mails to admin are now working (but not yet to client, but that should now be easily fixed in the same way).

Thanks again, Peter.

peterthegrate

Back to top
about us | contact