MailSettings not found

Author Message

Vicente Olivan

Friday 11 April 2003 12:38:23 pm

Hello, I have proven diverse configurations of [MailSettings] in site.ini file, and I cannot send emails As it would be the correct configuration? Thanks

Jan Borsodi

Tuesday 15 April 2003 4:28:24 am

What operating system are you using on the server and what kind of mail settings are trying to use (sendmail,smtp)?

--
Amos

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

Vicente Olivan

Tuesday 15 April 2003 7:23:39 am

The used system where eZ is executed is network hat 7.1

Adjustments proven with smtp:

[MailSettings]
# The type of transport for emails, can be either sendmail or SMTP
# Window users should probably use SMTP
MailTransport=smtp
# Configuration for SMTP
TransportServer=192.168.1.55 (IP mailserver smtp)
TransportPort=25
TransportUser=user_name
TransportPassword=
AdminEmail=user@domain.com
EmailSender=user@domain.com

Adjustments proven with sendmail in the same machine of eZ Publish:

[MailSettings]
# The type of transport for emails, can be either sendmail or SMTP
# Window users should probably use SMTP
MailTransport=sendmail
# Configuration for SMTP
TransportServer=
TransportPort=25
TransportUser=user_name
TransportPassword=
AdminEmail=user@domain.com
EmailSender=user@domain.com

Adjustments proven with sendmail installed in another machine in local network:

[MailSettings]
# The type of transport for emails, can be either sendmail or SMTP
# Window users should probably use SMTP
MailTransport=sendmail
# Configuration for SMTP
TransportServer=192.168.1.60 (IP sendmail machine in localnetwork)
TransportPort=25
TransportUser=user_name
TransportPassword=
AdminEmail=user@domain.com
EmailSender=user@domain.com

No of the configurations has worked :-(

Thanks for the interest and the answer :-)

Ole Morten Halvorsen

Tuesday 15 April 2003 8:04:09 am

Check your mail log when your are trying to send mail (normally /var/log/maillog) to see if your mail actually get sent or if it is rejected somehow.

In eZ publish 3.0 the email sender is set to your web server user (eg apache@localhost), and some mail servers reject mails from a non existing mail account (which apache@localhost is).

In svn, when using sendmail to send mail, the email sender is correctly set to whatever EmailSender in site.ini is.

If you the ability to change php.ini, you can set the email sender there:
sendmail_path = /usr/sbin/sendmail -t -i -f valid@email.user

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:38:14
Script start
Timing: Jan 31 2025 00:38:14
Module start 'layout'
Timing: Jan 31 2025 00:38:14
Module start 'content'
Timing: Jan 31 2025 00:38:14
Module end 'content'
Timing: Jan 31 2025 00:38:14
Script end

Main resources:

Total runtime0.0252 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1328151.2109
Module start 'layout' 0.00610.0041 739.3438220.7031
Module start 'content' 0.01020.0133 960.04691,001.8047
Module end 'content' 0.02350.0016 1,961.851633.9922
Script end 0.0252  1,995.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003112.2380140.0002
Check MTime0.00114.4626140.0001
Mysql Total
Database connection0.00114.505210.0011
Mysqli_queries0.002710.707930.0009
Looping result0.00000.043510.0000
Template Total0.00114.410.0011
Template load0.00083.293910.0008
Template processing0.00031.110910.0003
Override
Cache load0.00062.282410.0006
General
dbfile0.00093.432180.0001
String conversion0.00000.023740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs