Add authorization code to email header

flegmatik

No avatar

2007-09-10 20:15

Hello,
how can I add this code to email header? It´s authorization code - this is example - mail("cilovyemail@neco.cz", "subjekt", "Zprava cela","auth_usrname: 112ad1212\r\n auth_password: aabbccddee\r\n");
Answer from my hosting support is -
@mail( $sTo, $sTitle, ereg_replace( '\|n\|', "\n", $sEmailContent )
$headers .= "auth_usrname: 2d4bfe13f0abb335\r\n auth_password: 18b1f3dfbb858f33\r\n";
$headers .= " \r\n";
$headers .= 'FROM: '.$config['email']."\r\nContent-Type: text/plain; charset=".$config['charset']."\r\n" );
bat this do not work.
Sorry for my very bad english.

» Quick.Cart v2.x

QC2.2

flegmatik

No avatar

2007-09-10 20:17

I use plugin sendOrderToClient v0.4 and QC 2.2.

QC2.2

merci

No avatar

2007-09-11 09:19

flegmatik - you should first set variable $headers and then your code should look like:

@mail$sTo$sTitleereg_replace'\|n\|'"\n"$sEmailContent ), "FROM: ".$config['email']."\r\nContent-Type: text/plain; charset=".$config['charset']."\r\nauth_usrname: 2d4bfe13f0abb335\r\n auth_password: 18b1f3dfbb858f33\r\n" );

Back to top
about us | contact