1
vote
2answers
26 views

PHP Email - Should be built in the headers or in the body? (what's more correct)

As I'm working on building and sending email in PHP I've noticed that sometimes people put the code for the message and file attachment in the headers and sometimes in the body. They both work. So ...
0
votes
2answers
39 views

Modal window on a form

Is there a way to make a modal window popup when a input is skipped ? For example, if someone forgets to put in their email, my current php mail file opens a blank page thats says please enter email, ...
0
votes
0answers
17 views

Parse emails with email piping in php

I use MIME E-mail message parser class for parsing email.In this i get to,form,subject and message id. Problem is the body and attachment are not fetch or parsed. In this i stored email data in to ...
0
votes
1answer
34 views

Mail Send Using PHP Script

<?php if(isset($_POST['email'])) { // CHANGE THE TWO LINES BELOW $email_to = "[email protected]"; $email_subject = "Website Enquiry"; function died($error) { // your error ...
0
votes
0answers
14 views

php.ini, sendmail configuration to send an email using a php script

I need some help. I am trying to send an email from a php script. My environment comprises of the following: Operating System: Windows 8 XAMPP version: 1.8.2 php version: 5.4.19 I ...
1
vote
0answers
19 views

PHP - SMTP Error 10060 (SMTP -> ERROR: Failed to connect to server)

I using SMTP connection to send email. It is not working from last one month before that it was working properly. I am not able to get the actual reason of that error. Error is: SMTP -> ERROR: ...
-3
votes
0answers
29 views

PHP: Why does the output of this string have an indent? [on hold]

Here is the code: if( isset($_POST['item1']) ) { $firstitem .= 'Item: '.$item1." \nColor: ".$color1." \nQuantity: ".$quantity1." \nPrice: ".$price1."\n"; } if( isset($_POST['item2']) ) { ...
0
votes
0answers
11 views

Fixing Contact Form 7 on Yahoo Email address

I'm trying to fix my problem regarding the plugin contact form 7. Basically the objective of my contact form is once the user submitted their application form with resume the contact form will send an ...
0
votes
1answer
14 views

Email sending is not working in Adobe muse site hosted in Azure?

Hello All, We have a site that made in Adobe muse , When we try to publish to Azure it giving a error Email not configured (http://forums.adobe.com/docs/DOC-3581, ...
1
vote
2answers
40 views

PHP mail dosen't get the variables value

I've got a web with two forms and those send an email. So, I developed this code: <?php if($_COOKIE['form'] == 'contact'){ $name = $_POST['nameC']; $email = ...
-1
votes
1answer
27 views

How exactly does the mail() function work in PHP? [on hold]

I am a PHP beginner and I am wondering how the mail() function in PHP works? I read on W3 Schools that the syntax is: mail($to, $subject, $content, $headers); But then who is the mail from? Does ...
0
votes
0answers
29 views

PHP not sending mail, sendmail works

This one is throwing me for a loop. I know sendmail is configured correctly because: sendmail -s "test" [email protected] test correctly sends mail, with the correct reverse domain, etc. However, ...
0
votes
2answers
19 views

Send mail after publish post on wordpress

I'm writing a function to send mails after i publish a post on my site but the problem is the following: If i edit a post that's already published sends a new mail everytime i update a published ...
1
vote
3answers
55 views

Email validation using JQuery Ajax

I've been having a hard time trying to validate an email with ajax using PHP and Javascript. What I want to do, is to check if the email already exists in the database, if so, display a message and ...
-1
votes
0answers
32 views

Displaying originating IP in email header

Have an interesting problem: We have a script running on the server that is sending out auto generated emails (like confirmation of signups, logins etc.) via SMTP. We are using Mailgun, and in the ...
-4
votes
0answers
33 views

Web Links in Email with PHP are not working [on hold]

So I've coded my website to send an email. The email includes a web link. For testing purposes I changed the link to localhost/www/..... However, the email now won't go through. But, when I change it ...
1
vote
0answers
23 views

Sends mail message to senders mail box by mistake

I am sending two emails. A receipt to the customer and a receipt for the webshop owner. The E-mail messages are generate and saved into a database with sender and recipient email addresses. The pull ...
0
votes
1answer
26 views

PHP - Send Email on Day+1

im trying to build my own autoresponder. I have a database of users where their emails and signup dates are stored... Now I want to send each user every day one email for x amount of days. I thought ...
0
votes
4answers
51 views

username and login through mysql database

I have a username/database that i wanna log into via PHP in the back end - so i created 2 files - one called login.php and the latter called process.php - here's the code for them both - login.php: ...
0
votes
1answer
28 views

PHP Email Attachment pdf and docx files don't get sent properly

Ok, so while still aware of better solutions, I'm using manual PHP script to send e-mail with an attachment. The only problem I have is that some attachments (PDF, DOCX) are blank when received in an ...
-1
votes
1answer
43 views

PHPmailer will not send emails to my gmail account

I'm using this code to try and get PHPmailer to send emails to people who use my website as gmail has blocked me from using php mail() apparently. However, It returns the error Mailer Error: SMTP ...
-4
votes
0answers
40 views

implode() [function.implode]: Invalid arguments [on hold]

Im getting the following error message when trying to complete a form which is emailed. Warning: implode() [function.implode]: Invalid arguments passed in C:\domain.com\wwwroot\consult_request.php ...
2
votes
1answer
49 views

PHP mistake renders mail() function not functional

Possibly this will be obvious for most, but I wasn't able to figure out the mistake; here is a simple HTML form and PHP code to send an email, including the host (domain) the message was sent from: ...
0
votes
2answers
36 views

How to make javascript contact form submit correctly

html code: Contact Me <label for="Name">Name:</label> <input type="text" name="name" id="Name" accesskey="N" ...
0
votes
1answer
37 views

Contact form emails do not arrive at destination

I have a simple website with a php contact form set up. The original contact form included: $to = "[email protected]"; $subject = "New message: $name"; $message = "$message"; $headers = "From: ...
-4
votes
0answers
30 views

PHP script executing loops when it is not supposed to [on hold]

I have a PHP script which submits data to a 3 different tables and sends 1-2 mails using mail(). The mails are send by requiring another php file (using require_once). The problem is that sometimes, ...
-1
votes
1answer
29 views

PHP mail() function to send html mail [duplicate]

I am sending a mail from mail() function but it avoids the html tag and sends the message including the tags example <?php $subject = "Testing"; ...
0
votes
2answers
36 views

PHP conditionals for $message in mail

I know there is a simpler way to do this. What I'm trying to do is group fields by number and use isset to test if $_POST['item#'] value is empty. If that item# is not empty, I want to send ...
0
votes
0answers
23 views

PHP mail with javascript animation not sending

So i have a working php mail send function, however i found a script online that performs a nice animation once its submitted instead of redirecting to a html page. So the php mail works and sends an ...
0
votes
0answers
24 views

Should I support email addresses with embedded UTF-8 characters? [on hold]

According to the Wikipedia article on email, UTF-8 email addresses are possible. As a PHP developer, should I support them in my application, or is it a waste of space to use 3-byte UTF-8 MySQL ...
0
votes
0answers
20 views

How to fix [SocketException] Could not send email. Error in CakePHP

I have been trying to get this Email code working in my CakePHP for ages now. It is meant gather data from a simple contact form and send an email to a specific address. For now I am simply trying to ...
0
votes
2answers
35 views

Loop through php $_POST, send email with values

I'm using: foreach($_POST as $name => $value){ $items = $name.': '.$value.' '; } $message = 'FROM: '.$name." \nEmail: ".$email."\nItems: \n".$items; mail($to, $subject, $message, $headers); ...
0
votes
2answers
29 views

PHPMailer - gmail smtp not working properly

I use gmail smtp for contact form in my site.(PHPMailer script https://github.com/PHPMailer/PHPMailer‎)my code is: <?php include "classes/class.phpmailer.php"; // include the class name $mail = ...
0
votes
1answer
22 views

CakePHP mail not working on server

I recently uploaded a CakePHP 2.3.8 app to a Ubuntu 12.04 EC2 instance and now I cannot send emails when using $Email->send() but I can do it with the "fast" method of ...
0
votes
2answers
25 views

E-Mail form to users based on role

So I'm having a problem with a form I've made so one user can e-mail other users based on role fans , players or the admin. HTML <?php $user = wp_get_current_user(); $user_id = ...
0
votes
2answers
54 views

PHP email contact form [on hold]

I've created a PHP email contact form and it works. Now in addition I have used Javascript to add extra dropdown lists to the form where the user can select the option. I'd like those chosen options ...
-3
votes
2answers
44 views

Forgot Password Script PHP mysqli database

Hi I am trying to make forgot password script and successfully completed but I am getting one problem. In forgot.php When user enter email, script checks the email in database if it's matching then it ...
0
votes
2answers
56 views

PHP email code showing in browser and not sending email

I've made a form in html which has a submit button on at the bottom of the form and when that it pressed it should go to the PHP file and then grab the data from the form to then send it to my email ...
-1
votes
0answers
33 views

Send email to more than one recipient

Hi i would like to add a recipient to a current email that is sent out when a sale is made. I am new to this. Is there anyone who can assist please. You will see below that the controller sends when ...
0
votes
1answer
68 views

Facebook login api return user email address

I am trying to implement a facebook login onto my website. I can get all the relevant data I need except the email address. The data will be used to store using mysql. I came across an interesting ...
-1
votes
2answers
72 views

Forgot Password script PHP mysqli

Hi I am trying to make a script forgot password so when user enter email in it it will verify that if entered email matches the database email if yes then sends confirmation email to his email ...
1
vote
1answer
34 views

PHP security: How to secure emailed link with get variable?

I have a link that's emailed to the user: e.g. http://somesite/path/page.php?hash=19a893775098b441b8b088387c19fccce2a1fce3 This link is emailed to a user and this unique hash is validated against a ...
0
votes
0answers
17 views

Mail Update when changes Updated using PHP & MySQL

From the below code and the image shown, If the user changes any customer or employee by adding or deleting, mail should have to send to the particular customer that u have added to the employee or ...
0
votes
1answer
24 views

Apache localhost mail() not being received with Mercury Server & Thunderbird

I upgraded Windows XAMPP to 1.8.3 and am trying to get php working (again) on localhost with Apache 2.4.4, Mercury Mail 4.6, and Thunderbird client 24.1.1. Thunderbird can send and receive mail ...
0
votes
1answer
27 views

Sending an image with text overlay in email

I'm using PHPMailer to send emails with images embedded in the email. I'm just wondering what the best way to achieve the following usecase is: Sending an image (like a picture of a gift card) with ...
0
votes
0answers
19 views

PHPMailer - Set senders name

I'm using this script to send a email: $to = "[email protected]"; $from = '[email protected]'; $fName = 'My Site'; $lName = 'My Site'; //$subject = ''; $mail = new PHPMailer(); $mail->IsSMTP(); ...
-1
votes
1answer
45 views

E-Mail to PHP Script

I am trying to forward incoming emails to a php script that checks the subject and stores a record (Time Stamp, Sender) for that subject in the DB. I am using webhostingpad as my server service with ...
0
votes
0answers
13 views

Postfix mail works from server to google but from website php mail code error and works after lampp restart

Lampp, mysql, postfix dovecot and sasl already started and website is working. Postfix mail also works from server to gmail and from gmail to server. But php mail from website gives error but works ...
0
votes
0answers
34 views

PHP mail() - change sender email adress

My site is host by proserwer.pl. When I try send mail to gmail.com like that: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; ...
-3
votes
2answers
28 views

How to check weather mail has gone to inbox or to spam folder? [on hold]

I am creating a program using php to send mail . can i check the mail which i sent has gone to inbox or to spam folder to the recipient?

15 30 50 per page