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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
This now works:
$mail->AddAttachment($imag eattach, $imagename) ;
$mail->AddAttachment($imag
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks all
ASKER