Forums / Install & configuration / Trouble with sendMail function in ezsmtptransport.php
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'] = '[email protected]'; $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[email protected]
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