I am attempting to send 2 different emails. 1 would be coming from a field in the form and have a message sent along with it. The other I would like to send to me when the form is filled out but send a different message to me. I have it working right now with one email being sent when the form is completed to the sender. I now need one sent to me telling me that someone has filled out the form. Please help.
Thank you in advance.
2 emails and 2 different messages
Moderator: General Moderators
Re: 2 emails and 2 different messages
Well, I have a form that will be filled out. When the sender completes and clicks the submit button, it send the sender an email with a message.
I would like to get an email as well, notifying me that someone has completed the form.
I would like to get an email as well, notifying me that someone has completed the form.
Re: 2 emails and 2 different messages
Code: Select all
$swift->send(); //to the user
$swift->send(); //to youSet Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Re: 2 emails and 2 different messages
scottayy wrote:Of course you can specify different recipients, subjects, and bodies with each send().Code: Select all
$swift->send(); //to the user $swift->send(); //to you
Is it difficult to install SWIFT? And would you mind pointing me into the right direction?
Re: 2 emails and 2 different messages
Oh, sorry.. I thought this was in the Swift mailer forum. 
Swift is not difficult to install, though. http://www.swiftmailer.org Good documentation.
However, you can use mail() in place of the $swift->send()'s.. but I wouldn't be a good patron recommending that over Swift.
Swift is not difficult to install, though. http://www.swiftmailer.org Good documentation.
However, you can use mail() in place of the $swift->send()'s.. but I wouldn't be a good patron recommending that over Swift.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Re: 2 emails and 2 different messages
All you have to do is duplicate the code that is sending the message to the user and change a few variables so that it sends a message to you as well. 