doctorbill
asked on
php variable
I am trying to set a variable to attach to a phpmailer form
This is the variable:
$imageattach = "images/Cards.jpg";
php mailer variable:
$mail->AddAttachment = $imageattach ;
This does not attach the image
Can I have the correct syntax please
This is the variable:
$imageattach = "images/Cards.jpg";
php mailer variable:
$mail->AddAttachment = $imageattach ;
This does not attach the image
Can I have the correct syntax please
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This now works:
$mail->AddAttachment($imag eattach, $imagename) ;
$mail->AddAttachment($imag
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all
ASKER