Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-08-2005, 12:14 PM PHP sendmail help
croix's Avatar
Skilled Talker

Posts: 87
Name: Colin Roy
Location: Dallas, TX
Trades: 0
OK, first, i was getting this error when I hit submit to send a trasncript to email.

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in d:\inetpub\sliquid\wwwRoot\livehelp\sendtranscript .php on line 46
Chat transcript has been sent

Here is the original code. Line 46 is separated from the rest.

Code:
 
<?php
require_once("visitor_common.php");
  $query = "SELECT * FROM livehelp_transcripts WHERE sessionid='$transsessionid'";
$transarray = $mydatabase->query($query);
if($transarray->numrows()==0){
   print $lang['txt129'];
} else {	  
  $transarray = $transarray->fetchRow(DB_FETCHMODE_ASSOC);
  $comments = $transarray['transcript'];
  $department = $transarray['department'];
  $query = "SELECT * FROM livehelp_departments WHERE recno='$department' ";
  $data_d = $mydatabase->query($query);  
  $department_a = $data_d->fetchRow(DB_FETCHMODE_ASSOC);
  $messageemail = $department_a['messageemail'];
  if(empty($messageemail)){ $messageemail = "noone@nowhere.com"; } 
  
mail("$sendto","Live Help Transcript","$comments","From: $messageemail\r\nContent-Type: text/html; charset=iso-8859-15");
 
 print $lang['txt130'];  
}
   print "<br><br><br><br><a href=javascript:window.close()>" . $lang['txt40'] . "</a></center>"; 
$mydatabase->close_connect();
?>
So i changed 46 to this:
Code:
mail("$sendto","Live Help Transcript","$comments","From: info@sliquid.com" $messageemail\r\nContent-Type: text/html; charset=iso-8859-15");
and now I dont get an error, I get a blank page, but I dont receive the email either...

any ideas?

thanks
colin roy
www.sliquid.com


Oh also, I know the server can send mail, because ****removed for google**** works just fine

Last edited by croix; 07-20-2006 at 01:33 PM..
croix is offline
Reply With Quote
View Public Profile Visit croix's homepage!
 
 
Register now for full access!
Old 07-08-2005, 07:05 PM
Enigmatic's Avatar
Registered User

Posts: 86
Location: No Fixed Abode
Trades: 0
$sendto

^^ Isn't declared anywhere.
Enigmatic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP sendmail help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43703 seconds with 12 queries