Jump to content

email "missing or malformed local part"


dolcezza

Recommended Posts

I have a email auth script that is working "sometimes". Whe I test it personally, it goes through fine, but my client claims she and some other people aren't able to activate or aren't getting emails.

I noticed some of these on her server email:

A message that you sent contained a recipient address that was incorrectly

constructed:

 

  From:  missing or malformed local part (expected word or "<")

 

The message has not been delivered to any recipients.

 

------ This is a copy of your message, including all the headers. ------

 

 

To: [email protected]

Subject: A new member has signed up for caregivingsocal.com. Their info is as follows:

146

 

[email protected]

 

Posting only part of code:

 

<?php
$name = $first . ' ' . $lastname;
$actkey = mt_rand(1, 500).'f78dj899dd';
$act = sha1($actkey);

$query = mysql_query("INSERT INTO mem (firstname, lastname, username, user_password,  user_email, user_county, user_phone, Actkey, date) VALUES ('$firstname', '$lastname', '$username','$user_password', '$user_email','$user_county', '$user_phone', '$act', '$date')") or die(mysql_error());
$send = mail($user_email , "Registration Confirmation" , "Thank you for registering with Blah.com.\n\nYour username and password is below, along with details on how to activate your account.\n\nUser: ".$username."\n\nClick the link below to activate your account:\nhttps://www.blah.com/activate.php?id=".$act."\n\nPlease do not reply, this is an automated mailer.\n\nThanks", "FROM: [email protected]");


if(($query)&&($send))
{

echo ' <html>
<head>
<title>Success</title>
<link href="style3.css" rel="stylesheet" type="text/css">
</head>
?>

Link to comment
https://forums.phpfreaks.com/topic/87939-email-missing-or-malformed-local-part/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.