Jump to content

Archived

This topic is now archived and is closed to further replies.

SuperWebman

Wordpress Coupon Ad

Recommended Posts

Ok hopefully someone can help me with this, because i'm at a lost.  I installed a plugin called Fast Secure Contact Form.  Which is an awesome form, but what I need to do if this is possible for the form to email the client a coupon that i designed after they submit the form.  That will populate their information from the form to it.  The plugin is pretty cool and you can add all kinds of things to it.  Here is the plugin site http://www.fastsecurecontactform.com/

it has an option where posted data can be sent as a query string on the redirect URL http://www.fastsecurecontactform.com/sending-data-by-query-string

Any help on this would be awesome, because my boss just dropped this on me today and he wanted it done like last week. :-\

 

Thanks,

 

B

Share this post


Link to post
Share on other sites

PHP has a mail function, use that.

Share this post


Link to post
Share on other sites

You just want to send an email right?

 

http://php.net/manual/en/function.mail.php

 

bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )

 

This will work as long as your host has a working SMTP server set up.

 

For example:

 

mail("computerguy81@gmail.com", "Need PHP mail help!", "Hi, can  you please help me with PHP?");

 

When this runs it will send an email. Format the message with the values from the form and presto. Done.

Share this post


Link to post
Share on other sites

well the form actually sends an email to our sales manager that has the customer info.  But I want it so that when the customer sends it will also email them the coupon.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.