Jump to content

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: INFO@blah.COM

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

146

 

km@blahblah.com

 

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: auto@mailer.com");


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.