FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Zendmail attachments
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Zendmail attachments [message #170823 is a reply to message #170821] Tue, 30 November 2010 12:44 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 30/11/2010 12:50, Derek Turner escribió/wrote:
> People on this group were kind enough to point me to Zendmail for my
> choir's mass mail-outs and it is working just fine. Recently I've been
> asked if I can send out attachments.
>
> I have RTFM at<http://framework.zend.com/manual/en/
> zend.mail.attachments.html>
>
> It appears that I can use (say) Filezilla to upload the attachment: but
> to where? The manual doesn't say. Does it default to the same directory
> as the script? Can I use a path relative to the script or does it need a
> FQP? Any easy way to get it to take the attachment from my Desktop
> without separately uploading it? That would be neat :)

The createAttachment() method expects a file name. So I'd dare say that
it doesn't matter where you put the file if you provide the correct path.

In PHP, relative paths can get tricky because they are normally *not*
relative to the file where you use them but to the location of the main
script. My advise in these cases is to:

1. Set a directory
2. Define a constant with the directory location
3. Always use absolute paths



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Previous Topic: ANNOUNCE: NHI1-0.10, PLMK-1.8 und libmsgque-4.8
Next Topic: Re: URL-String-concatenation within Curl-Multi: a Loop-array: [can i do like so]
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 08:57:01 GMT 2024

Total time taken to generate the page: 0.04610 seconds