how to send mail with attachment using EZMAIL

Author Message

Dhaval Patel

Thursday 31 July 2008 2:24:00 am

hello,

I want to send the mail with attachement of text file.

I have made an action handler to send the mail.

Simple mail is working but I want to send it with attachment.

Please suggest me the solution.

Thanks in advance.

Dhaval Patel
iNET Process India
www.inetprocess.co.in

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Kristof Coomans

Thursday 31 July 2008 7:49:35 am

Hi Dhaval

The eZMail libraries coming with eZ Publish do not support attachments. If you're on PHP 4 / eZ Publish 3 you might have to use a third party mail library to send out e-mails with attachments in PHP, take a look at this extension: http://projects.ez.no/ezswift. If you're on PHP 5 / eZ Publish 4, you can use the eZ Mail Component: http://ezcomponents.org/docs/tutorials/Mail. Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nicolas Ottavi

Thursday 28 August 2008 8:10:22 am

Hi Kristof,

Thanks for the link to eZSwift. Unfortunatly I can't find the extension archive to download?

http://projects.ez.no/index.php/ezswift/downloads

[edit:] I am using the svn instead ;)
Thanks

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 04:21:04
Script start
Timing: Jan 31 2025 04:21:04
Module start 'layout'
Timing: Jan 31 2025 04:21:04
Module start 'content'
Timing: Jan 31 2025 04:21:04
Module end 'content'
Timing: Jan 31 2025 04:21:04
Script end

Main resources:

Total runtime0.0151 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0027 739.492236.6797
Module start 'content' 0.00840.0051 776.171990.1875
Module end 'content' 0.01360.0016 866.359433.9922
Script end 0.0151  900.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.9348140.0002
Check MTime0.00117.3592140.0001
Mysql Total
Database connection0.00106.694910.0010
Mysqli_queries0.002617.452730.0009
Looping result0.00000.118110.0000
Template Total0.00127.910.0012
Template load0.00106.436710.0010
Template processing0.00021.471810.0002
Override
Cache load0.00074.754010.0007
General
dbfile0.00117.233380.0001
String conversion0.00000.053540.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