email generator form - automatic reply, confirmation email

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
chris102
Posts: 9
Joined: Mon 30. Jan 2006, 16:25

email generator form - automatic reply, confirmation email

Post by chris102 »

First question:

I have following input fields:
name: John Small
email: john.small@sb.com

Let's assume that my server is "myserver.com"

I receive email from

"John Small" <johnSmall@myserver.com>

How to force mailer to do:

"John Small" <john.small@sb.com>

so that the email could be "replied" by email software?

second question

If sb sends me an email I want my mailer to automatically send not a cc but confirmation message like:

Thank you for sending your message. I will contact you asap ...

How to do that?



Thanx
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Cannot do it, like I said here! :wink:
http://www.phpwcms.de/forum/viewtopic.php?p=57767#57767
Your server's mailer is not going to let you tell it that you want the email to be from somewhere else, when it "knows" it is the "sender".
chris102
Posts: 9
Joined: Mon 30. Jan 2006, 16:25

Post by chris102 »

Thanks for your quick answer DeXXus.

I think that it is possible. I didn't swiched to phpWCMS yet and on my current page I have mailer that do what I claim i.e. I receive emails from John Small <john.small@sb.com>

Here is my code:

Code: Select all

mail ($recipient2, $subject2, $message2, $headers2);
before that I feed variables with:

Code: Select all

$headers = "From: $sender_name <$sender_mail>\r\nE-mail: $sender_mail\r\n";
where

Code: Select all

$sender_name and $sender_mail
are my input form fields.

So is it really not possible in phpWcms to feed $headers with variables ?

How about my second question on confirmation email ?


Thanx

Chris
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Bear in mind, I only mean my answers in the context of the phpWCMS script, as it is now written. The content parts, coding methods and templates are explicitly restrictive to what you want to do.
chris102
Posts: 9
Joined: Mon 30. Jan 2006, 16:25

Post by chris102 »

Actually I don't get your point. So does it meen that there is no built in feature or it is not possible to do due to some system restrictions?

If this is not possible then I am a bit disappointed as I think that this is a very basic function that should certainly be implemented in phpWcms (together with confirmation email) :cry:

Any idea how should I do what I want. Maybe I will inert my own PHP script into article?

Maybe it should be posted in Hack section? :idea:

Thanx DeXXus
Pauli
Posts: 92
Joined: Mon 30. Aug 2004, 11:53

Post by Pauli »

I think you're right, in some occasions it's more logic to have the email address the user fills in, to have as the sender.

Perhaps it's an idea to make it an option in the content part, a radio button:
O sender is phpwcms (value from $phpwcms['SMTP_FROM_EMAIL'] )
O sender is the email address the user fills in

Please post it the phpwcms Feature Requests forum :)
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

chris102 wrote:Actually I don't get your point.
Sounds like you got my point ~exactly~ :wink:
chris102 wrote: So does it meen that there is no built in feature or it is not possible to do due to some system restrictions?
Not built in, by the fact of how "that" content part ~currently~ works(more "design-oriented" than "funtion-flexible").
chris102 wrote:If this is not possible then I am a bit disappointed as I think that this is a very basic function that should certainly be implemented in phpWcms (together with confirmation email) :cry:
Not impossible, you have the right ideas for what is required below:
chris102 wrote:Any idea how should I do what I want. Maybe I will inert my own PHP script into article?

Maybe it should be posted in Hack section? :idea:
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

To avoid the ...@myserver.com

please read this
http://www.phpwcms.de/forum/viewtopic.p ... highlight=

Lars
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
chris102
Posts: 9
Joined: Mon 30. Jan 2006, 16:25

Post by chris102 »

mistake
Last edited by chris102 on Wed 15. Feb 2006, 17:49, edited 2 times in total.
chris102
Posts: 9
Joined: Mon 30. Jan 2006, 16:25

Post by chris102 »

Thanks for your help Klappstuhl28 but before I aksed my question I had already read your post.
First you wrote:
Presently, if my form is filled out by "Joe Blogs", the email comes through from Joe.Blogs@web10.websitesource.net (my host). I'm using a field name called "email", but I can't get that to show up as the sender...
Next you wrote:
My problem is, that the confirmation-mail to the person who has filled out the form contains user@post.webmailer.de as the sender address.
These are two different things to me. I have a problem with the first one you mentioned.
In spite of reading the whole discussion on your post I still don't know what should I do to receive email not from Joe.Blogs@web10.websitesource.net but from Joe.Blogs@joeshost.com
Is a
<INPUT type=hidden name="print_config" value="email,subject,realname">.
solution to this ? I am using different server so settings are most probably not suitable for me.

As I wrote in my first post now I am using PHP mail function. I feed headers with sender_email variable and it works fine. So I cann't blame my server settings for that.

Thanx
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Ah,

the joe-blog-thing wasn´t me but it was the same thing. I now use the smtp-mailer with the standard POP3-settings which i use maybe with thunderbird or outlook to receive my mails from the provider-server. This is a triple-must!!! to send a confirmation-mail to the user and to get a"@yourdomain.com"-mail. If not the mailer uses the standard-setting from the provider-server and you´ll get this ugly @myhost.com.
And the smtp-settings are to set in the conf.inc.php.

Hope this will solve your problem

Lars
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
thoblerone@work
Posts: 8
Joined: Fri 3. Feb 2006, 14:55
Location: Sprockhövel, Germany
Contact:

contact form reply feature

Post by thoblerone@work »

Post Reply