Adding a Contact Form, is it possible to change the FROM address in the header to the submitter's email address?
As it stands now the FROM address used is the site default (mine); using REPLY in the resulting email from the form should have the submitters email address not mine. I was able to switch this in the code (form-u1768.php) of an earlier version of MUSE. The PHP has changed in the current version (2014) and I'm not seeing how to pull off the same manual tweak. Any Ideas? Thanks!
I found this: Re: In adobe muse, how do you control the replyto address for a form? The site I'm working on is uploaded via FTP to another host. So, "...the email 'reply-to' header is filled in with the email address entered by whoever filled out the form, so you can hit 'reply' in your email software to reply to the form submitter." However, what if I want to take my chances on the form mail coming out of my site? Is there a tweak in the PHP that I can perform to change the FROM address to the same as REPLY-TO? Is there any reason this wouldn't work:
function get_email_headers($to_email, $form_email) {
$headers = 'From: ' . $form_email . PHP_EOL;
$headers .= 'Reply-To: ' . $form_email . PHP_EOL;
$headers .= 'X-Mailer: Adobe Muse CC 2014.1.6 with PHP' . PHP_EOL;
$headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
return $headers;
...vs. the way it is coded by MUSE:
function get_email_headers($to_email, $form_email) {
$headers = 'From: ' . $to_email . PHP_EOL;
$headers .= 'Reply-To: ' . $form_email . PHP_EOL;
$headers .= 'X-Mailer: Adobe Muse CC 2014.1.6 with PHP' . PHP_EOL;
$headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
return $headers;
Similar Messages
-
Face time no longer works for me. Lost my contacts even! Keep trying to change PWD and keep getting same error message: The server encountered an error processing registration. Please try again later. Can you advise? Thanks!
Face time no longer works for me. Lost my contacts even! Keep trying to change PWD and keep getting same error message: The server encountered an error processing registration. Please try again later. Can you advise? Thanks!
-
Contact Form: How do i create a link from an XML file to another domain to read a PHP File
So i purchased a template from Template Monster and im having a little trouble with the contact form. The server that im uploading it to is a privite server that the company owns. It supports ASP and not PHP. I cant seem to get the ASP form to work so all i want to do it create a link to another one of there servers that supports PHP and have the contact form link to there and read the PHP file (that i will upload to that server) and send the email from there.
This is the XML that i have to fill in in order to make it work
Everything in Red is what i needed to fill out in order for the form to work.
<?xml version="1.0" encoding="utf-8"?>
<!--
Please read this information to learn how to set up the contact form integrated
into the template.
This readme file explains in details the meaning of the settings that can be
done in the fcContactFormConfiguration.xml configuration file.
It is recommended for you to use an XML editor to make changes to this file
because it’s less possible to make an error in the markup which can cause to
a not working contact form.
-->
<contactFormConfiguration>
<!--
An e-mail address which will be used to receive messages from your contact form.
You can specify several e-mail addresses separating them with a comma.
For example: [email protected], [email protected], [email protected]
-->
<emailTo>[email protected]</emailTo>
<!--
A server script type which will process sending e-mails. It depends on your
hosting and in the current version of the contact form it is allowed to use
two types: php (Apache, PHP Hosting); asp (IIS web server, ASP).
-->
<serverProcessorType>php</serverProcessorType>
<!--
A name of the script file which process sending e-mails on your server (without
extension). The name contact is used by default.
-->
<serverProcessorFileName>contact</serverProcessorFileName>
<!--
Set whether to validate only required fields (true/false). The default value is
true which means the not required fields of your contact form will not be validated.
For example if the e-mail field of your form is set as not required (imagine it)
the form will be processed even if the user types in an incorrect e-mail address.
-->
<validateRequiredOnly>false</validateRequiredOnly>
<!--
Set whether to submit the form when the Enter key is pressed even if the focus is
not on the Submit button (true/false).
-->
<submitFormOnEnter>false</submitFormOnEnter>
<!--
Text showing to the user when the form is submitted without any errors.
-->
<messageSentText>Thank you for your message.</messageSentText>
<!--
Text showing in case the form is not submitted because of a server error.
-->
<messageSentFailedText>Sorry, your message couldn't be sent</messageSentFailedText>
<!--
Text your visitor will see while waiting till the processing is over.
-->
<formProcessingText>processing...</formProcessingText>
<!--
Your SMTP server (for ASP only).
-->
<smtpServer>localhost</smtpServer>
<!--
Your SMTP port (for ASP only).
-->
<smtpPort>25</smtpPort>
<!--
Set whether to send the message as a plain text (true) or as HTML (false).
-->
<plainText>false</plainText>
<!--
ID of the input field (in the structure XML file) to use for the “from: ”
or email to use instead (for example: [email protected]).
-->
<emailFromSource>2</emailFromSource>
<!--
Subject of the e-mails that will be sent through this contact form or ID of
the input field (in the structure XML file) to use for the “subject: ” label
in your e-mail client.
-->
<subjectSource>Contact Form from your site</subjectSource>
<!--
Validation error messages that are showing to the user when the form fails to
validate. The form supports different types of validators. You can change the
text of the error messages the validators produce here.
You can use the {LABEL} keyword in these messages. It will replace it with the
label value of the field where an error occurs.
-->
<validationErrorMessages>
<!--
A required field is not filled in.
-->
<message type="fieldIsRequired">{LABEL} is required.</message>
<!--
The specified e-mail address is incorrect.
-->
<message type="emailNotValid">{LABEL} - is not valid email address.</message>
<!--
The specified number of characters in a field is less than a required minimum.
-->
<message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less than a required minimum.</message>
<!--
The specified string does not match with the regular expression.
-->
<message type="reqExpError">{LABEL} - The specified string does not match with the regular expression.</message>
<!--
The specified number is greater than an acceptable biggest number for this field.
-->
<message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable biggest number for this field.</message>
<!--
The specified number is lower than an acceptable lowest number for this field.
-->
<message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable lowest number for this field.</message>
<!--
The data is not a number.
-->
<message type="notANumberError">{LABEL} - The data is not a number.</message>
<!--
The specified number must not be negative.
-->
<message type="negativeError">{LABEL} - The specified number must not be negative.</message>
<!--
The minimum number of variants is not selected
-->
<message type="minRequirementError">{LABEL} - The minimum number of variants is not selected</message>
<!--
The number of variants selected exceeds the maximum
-->
<message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the maximum</message>
<!--
The fields that should be equal do not match
-->
<message type="shouldBeEqualError">{LABEL} - values do not match</message>
<!--
The date has wrong format.
-->
<message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
</validationErrorMessages>
</contactFormConfiguration>
THIS IS THE ACTUAL CONTACT.PHP Form That i would like to link to.
<?php
//-----------------Getting data sent by flash---------------------
foreach ($_POST as $key => $value){
if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
$mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
$mail_body .= ''.stripslashes($value).'<br/>';
$message = '<html><body>'.$mail_body.'</body></html>'; // mail body
//------------if plain text is set to true removing html tags------
if ($_POST['plain_text']=='true') {
$message = str_replace('<br/>',"\r\n", $message);
$message = strip_tags($message);
} else {
//----otherwise composing message headers---------------------------
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=windows-1251' . "\r\n";
//------------setting conf data-------------------------------------
$to = $_POST['mail_to'];
$from = $_POST['mail_from'];
$subject = $_POST['mail_subject'];
$smtp_server = $_POST['smtp_server'];
$smtp_port = $_POST['smtp_port'];
//---------setting header info--------------------------------------
$headers .= 'From:' .$from;
if (mail($to, $subject, $message, $headers)){ // sending mail
print('&mail=1'); //succes
} else {
print('&mail=0');//failure
?>You can open both Muse files at once, copy the content of a page on one site, then paste it into a new page on the other site. You might have to redo some of the page styling.
-
Can I change the emails generated by the Contact Forms from saying that they are coming from me, to the address of the person that's actually generated the enquiry on the contact form? Or does this always automatically link back to my Creative Cloud account because thats how I'm hosting the websites?
Because they ARE coming from you (at least from your account)... this is the account the website is using to send the form to your email and this means that a user visiting your website can send you this email "EVEN" when they don't own an email account themselves.
No you can't legialy change the address to theirs... thats a big no no in most countrys but you can and should have a "contacts" field on your form that allows people to give you a email or phone number so that you can follow up.
p.s. many people make the mistake of trying to force email contacts in their forms and that offen turns people off using them if they MUST tell you the colour of their underware just to contact you about a sales offer or simple question then don't expect to get much feed-back from your forms. -
I am not sure what generates the email address as a contact, be it the iPhone or iMac. I use iCloud to sync up my contacts/address book. This appears to happen when I am using Mac Mail on my iMac, but I have no clue where to begin to look to stop this auto addition. I have looked in Mail preferences on my iMac and in my iPhone settings, but have found nothing that "automatically add email address to contacts list".
Can anyone provide guidance? Web search has been fruitless ( I am guessing I am not using the right key words for my search).Hey jpoolewarren!
You can delete contacts by following the instructions in this link:
Contacts at a glance - iPhone
http://help.apple.com/iphone/7/#/iph3e0ca2db
Delete a contact. Go to the contact’s card, then tap Edit. Scroll down, then tap Delete Contact.
Thanks for being a part of the Apple Support Communities!
Regards,
Braden -
Two days ago my phone locked up and when I could access again, my contact list was only a few names and email addresses. ALL phone numbers wiped from the phone. I have been using google sync for three years to sync contact and calendar to gmail and then sync gmail to iphone, and it has been seemless. I would think this was the problem, however the contacts and phone numbers that were added directly the phone are no longer on the phone either....which point to a phone problem.
I went home, to update but ended up having to "restore" from backup, which I did. The contacts were visible for less than 24 hours, but then disappeared again the next day. I have tried forums for google sync as that would solve a large amount of the contacts, but I still can't seem to find a solution for the other contacts added directly to the phone.
are there any new glitches/issues with the iOS 6 that cause this problem?
phone is 3GS.
thanks.Do the numbers still exist in your google contacts?
Google recently terminated support for new configurations of gmail using Exchange Active Sync for unpaid accounts. In theory, existing configurations will continue to work, but there have been some problem reports.
I've seen several mentions of the problem you describe in the last few days and so far, they've gone unresolved as far as I can tell. The root cause may be in google's termination of AES support.
Facebook contact sync may also be a suspect. -
How to Print data from variable or in header of the table in smart forms
Hi all.
i have to print mondy tuseday etc in the header of the table . the actual data is printed ok in the main area from itab where as i m unable to print data in header from that itab.
i have tried from one variable as well . as i export that value to the smart form andthen try to print but i won't be able to do that
Regards
Ammadplease post the question clearly.
-
Is there any way to restore the addresses and phone numbers to the contacts on the iphone and computer that were erased after it synced?
Then chances are you won't be able to get them back. You can try restoring from your last iPhone backup to see if they're still there. To do this, prior to connecting your phone, open iTunes on your computer and go to Preferences; on the Devices tab check "Prevent...from syncing automatically". Then connect your phone to your computer and when it appears in iTunes on the left sidebar right-click on its name and choose Restore from Backup. Of course, if your backup has already been overwritten with a new backup that doesn't contain the missing contact information then this will not restore it to your phone.) When done you can go back to iTunes Preferences and re-enable automatic syncing if you prefer this.
-
Is it possible to change Calendar from the American to a British version?
Is it possible to change the Calendar from an American to a British version?
Use:
Apple Menu > System Preferences > Date & Time > Date & Time
Click the 'Open Language and Region' button on the bottom right of on the panel. Choose:
Region: United Kingdom
First Day of the Week: Monday or Sunday according to your taste
Calendar: Gregorian
If you want more control over date formats use the 'Advanced...' button.
C -
Okay so I'm about to start college and I just got my own macbook. Up until this point, I have been using my dad's apple ID for all my music and apps and stuff (on my other computers at home) but now that I got my own computer, I have my own apple ID as well, and I'd like to start using that ID from now on.
So my question is, is there a way for me to get my old music library (which was controlled by my dad's apple ID) onto my new mac, but from that point on, start using my own apple ID for purchases?
All I want from his ID is that library, because it's the music I have on my ipod and iphone. Once I have all that music on my new computer I want to be able to make purchases with my personal apple ID instead of his. Like I said, all I want is his library.
I'm not sure how to accomplish any of this... so if anyone could help me out that'd be great! I'm so confused.
Sorry if this was confusing lol I hope it makes sense....... is there a way for me to get my old music library (which was controlled by my dad's apple ID) onto my new mac, but from that point on, start using my own apple ID for purchases?........
Yes, once the content is in iTunes on your computer, just click it to play and authorise your computer to play it by entering your Dad's ID and password.
Log into your own account and start purchasing your own content which will then be added to the existing content. -
All forms automatically insert: [email protected]
*Click the (empty) input field on the web page to open the drop down list
*Highlight an entry in the drop down list
*Press the Delete key (on Mac: Shift+Delete) to remove it.
See also:
* Firefox > Preferences > Privacy > Firefox will: "Use custom settings for history": [] "Remember search and form history"
* https://support.mozilla.com/kb/Form+autocomplete -
Is it possible to change orientation from dual after creating folio?
Somehow my orientation got converted to dual orientation and iit is only a vertical publication. It went to my adboe content viewer on my iPad perfectly, but now when i try to view it on my ipad with it hooked into the computer it says orientation does not match. I looked at the folio and it has landscape and portrait, but i have no idea how it switched as i never created any landscape files. Any help would be appreciated as I do not want to build it over from scratch again.
Unfortunately, you can't change the orientation settings of a folio. You have to create a new folio. If you set up your folder structure properly when you created the files, importing articles into the new folio is easy. If you built your articles manually, you have to redo your work.
-
I posted the question and I need help. I am new to posting and to discussions. I gather that posting is only for answers.
Hi student4ever,
You're in the right place to ask questions, and get answers!
When you convert a file to PDF using the Acrobat.com online service, they are automatically stored in your Acrobat.com account at https://cloud.acrobat.com/files.
To download a file to your computer, select the file in the Files list, and then click Download at the top top of the list. Your files will be downloaded to the Downloads folder on your computer.
Best,
Sara -
I have just installed IoS7 on my I Phone. Having reset the security questions I have been ask for a Rescue Email address. My primary address is not acceptable, I have tried other addresses put but the process will not forward. I cannot go back, my phone now will not function. The Rescue Email address keeps appearing. Help please.
Did you check the email account for a verification email from Apple? You may need to respond by clicking the Verify Now link before the new rescue address will be accepted.
-
Can you have multiple contact forms in a single Muse site?
I have a site created in Muse that needs to use multiple contact forms of a sort. One is a simple contact form. Two others are sign up forms. In two of the three forms I have to separate the First and Last names. Also in those there are multiple Custom fields and Message fields.
The original simple contact form is working fine and has been. However, I modified one of the pages by adding a second form, the first of the two sign-up forms. It looked great in Muse, but when uploaded to the site, all of the fields were gone, leaving only the Labels in a single paragraph.
Does this mean I can't have multiple contact forms in a single site? If I actually, can, then what might have caused the problem? And what could you suggest for me to try to fix it?
Thank you,
LauraThank you for the information, but I cannot find anywhere in help where to find the field names (if that is my problem). I changed all the labels and the corresponding text inside the field (remember, Muse does not give access to code as far as I can tell). When I preview the page in a browser (using FireFox as default, but also tried with IE), everything looks good. When I export to html and open the index.html on my computer, everything still looks great. But when I FTP the page to the website, this is what I get:
First Name:RequiredRescuer Email:RequiredOrganization (if any):RequiredSubmitting Form...The server encountered an error.Form received.Geographic Areas Covered:RequiredRescuer Cell Phone:RequiredRescuer Home Phone:RequiredRescuer Home Address:
RequiredRescuer City:RequiredRescuer State:RequiredRescuer Zip code:RequiredRescuer Country:RequiredVeterinarian Name:RequiredVet Address:RequiredVet City & State:RequiredVet Phone:RequiredRequiredServices Offered:RequiredAdditional Info About You:Required Rescuer (available to general public) RequiredVolunteer (available only to Rescuers)RequiredPhoneRequiredEmailRequiredOtherRequiredLast Name:RequiredImage Verification:Required
How would you prefer to be listed?
How would you prefer to be contacted?
However, this is how it looks on the preview:
So, what is my problem? And how can I fix it?
Thank you,
Laura
Maybe you are looking for
-
i recently had my computer fixed as it was loaded with viruses. Also I finally got my IPad 1 back from someone who had "borrowed" it for a year. It no longer worked, but in the case i had written down my old apple id. i had purchased 3 other ipad's s
-
I'm not sure with which version this started happening but it's only been in the last several months. When I exit firefox before retiring I'm asked if I want to save my tabs, which I do. Then when I open firefox and its been updated, tabs are lost.
-
How to create contact groups in Jabber for Windows
Attempting to deploy Jabber for Windows. I can't find where in CUPS to build the contact groups that will deploy to the users. We are wanting to build our groups by our locations and deploy them from there. Any help would be greatly appreciated.
-
Connect to Microsoft OneDrive version 1.3.0.24
OneDrive maintenance release (v1.3.0.24) addresses the recent issue which is preventing our users (on the BB 10.3.0 and earlier OS releases) to login to their OneDrive account. What's new in this release (v1.3.0.24) that will be available from BlackB
-
Hi All Iam new in SAP community can some one tell me how can i install SAP FICO in my laptop for practice purpose??I need SAP software because I have to practice. If its have Where can i download it from???please share the related links.. please help