From-Name in e-mail

Author Message

Michael Fürst

Wednesday 11 February 2009 4:23:56 am

Hi There,

Short question:
Does anybody know where i can declare the FROM NAME in an email sent by eZ System? At the moment all mails from the user registration are send from the correct E-Mail Adress but without FROM Name. So Postfix uses www-data as sender for relaying (not really nice).

Is there a site.ini setting available??

Thanks & regards,
Mike

Norbert Wagner

Wednesday 11 February 2009 9:11:05 am

Hi Mike,
IIRC this should be in site.ini under MailSettings EmailSender.

Regards,
Norbert

Michael Fürst

Thursday 12 February 2009 4:19:07 am

Hallo Norbert,

I think

[MailSettings]
Transport=sendmail
EmailSender=email@domain.com

is only used for the sender E-Mail Adress, not the FROM Name.
Sender E-Mail is already correct, but From Name is missing.

Any idea?

Regards,
Michael

Norbert Wagner

Friday 13 February 2009 6:57:00 am

You are right, this happens when you answer without reading carefully. ;)

I think this is a sendmail configuration issue on your server.
You could, however use a sendmail option like this:

SendmailOptions[]=-F
SendmailOptions[]=mail@domain.com

Hope that works,
Norbert

Norbert Wagner

Friday 13 February 2009 10:03:14 am

Hi Mike,
after some test (I realized that I'll need this feature too) I discoverd the following:

EmailSender is the Email address in the from field.
Passing the -F option to sendmail adds the name in the From field.

[MailSettings]
EmailSender=noreply@yourdomain.com
SendmailOptions[]=-F
SendmailOptions[]=YourCompany

becomes
Your Company <noreply@yourdomain.com>
in the From header.

However for me the sendmail option only works for the Admin Notification.
So when a user registers he gets an email with only the EmailSender in the From field, while only the Admin gets the correct Header.

Also on InformationCollection Emails the From field is only the Email adress specified in the EmailSender setting.

@Anyone
Why is this?
Or is there an entirely different solution to this Problem?

Regards,
Norbert

Michael Fürst

Monday 16 February 2009 10:09:55 am

Hi Norbert,

Sorry, i had no look at the forum on weekend :)
Hm.. Sendmailoptions sounds interessting - i'm using postfix, so i have to have a look for the correct options.

Nevertheless, it doesn't look really comfortable. There are thousands of parameters to set in the ini and override files an no parameter for the "from" field? Sounds a little bit senseless!?

Maybe there is an option but we don't know it :) And it looks like noone else knows it ...

Ciao,
Mike

Michael Fürst

Tuesday 17 February 2009 5:53:09 am

Hi,

I tried many different solutions to define the sender <from> name with postfix - no chance. Sendmail Options should also work on postfix but they do not.

:(((

I nearly can't believe, that nobody else has this problem!?

Ciao,
Mike

Michal Wieczorek

Tuesday 12 January 2010 2:27:07 am

Hi,

As MTA I use Exim, using Exim's rewrite rules engine I can change any field (e.g. from) in outgoing emails.

Sample:

<source pattern> <replacement> <flags>

admin@website.com "Website Team <no_reply@webiste.com>" w

Flag "w" guarantee that the whole address item will be replaced (not only working part) so there is no need to add in the pattern www-data (you can of course use advanced pattern using regular expression ...)

If you will use html email templates problem with www-data should be also resolved.

Regards,

Michal

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 30 2025 22:22:48
Script start
Timing: Jan 30 2025 22:22:48
Module start 'layout'
Timing: Jan 30 2025 22:22:48
Module start 'content'
Timing: Jan 30 2025 22:22:48
Module end 'content'
Timing: Jan 30 2025 22:22:48
Script end

Main resources:

Total runtime0.0359 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 588.1328151.2109
Module start 'layout' 0.00980.0065 739.3438220.6719
Module start 'content' 0.01620.0174 960.01561,005.8828
Module end 'content' 0.03370.0022 1,965.898437.9922
Script end 0.0359  2,003.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00329.0255140.0002
Check MTime0.00133.5697140.0001
Mysql Total
Database connection0.00174.729110.0017
Mysqli_queries0.005114.203830.0017
Looping result0.00000.106210.0000
Template Total0.00174.710.0017
Template load0.00133.518610.0013
Template processing0.00041.199210.0004
Override
Cache load0.00082.090510.0008
General
dbfile0.00267.358480.0003
String conversion0.00000.031240.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