Forums / Install & configuration / Trouble with sendMail function in ezsmtptransport.php

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Trouble with sendMail function in ezsmtptransport.php

Author Message

Graham Tillotson

Thursday 21 August 2003 3:47:49 pm

I'm trying to setup SMTP email in the Windows version of Exponential 3.1 and I can't get a FROM value to show up in my messages. The mail is going out and everything looks fine except for the missing FROM value.

As a test, I stubbed out the values as shown in the sendMail function in ezsmtptransport.php:

$sendData = array();
// $sendData['from'] = $mail->senderText();
$sendData['from'] = 'graham.tillotson@savogroup.com';
$sendData["recipients"] = $mail->receiverTextList();
$sendData['headers'] = $mail->headerTextList();
//$sendData['body'] = $mail->body();
$sendData['body'] = 'test for stub message';

The test message for the body comes through, but I still get nothing for the FROM address. Any ideas on how to fix this? I have the default sender setup in site.ini.append:

# The address which will be set at the sender of the e-mail as default
EmailSender=graham.tillotson@savogroup.com

but this doesn't get picked up either. Safe mode is off and the view cache is disabled.

Thanks,
GRT

DUO : CONSULTING
Web content management experts
www.duoconsulting.com

Jan Borsodi

Tuesday 26 August 2003 8:14:50 am

It could be that the SMTP version on the server is not compatible with the SMTP class we have. Do you get some errors in the debug (must be turned on too se it).

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq