Jump to content

mail() function!


ShaKeD

Recommended Posts

[quote author=ShaKeD link=topic=108179.msg434920#msg434920 date=1158331463]
this is my code ...
[/quote]

And that's different from what you posted to start this thread.  Instead of posting one or two lines of code, post anything that relates to the construction of headers and variables that end up in the mail() function.
Link to comment
Share on other sites

ok so I`m using mbot plugin for miranda, this plugin give you to bulid things with php and use them on the miranda, so I have start to work on script that sends emaill throw miranda..
so I did this function :
function dlg_callback($ok,$param)
{
  if($ok == 0)return 1; //cancel or close

  $dlg = mb_DlgGet();
  $user =  mb_DlgGetText($dlg,1000);
  $subject = mb_DlgGetText($dlg,1002);
  $message = mb_DlgGetText($dlg,1004);
  $headers = "From: <email>\r\nReply-To: email";
  if($subject != "" && $message != ""){
    mail($user,$subject,$message,$headers);
    mb_msgbox("your message has been sent to ".$user);
    return 1;
  }else{
    mbox("you must use the subject and message body both.");
    return 0; //if you want to finish the dialog return "end";
  }
}

I checked if I get somthing in $message,$subject and $user and I did, I got everything I need
for ex. :
$user = myemail@gmail.com
$subject = hey whats up!
$message = this is a test

the problem the I don't get any mail at all..

what can I do ?

10x :)
Link to comment
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.