The mail() function allows you to send e-mail in PHP.

learn more… | top users | synonyms

1
vote
1answer
38 views

How do I submit a form without refreshing the current page?

I have a fairly basic email form <form name="contactform" method="post" action="send_email.php" id="email_form"> <div class="ContactHeaders">Name</div> <input type="text" ...
-3
votes
2answers
62 views

php email getting an error [on hold]

Im trying to make a PHP mail form, but it keeps returning an error that email can't be send can some one tell me what is wrong with my code? or am i doing something wrong? if($_POST['submit']) { ...
-3
votes
1answer
34 views

PHP Mail ending up in SPAM? [closed]

I used phpmailer a while ago and everything was going fine. It's SMTP feature suddenly stopped working and so I change the mail function to this: $to = $this->toAddress; $subject = ...
0
votes
2answers
44 views

Unable to send php email with text content

I am unable to send the mail using mail function in php. My email has around 15 lines of text in the message with images. I tried removing the text and sending the message it sends successfully. Is ...
0
votes
5answers
34 views

PHP mail function is not working for Webform

Below is the Webform PHP code I used for e-mail function. After I click the SUBMIT button in the form, I am successfully getting redirected to the thankyou.html page but I don't get any e-mail to my ...
-1
votes
1answer
85 views

Mail Not being delivered to gmail

I am using PHP mail function to send mail, Its getting delivered to all other mail servers but not gmail. Here is my headers $headers = "From: Somename<[email protected]>\r\n"; $headers .= ...
4
votes
0answers
17 views

DKIM SPF passes but mail goes to Spam Received: (from abc@localhost)

I am facing an issue with the DKIM setup. We are sending newsletters which are going to spam in gmail. The dkim & spf passes. Even the reverse dns is setup properly. Below is a copy of mail ...
0
votes
0answers
31 views

Porto Theme - PHPMail on Windows VPS

So, I purchased a theme from themeforest (HTML). On the contact us page is a contact form to fill out. The instructions for the theme says to change one line in the php code of the address you want ...
0
votes
0answers
29 views

Sending email via PHP from localhost [duplicate]

I am trying to send email using PHP’s mail(), but looks like I can't do that on localhost. Is there anything I can do to set up this to work on my Mac 10.6?
0
votes
3answers
29 views

Imap_email - send php variables in message

I'm send an email for a user, i make a query: $consulta = mysql_query("SELECT * FROM users WHERE email = '$emailDestinatario'"); if($consulta === FALSE) { (header('Location: ...
0
votes
2answers
23 views

PHPMail - can I send two unique emails

I'm using PHPMailer to successfully send an email upon a webform submission (so just using basic post data, no mysql databases or any lookups). What I need to do is send two seperate emails, one ...
0
votes
8answers
52 views

How to insert an image in php mail?

How can I insert an image in a php mail form? I have this code: $headers = 'MIME-Version: 1.0' . "\n"; $headers .='Content-Type: text/html; charset="UTF-8"'."\n"; $headers .='From: ...
0
votes
0answers
11 views

How to mail all order details row in a single mail

Below is my code that is posting data to database, there i insert a php mail function to send mail while posting data. everything is working. But what happen this a accounting software from ...
0
votes
1answer
56 views

Variable “to” address in PHP Mailer

I am trying to set the "to" address for an email sent via an html form utilizing phpmailer. The end goal is to utilize a droplist to let the user select which person they are contacting depending on ...
0
votes
1answer
75 views

sent mail succed on my machine but failed the server using phpmailer

<?php date_default_timezone_set('America/Toronto'); require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded ...
0
votes
0answers
28 views

Using ini_set in PHP file

I just asked this question here regarding sending email from Windows server. Got the answer that the php.ini file has to be configured. After reading a little bit more, I found out about ini_set() ...
0
votes
2answers
28 views

Sending PHP mail from Windows server

I have a form on my page. When the user hits the Send button - it's supposed to send an email with the details he entered in the form. Up until recently the form was hosted on a Linux server and I had ...
-2
votes
4answers
50 views

php email script doesn't work

I have this script: <?php $to1 = $_GET["number"]; $to2 = $_GET["at"]; $subject = $_GET["sub"]; $message = $_GET["message"]; $from = "[email protected]"; $headers = ...
0
votes
1answer
44 views

Error in HTML setting of PHP mail function

Hi I have write a script to fetch data from MySQL and mail that. I am using HTML content type my problem is with output HTML content formatting Here is my code <?php ...
-1
votes
2answers
50 views

PHP Mail and SQL [closed]

Can anyone see a problem with the below code? Thanks in advance, Dan. $sql = mysqli_query("SELECT * FROM tablename.all_customers WHERE Account Ref = '$accno1'"); $row = mysqli_fetch_array($sql); ...
0
votes
2answers
32 views

Php mail function giving “Error 550:sender is spammer” error?

This is my php code: $to = $email; $subject = "Email Confirmation"; $message="<h1>Welcome to asdasd.</h1>"; $message .= "<br /><br ...
-1
votes
1answer
37 views

PHP mail MMS attaching image not working

Hello guys I am working on webapplication for sending multimedia messages upon user input of their phone numbers. I am successfully able to send emails with images in HTML form. Now, I am trying to ...
0
votes
0answers
26 views

Awardspace Email Setting

I got a Award Space Mail Hosting account.I created that account only for the free email sending feature. Tried PHP mailer swiftmailer ect.. But no use.Can anyone give me a full working code of php ...
0
votes
1answer
44 views

php email script not working correctly

I have a form on my website: <form name="contact" action="contact.php" method="post"> <label for="name">Name:</label><br/><input type="text" name="name" ...
0
votes
1answer
56 views

Why php mail has delay when sending message with images

I was building a email functionality for my website and I am using PHP mail function. The issue I am having is that when I try to email a client with a image inside a message it takes forever(20-45 ...
0
votes
0answers
38 views

Joomla Proforms Basic Form sends no email

We use 1&1-Server and installed Joomla. There we want to use forms. I have installed Proforms Basic Forms. I also wrote the email adresses to be sent. But we don't get any emails. I tried smtp und ...
0
votes
0answers
38 views

php mail() not working in godaddy server?

i am using php mail() in my website for sending mails and its not working when sending mails getting error "mail() used miss matched parameters" and my server is godaddy. the code is given below. ...
0
votes
0answers
45 views

Headers in PHPmailer

I am using phpmailer for sending messages. Iam receiving following in header of the messages .. Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please ...
0
votes
3answers
38 views

how do i add custom fields to a php email script

I am attempting to make a simple php form mail. all im after is an email that has looks Name: joe blogs Email: [email protected] Message: anything. Answer 1: Red Answer 2: green Answer 3: Blue in ...
0
votes
0answers
41 views

mail() sending multiple copies [closed]

I've recently been working on a new project that is building new functionality behind an existing custom-built CMS (which was built 4 years ago by a completely different team). Everything went fine ...

1 2 3 4 5 12
15 30 50 per page