Find Jobs
Hire Freelancers

php send 2 inline images in email

$30-99 USD

Completed
Posted about 13 years ago

$30-99 USD

Paid on delivery
I am sending an email in html format. This is working fine, and I have simplified it for this example. I need to take this simple code and add functionality to send (2) inline image files (variable for filename is $clientlogo and $footerlogo). The image in the email when the email is opened. The file will already exist on the server. I know that some email programs block images, but it is necessary to send the image. // heres the code without inline image stuff $clientlogo = "/img/[login to view URL]"; $footerlogo = "/img/[login to view URL]"; $userfullname="test userfullname"; $prtitle="test pr title"; $prby="Dale Shad"; $useremail = "Daleshad@[login to view URL]"; $emailBody = "<center><img src=".$clientlogo."></center><br/>" "<div style=font-family:Arial;font-size:11pt;>"; $emailBody .="Contact: ".$userfullname."<br/>"; $emailBody .="Email: ".$useremail."<br/><br/><br/>"; $emailBody .= "<center><div style=font-size:16pt;font-weight:bold;>".$prtitle."</div>"; $emailBody .= "<b>".$prby."</b></center>"; $fromemail ="Daleshad@[login to view URL]"; $to = "daleshad@[login to view URL]"; $subject = $emailSubject; $body = $emailBody; $headers = "From: <".$fromemail.">\r\n"; $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; if (mail($to, $subject, $body, $headers)) {echo("Done");} else {echo("failed...");}
Project ID: 3143693

About the project

2 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$34 USD in 2 days
4.2 (53 reviews)
6.0
6.0
2 freelancers are bidding on average $34 USD for this job
User Avatar
See private message.
$34 USD in 2 days
4.3 (3 reviews)
1.8
1.8

About the client

Flag of UNITED STATES
United States
5.0
44
Member since Sep 20, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.