To sort out a php script so it send emails via stmp
- or -
Post a project like this4166
$$
- Posted:
- Proposals: 2
- Remote
- #187231
- Completed
Description
Experience Level: Intermediate
To correct a php script so it sends mail from stmp
I'm hosting with Fasthosts.
This is what I'm using at the moment but only 30% or so of my emails are being sent by the fasthost server
//create file to write svg to "-febay@dfcprint.co.uk" );
$f = fopen($imgurl, 'x');
fwrite($f, $file_string);
fclose($f);
//email to alert to new label design
//$to = 'ebay@dfcprint.co.uk';
$to = 'ebay@dfcprint.co.uk';
$subject = 'Web to Print - New Label Design';
//$headers = "From: DONOTREPLY \r\nReply-To: DO NOT REPLY";
ini_set("sendmail_from", "ebay@dfcprint.co.uk");
//$headers .= 'From: Web To Print ' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//$headers .= "\r\nContent-type: text/plain; charset=iso-8859-1".'\r\n';
//$message="NEW LABEL DESIGN SUBMITTED\n\nReference No: $ref_num \n\nA new label design has been submitted, you can download it
$message="Web To PrintNEW LABEL DESIGN SUBMITTED BY ".$_POST['ebayusername']."Reference No: $ref_num A new label design has been submitted, you can download it from:http://dfcprint.co.uk/webtoprint_testing/$imgurlThanks";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers, ‘-f’.$email_from);
//SEND DATA FOR SECOND FLASH FILE TO RETREIVE $ref_num
echo "&sent=".$ref_num;
//echo "&sent=".$mail_sent;
I'm hosting with Fasthosts.
This is what I'm using at the moment but only 30% or so of my emails are being sent by the fasthost server
//create file to write svg to "-febay@dfcprint.co.uk" );
$f = fopen($imgurl, 'x');
fwrite($f, $file_string);
fclose($f);
//email to alert to new label design
//$to = 'ebay@dfcprint.co.uk';
$to = 'ebay@dfcprint.co.uk';
$subject = 'Web to Print - New Label Design';
//$headers = "From: DONOTREPLY \r\nReply-To: DO NOT REPLY";
ini_set("sendmail_from", "ebay@dfcprint.co.uk");
//$headers .= 'From: Web To Print ' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//$headers .= "\r\nContent-type: text/plain; charset=iso-8859-1".'\r\n';
//$message="NEW LABEL DESIGN SUBMITTED\n\nReference No: $ref_num \n\nA new label design has been submitted, you can download it
$message="Web To PrintNEW LABEL DESIGN SUBMITTED BY ".$_POST['ebayusername']."Reference No: $ref_num A new label design has been submitted, you can download it from:http://dfcprint.co.uk/webtoprint_testing/$imgurlThanks";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers, ‘-f’.$email_from);
//SEND DATA FOR SECOND FLASH FILE TO RETREIVE $ref_num
echo "&sent=".$ref_num;
//echo "&sent=".$mail_sent;
Brian S.
0% (0)Projects Completed
1
Freelancers worked with
1
Projects awarded
67%
Last project
14 Nov 2012
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies