/    Sign up×
Community /Pin to ProfileBookmark

How can I avoid this error ?

I am getting this message attached to the emails that my website sends out.

[QUOTE]

The sender of this message, [email][email protected][/email], could not be verified by Sender ID. Learn more about Sender ID.

[/QUOTE]

I am using this code:

[code=php]// multiple recipients
$to = $friend_email;

// subject
$subject = “Urgent message from $sender_name”;

// To send HTML mail, the Content-type header must be set
$headers = “MIME-Version: 1.0 rn”;
$headers .= “Content-type: text/html; charset=iso-8859-1 rn”;

// Additional headers
$headers .= “From: $sender_name. <$sender_email> rn”;

// Mail it
mail($to, $subject, $messageX, $headers);[/code]

The $sender_name. and $sender_email variables are entered by the user.

The mail almost always goes to the junk folder (in MSN)
Is there anyway to improve this ?

How can I send valid Sender ID ?

Many thanks.

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guySep 18.2006 — What it does is checks the server where the email actually came from compared to where you said the email came from (yodbod [at] hotmail [dot] com) [url=http://www.microsoft.com/mscorp/safety/technologies/senderid/overview.mspx]more information[/url]
Copy linkTweet thisAlerts:
@DaveinLondonauthorSep 18.2006 — I see...

My website offers a "tell your freinds" form which then send the email.

I could put my website as the sender -

I guess that would fix it.

But then the receiver would not be able to reply with the reply button.

Still I can just display the email address and they can cut 'n' paste it if they want to.

Guess its better for them to get the message than not ?

What do you think ?

Any better solutions ?

Thanks
Copy linkTweet thisAlerts:
@bathurst_guySep 18.2006 — There is also a reply-to variable that you can set. So its sent from [email][email protected][/email] but hitting reply replies it to [email][email protected][/email]

What do you use to send the email? php mail() function?
Copy linkTweet thisAlerts:
@DaveinLondonauthorSep 18.2006 — That sounds good ! ?

Yes I am using mail() - see posted code in first post.

I am thinking of changing the header to:

$headers .= "From: $sender_name <[email protected]> rn";

so at least the name will be in there ( or they might not open the email)

I guess that it is the last bit that is checked ( between the < and > ) ??

How do I code the "reply" param ?

Thanks.
Copy linkTweet thisAlerts:
@bathurst_guySep 18.2006 — just add:$headers .= 'Reply-To: [email protected]' . "rn" into the headers, this is from the example in the online PHP manual

[url=http://php.net/manual/en/function.mail.php]PHP Mail function[/url] for reference
Copy linkTweet thisAlerts:
@DaveinLondonauthorSep 18.2006 — Thanks

Its working -- I don't get the warning any more - ?

BUT

I still get it in the trash can !

I modified some words eg the free:

[CODE]Fr.ee, full page advertising for: Accomodation, Events, Local Services, Recruitment,<br>
Cars, Motorbikes, Boats, a Pets Corner and also a Classified section for household items. <br><br>
All advertisements are full page, last for FOUR weeks and can be sorted by location,<br>
value and type. You can place an advert in this friendly, efficient web-site very easily <br>
- and best of all ... its completely fre.e!<br><br>[/CODE]


but it still goes in the can ?

My code now look like this:

[code=php]// multiple recipients
$to = $friend_email;

// subject
$subject = "Urgent message from $sender_name";

// To send HTML mail, the Content-type header must be set
$headers = "MIME-Version: 1.0 rn";
$headers .= "Content-type: text/html; charset=iso-8859-1 rn";

// Additional headers
$headers .= "From: $sender_name <[email protected]> rn";
$headers .= "Reply-To: $sender_email rn";

// Mail it
mail($to, $subject, $messageX, $headers);[/code]


Any more ideas ?

Thanks again .
Copy linkTweet thisAlerts:
@bathurst_guySep 18.2006 — Hmm I can't really help much with that, I don't know how the hotmail junk mail filter works. But I guess you are on the right track - you just have to make it appear less spammy. Maybe make it sould more like a formal letter. Try something like this:


_________

Dear Valued Customer,

Our Company is currently offering full page advertising in our user friendly website at absolutely no cost. If you would like to take advantage of this offer, please reply to this email stating the category that you would like to place your ad in from the following options:
[list]
  • [*]Accomodation

  • [*]Events

  • [*]Local Services

  • [*]Recruitment

  • [*]Cars

  • [*]Motorbikes

  • [*]Boats

  • [*]Pets Corner or

  • [*]Classified section for household items

  • [/list]

    All advertisements are full page and have a duration of four weeks. If you require any further information on this offer, please reply.

    Best Regards,

    Marketing Team.
    Copy linkTweet thisAlerts:
    @DaveinLondonauthorSep 18.2006 — That's Brilliant !

    I shall try it.

    It looks better anyway ?
    ×

    Success!

    Help @DaveinLondon spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...