Page 1 of 1
2 emails and 2 different messages
Posted: Sun Mar 30, 2008 2:42 am
by ctec2001
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.
Re: 2 emails and 2 different messages
Posted: Sun Mar 30, 2008 2:58 am
by Corvin
Re: 2 emails and 2 different messages
Posted: Sun Mar 30, 2008 3:03 am
by ctec2001
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.
Re: 2 emails and 2 different messages
Posted: Sun Mar 30, 2008 3:10 am
by s.dot
Code: Select all
$swift->send(); //to the user
$swift->send(); //to you
Of course you can specify different recipients, subjects, and bodies with each send().

Re: 2 emails and 2 different messages
Posted: Sun Mar 30, 2008 3:22 am
by ctec2001
scottayy wrote:Code: Select all
$swift->send(); //to the user
$swift->send(); //to you
Of course you can specify different recipients, subjects, and bodies with each send().

Is it difficult to install SWIFT? And would you mind pointing me into the right direction?
Re: 2 emails and 2 different messages
Posted: Sun Mar 30, 2008 3:29 am
by s.dot
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.

Re: 2 emails and 2 different messages
Posted: Sun Mar 30, 2008 5:16 pm
by AMCH
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.
