Forums

Attaching Files

shan_mfm 09 Nov, 2007
hi,

i am not good in php. i want to attach a document to my form and mail it. but i tried it didn't work.

i added a file browser component but how to attach the file to the message?

can anyone help me on this?😟
GreyHead 09 Nov, 2007
Hi shan_mfm,

Please have a look at this FAQ and see if it helps. If not then please tell us which step isn't working for you as I'm not clear what it is that you are trying to do.

Bob
Max_admin 09 Nov, 2007
You can add the path to the file on your server to the $attachements array!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
shan_mfm 21 Nov, 2007
thanx Bob,
the function works when testing locally
through a SMTP,
but when you use it online the e-mail
is not sent

any idea y?:dry:
GreyHead 21 Nov, 2007
Hi shan_mfm,

There are two main possibilities:[list]
  • Your isp has some particular settings that you need to configure in Joomla to send email, in this case no emails will be sent from the site
  • your isp requires a particular entry in the From or Reply to email fields, usually [email]name@yourdomain.com[/email]
  • [/list]in either case your host's help service is probably the next place to check.

    Bob
    This topic is locked and no more replies can be posted.