hello, i have been trying to get a code where the person that want to send an image or images do not exceed 4mb. please help!
please help, i have been looking for more than 12 hours
// Instantiate your new class $mail = new MyMailer;
// Now you only need to add the necessary stuff $mail->AddAddress("josh@site.com", "Josh Adams"); $mail->Subject = "Here is the subject"; $mail->Body = "This is the message body"; ########## This is were you put the link to the attachment ############# $mail->AddAttachment("c:/temp/11-10-00.zip", "new_name.zip"); // optional name ########################################################
if(!$mail->Send()) { echo "There was an error sending the message"; exit; }