mrkhan
Members-
Posts
89 -
Joined
-
Last visited
mrkhan's Achievements
-
Hello, I have WireMailSmtp 0.3.0 I am trying to connect to Microsoft Hosted emails and doing bellow settings SMTP HostName: smtp.office365.com Port: 25 SMTP user: full email address SMTP password: email password But when i try to test connection I got the error ERROR: SMTP settings did not work. could not connect to the host "smtp.office365.com": Connection refused I am able to login to outlook online with the same user and password. I just want to send email through SMTP How to fix this issue? your help will be highly appreciated. Thanks
-
Hello, I am trying to Import XML and then create pages from these XML feeds. Everything is working fine, the only issue is with Image in XML feed some images are with extension and its downloading and adding in page but some images are without extension its making issue, how can I import all images with or without extension and add to the page? If I load image URL without an extension in browser Image is loading fine. see attachment for XML feed. Thanks
-
thx and its working
-
Hello, I am trying to create multi language site and i follow the all instructions here https://processwire.com/talk/topic/5518-multi-language-site/ http://processwire.com/api/multi-language-support/multi-language-urls/ i have installed all Modules under Language and also i change text to textlanguage and also textarea type. when i goto page url i see as attached. i dont see any /ar/ before my page, on home page and also on other pages (see attachment). does i am doing some thing wrong or how to do this ? Thanks
-
Hello, The day i start using PW and i Love and its really great product and I always get great support here too. I run into issue and i want know how to solve it. I am using import from CSV module ( http://modules.processwire.com/modules/import-pages-csv/ ) and its working fine. I have one user group (webmaster) for and add/ edit pages, i want to give access to that group. Like when that group Login they can access the Module and import file to add pages. I tried many options like i create a new permission as (import-pages-csv) and give that permission to that group but not working. Thanks
-
i have one website in PW working fine https://domain.com in .htaccess i have un commented bellow to work fine with my SSL RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] now i have one folder in this domain with images & i want to get the images with http not https. like when i type http://domain.com/images/image1.jpg it convert this into https://domain.com/images/image1.jpg how to make only imags in image foler load with http Thanks
-
Thanks @Francesco Bortolussi it worked.
-
Hello, i am trying to search page with multiple options like, i have one select box where i can select multiple items as <select id="tokenize" name="tokenize" multiple="multiple" class="tokenize-sample" /> i have GET form and when i submit the form i get values like search/?tokenize=abc&tokenize=xyz now in my search page $children = $pages->find("template=property, Ad_Type=".$ptype." ,Area=".$tokenize); as you can see i have passed multiple values of tokenize, how can i search page contains all values ? Thanks
-
@adrian Thanks & it works
-
Hi, I have one xml FEED and I want to create pages for each item in XML via API. First time i am trying to create page with API, every thing is working fine but the issue is 1. its creating duplicate pages every time i run that XML. i have one unique field in XML called item_id & i want to create page with item_id as page name, i want to check that if page exist with item_id name before creating page. how can i do that ? Thanks
-
Thanks @netcarver
-
even i use bellow i code i am getting same random names with no extension, why extensions are missing ? $photo=$_FILES["photo"]; $resume=$_FILES["resume"];
-
Hello @horst, Thanks for quick response, i am getting files from form , bellow is my form code <form id="contactForm" action="" method='post' enctype="multipart/form-data" accept-charset='UTF-8'> <input type='text' name='name' id='name' required="" value='' maxlength="50" /><br/> <input type='email' name='email' id='email' required="" value='' maxlength="50" /><br/> <input type="file" name='photo' id='photo' accept='image/jpg,image/jpeg,image/gif,image/png' /><br/> <input type="file" name='resume' required="" id='resume' accept="application/pdf,application/msword" /><br/> </form> and my php code is as i post above $photo=$_FILES["photo"]; $resume=$_FILES["resume"]; $mail = wireMail(); $mail->to($toEmail, $toName); $mail->from = $toEmail; $mail->subject($subject); /// these are attachemnts $mail->attachment($photo); $mail->attachment($resume); $mail->body($textBody); $numSent = $mail->send(); But when i got email i got two attachments with random names but no extension. Thanks
-
Hello @horst i have posted the question in module page my issue now is with attachments, this send email with attachments but attached files are names (xbnvv , iuytt) random names without extension. Thanks
-
Hello, I am building one form to send email with WireMailSmtp every thing is working fine, only thing attachments are sending with email without any extension. what i want to do is Send email with attachment, this script send attachment with email but files are names like bnvft & angth (random names without extensions). here is my code if (isset($input->post->submit)) { $form = array( 'name' => $input->post->name, 'email' => $input->post->email, 'message' => $input->post->message, 'email2' => $input->post->email2 ); $photo=$filetemp = $_FILES["photo"]; /// how to check that file is only image $resume=$filetemp = $_FILES["resume"]; /// how to check the file is only PDF or word file /// email12 is for spam boot if($form[email2] =="") { $toName='my website'; $toEmail=$page->email; $subject="CV EMail"; $textBody= "Full name: $form[name]\n" . "Email: $form[email]\n" . "Message: $form[message]"; $mail = wireMail(); $mail->to($toEmail, $toName); $mail->from = $toEmail; $mail->subject($subject); $mail->attachment($photo); $mail->attachment($resume); $mail->body($textBody); $numSent = $mail->send(); if($numSent) { $output="Message Send"; }else{ $output="Message Not Send"; } } }