How can I have my viewers email me an advertising form with an attachment thru any Drupal Module? I have tried filestore2, attachments, and upload with webforms and survey and can't for the life of me figure out how to get this to work. All three modules seem to do something slightly different than what I need.

What I need to do is have a regular and simple way for my advertisers to come to my site and fill out a form with their current ad info and attach a graphics file and then send it to my email. Maybe I just need to open a new window and user standard PHP because the only way I know to do this is to call a sendmail.php file from another php form file. This doesn't seem possible in Drupal.

Any help would be greatly appreciated as I am getting serious pressure on me to get it done. 8-O

Thanks!!

Comments

LukeLast’s picture

I don't think the drupal email system supports attachments.

muzza’s picture

You could probably create a form using php that uses phpmail to send the message. Search google for an example.

Murray

Swooperz’s picture

Thanks for the replies.

The issue I have been running into is that the PHP code email forms that I have been working with, will usually call another php file for posting. This isn't going to work if I place the code for both files (form and receiving post file) into a couple nodes (story, page, etc), is it?

It doesn't have to be emailed, but I thought this would be the simplest way to get a file uploaded to my client AND have some other info about that company included with it.

I am open to suggestions if you guys have any.

Thanks!

-Alan

muzza’s picture

The Mass Mailer modules uses phpmail which can send attachments. Perhaps a look at the code might be helpful.

Murray

Swooperz’s picture

Thanks! I will have a look. In the meantime, I just made a new window spawn to load a php file I made that uses the PHPMailer class. It rocks! (The reason for a new window is that it has to pass info in the form to a form handler, and THEN mail it.

;)

alanburke’s picture

I have to do something similar, so I was wondering if you ever found a module that allows this.

If not , could you give some more details as to how you achieved it it the end, maybe some php code if possible

Regards
Alan