[OT] Phpmail

Hola a todos, resulta que hice un formulario en php para que
enviara correos
a ciertos destinatarios enviando la informacion detallada en
el form....
La probe en un servidor de test que tengo y ningun problema,
pero cuando la
entregue a mi cliente y la subio en su servidor no les
funciono....
Alguien sabe a que se debe esto...??
Agradeceria su ayuda...
Gracias.

gracias de todas formas, los del hosting son unos ineptos, no
me dan ninguna
solucion, seguire probando....
"Lolita" <[email protected]> escribi� en el
mensaje
news:[email protected]...
> Si est�s utilizando formmail.php prueba a
cambiarle el nombre; hay algunos
> servidores que lo bloquean s�lo por eso.
>
>
>
> Julio B. escribi�:
>> Sigues sin dar un dato �til, bueno... ya
sabemos que el servidor es
>> linux; si t� dices que tu c�digo
est� bien pues vale, me lo creo.
>> Entonces el problema est� en el hosting, y no
veo el motivo de preguntar
>> aqu� cuando lo deber�as estar haciendo
a los administradores del hosting
>> para que revisen la configuraci�n.
>>
>> Saludos,
>>
>> Julio Barroso
>>
>> "Pablo Calder�n C"
<[email protected]> escribi� en el mensaje
>> news:[email protected]...
>> | Los servidores son linux, pero no los manejo ni
los monte o mismo, son
>> los
>> | que ofrece un hosting. Resulta que en mi hosting
la funcion funciona
>> super
>> | bien, pero en el hosting de mi cliente no
funciona, y no se cual es el
>> | motivo.......
>> |
>> | se que el codigo esta bien hecho, pues funciona en
mi hosting, de ser
>> malo
>> | no funcionaria en ninguno....
>> |
>> | lo que no se es si esxiste alguna configuracion o
requerimiento para
>> que
>> | funciones bien, para asi poder hablar con los
due�os del hosting y que
>> | revisen si esa configuracion esta bien....
>> |
>> | "Lolita" <[email protected]> escribi�
en el mensaje
>> | news:[email protected]...
>> | >A ver si su servidor va a ser windows. Que no
ser�a el primero.
>> | >
>> | > Me apuesto 10 cacahuetes a que s�.
>> | >
>> | >
>> | > Julio B. escribi�:
>> | >> NPI. Como no des m�s
informaci�n... es que la carrera de vidente aun
>> no
>> | >> la he terminado...
>> | >>
>> | >> Saludos,
>> | >>
>> | >> Julio Barroso
>> | >>
>> | >> "Pablo Calder�n C"
<[email protected]> escribi� en el
>> mensaje
>> | >>
news:[email protected]...
>> | >> | Hola a todos, resulta que hice un
formulario en php para que
>> enviara
>> | >> correos
>> | >> | a ciertos destinatarios enviando la
informacion detallada en el
>> | >> form....
>> | >> | La probe en un servidor de test que
tengo y ningun problema, pero
>> | >> cuando la
>> | >> | entregue a mi cliente y la subio en su
servidor no les
>> funciono....
>> | >> | Alguien sabe a que se debe esto...??
>> | >> | Agradeceria su ayuda...
>> | >> | Gracias.
>> | >> |
>> | >> |
>> |
>> |

Similar Messages

  • How to send an entire HTML, PHP dynamic page using phpmail()?

    How to send an entire HTML, PHP dynamic page using phpmail()
    from PHP website, similar to mail this page or send to a friend
    link?

    Hello,
    Please change the mail address
    "info[at]furkids[dot]co[dot]za" from this thread ^^^look above^^^
    to "[email protected]"
    Thank you

  • [ot] problemas phpmailer

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0013_01C6E267.3BD32500
    Content-Type: text/plain;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    Alguien sabe como enviar los e-mails con phpmailer pero
    recogidos =
    previamente de MySQL ?
    Gracias
    Lucas Sevilla
    www.lucassevilla.info
    www.gestproyect.info=20
    ------=_NextPart_000_0013_01C6E267.3BD32500
    Content-Type: text/html;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Dwindows-1252">
    <META content=3D"MSHTML 6.00.2900.2963"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3D"Trebuchet MS" size=3D2>Alguien
    sabe como enviar los =
    e-mails con=20
    phpmailer pero recogidos previamente de MySQL
    ?</FONT></DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2>Gracias</FONT></DIV>
    <DIV>
    <P>Lucas Sevilla</P>
    <P><A =
    href=3D"
    http://www.lucassevilla.info">www.lucassevilla.info</A></P>
    <P><A href=3D"
    http://www.gestproyect.info">www.gestproyect.info</A>=20
    </P></DIV></BODY></HTML>
    ------=_NextPart_000_0013_01C6E267.3BD32500--

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0012_01C6E23B.1A33AD60
    Content-Type: text/plain;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    Lucas creo que el link que te envie hace dias sobre
    phpmailer() tenia un =
    ejemplo... igual, yo tengo uno... lo busco y te lo envio.
    Salu2
    Daniel Naranjo
    Lo =DAltimo Group, C.A.=20
    (58+) 416 2917532
    (58+) 414 7962406
    (58+) 295 2630298 (Fax)
    www.loultimoenlaweb.com
    www.loultimoenhosting.com
    "Lucas Sevilla" <[email protected]> escribi=F3
    en el mensaje =
    news:[email protected]...
    Alguien sabe como enviar los e-mails con phpmailer pero
    recogidos =
    previamente de MySQL ?
    Gracias
    Lucas Sevilla
    www.lucassevilla.info
    www.gestproyect.info=20
    ------=_NextPart_000_0012_01C6E23B.1A33AD60
    Content-Type: text/html;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Dwindows-1252">
    <META content=3D"MSHTML 6.00.2900.2963"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DVerdana size=3D2>Lucas creo que
    el link que te envie =
    hace dias=20
    sobre phpmailer() tenia un ejemplo... igual, yo tengo uno...
    lo busco y =
    te lo=20
    envio.</FONT></DIV>
    <DIV><FONT face=3DVerdana
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>Salu2</FONT></DIV>
    <DIV>
    <P></P>
    <P><FONT face=3D"Arial, Helvetica, sans-serif"
    size=3D2><STRONG>Daniel=20
    Naranjo</STRONG><BR>Lo =DAltimo Group, C.A.
    </FONT><BR><FONT=20
    face=3D"Arial, Helvetica, sans-serif" size=3D1>(58+) 416 =
    2917532<BR>(58+) 414=20
    7962406<BR>(58+) 295 2630298 (Fax)<BR><A=20
    href=3D"
    =20
    href=3D"
    FONT></P></DIV>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
    5px; =
    BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV>"Lucas Sevilla" &lt;<A=20
    =
    href=3D"mailto:[email protected]">[email protected]</A>&gt;=
    =20
    escribi=F3 en el mensaje <A=20
    =
    href=3D"news:[email protected]">news:efealj$enf$1@forums=
    .macromedia.com</A>...</DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2>Alguien sabe como enviar los =
    e-mails con=20
    phpmailer pero recogidos previamente de MySQL
    ?</FONT></DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2>Gracias</FONT></DIV>
    <DIV>
    <P>Lucas Sevilla</P>
    <P><A =
    href=3D"
    http://www.lucassevilla.info">www.lucassevilla.info</A></P>
    <P><A href=3D"
    http://www.gestproyect.info">www.gestproyect.info</A>=20
    </P></DIV></BLOCKQUOTE></BODY></HTML>
    ------=_NextPart_000_0012_01C6E23B.1A33AD60--

  • OT: Dudas con PhpMailer

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0006_01C7031C.8EB9FE30
    Content-Type: text/plain;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    Alguien sabe como personalizar el mail que llega a cada
    cliente/a para =
    que le llegue personalizado con el t=EDpico "Estimado/a ..."
    Gracias
    Lucas Sevilla
    www.lucassevilla.info
    www.gestproyect.info=20
    ------=_NextPart_000_0006_01C7031C.8EB9FE30
    Content-Type: text/html;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Dwindows-1252">
    <META content=3D"MSHTML 6.00.2900.2963"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3D"Trebuchet MS" size=3D2>Alguien
    sabe como personalizar =
    el mail que=20
    llega a cada cliente/a para que le llegue personalizado con
    el t=EDpico=20
    "Estimado/a ..."</FONT></DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3D"Trebuchet MS"
    size=3D2>Gracias</FONT></DIV>
    <DIV>
    <P>Lucas Sevilla</P>
    <P><A =
    href=3D"
    http://www.lucassevilla.info">www.lucassevilla.info</A></P>
    <P><A href=3D"
    http://www.gestproyect.info">www.gestproyect.info</A>=20
    </P></DIV></BODY></HTML>
    ------=_NextPart_000_0006_01C7031C.8EB9FE30--

    This is a multi-part message in MIME format.
    ------=_NextPart_000_002D_01C70317.93E2BD70
    Content-Type: text/plain;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    Aqui te dejo un ejemplo. Salu2. DN
    <?php=20
    require("class.phpmailer.php");
    $mail =3D new phpmailer();
    $mail->From =3D "tu correo";
    $mail->FromName =3D "Daniel";
    $mail->Host =3D "el servidor stmp";
    $mail->Mailer =3D "smtp";
    $mail->ConfirmReadingTo =3D "tucorreo";
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("destinos") or die(mysql_error());
    $sql=3D"SELECT * FROM boletin";
    $result=3Dmysql_query($sql) or die(mysql_error());
    while ($row =3D mysql_fetch_array ($result))
    // HTML body
    $body =3D "Hello <font size=3D\"4\">" . $row["email"]
    . "</font>, =
    <p>";
    $body .=3D "<i>Your</i> personal photograph to
    this message.<p>";
    $body .=3D "Sincerely, <br>";
    $body .=3D "phpmailer List manager";
    // Plain text body (for mail clients that cannot read HTML)
    $text_body =3D "Hello " . $row["email"] . ", \n\n";
    $text_body .=3D "Your personal photograph to this
    message.\n\n";
    $text_body .=3D "Sincerely, \n";
    $text_body .=3D "phpmailer List manager";
    $mail->Body =3D $body;
    $mail->AltBody =3D $text_body;
    $mail->AddAddress($row["email"], $row["email"]);
    $mail->AddStringAttachment($row["photo"],
    "YourPhoto.jpg");
    if(!$mail->Send())
    echo "There has been a mail error sending to " .
    $row["email"] . =
    "<br>";
    // Clear all addresses and attachments for next loop
    $mail->ClearAddresses();
    $mail->ClearAttachments();
    ?>
    Daniel Naranjo
    Lo =DAltimo Group, C.A.=20
    (58+) 416 2917532
    (58+) 414 7962406
    www.loultimoenlaweb.com
    www.loultimoenhosting.com
    "Lucas Sevilla" <[email protected]> escribi=F3
    en el mensaje
    ------=_NextPart_000_002D_01C70317.93E2BD70
    Content-Type: text/html;
    charset="Windows-1252"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Dwindows-1252">
    <META content=3D"MSHTML 6.00.2900.2963"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DVerdana size=3D2>Aqui te dejo
    un ejemplo. Salu2. =
    DN</FONT></DIV>
    <DIV><FONT face=3DVerdana
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>&lt;?php=20
    <BR>require("class.phpmailer.php");<BR>$mail =3D
    new=20
    phpmailer();<BR>$mail-&gt;From    
    =3D "<A=20
    href=3D"mailto:[email protected]">tu =
    correo</A>";<BR>$mail-&gt;FromName =3D=20
    "Daniel";<BR>$mail-&gt;Host    
    =3D "el servidor=20
    stmp";<BR>$mail-&gt;Mailer  
    =3D=20
    "smtp";<BR>$mail-&gt;ConfirmReadingTo  
    =3D =
    "tucorreo";</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>mysql_connect("localhost", "root", =
    "") or=20
    die(mysql_error());<BR>mysql_select_db("destinos")
    or=20
    die(mysql_error());</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DVerdana size=3D2>$sql=3D"SELECT
    * FROM=20
    boletin";<BR>$result=3Dmysql_query($sql) or =
    die(mysql_error());</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DVerdana size=3D2>while ($row
    =3D mysql_fetch_array=20
    ($result))<BR>{<BR>   
    // HTML body<BR>    =
    $body  =3D "Hello &lt;font size=3D\"4\"&gt;"
    . $row["email"] . =
    "&lt;/font&gt;,=20
    &lt;p&gt;";<BR>   
    $body .=3D "&lt;i&gt;Your&lt;/i&gt; =
    personal=20
    photograph to this
    message.&lt;p&gt;";<BR>   
    $body .=3D=20
    "Sincerely,
    &lt;br&gt;";<BR>    $body
    .=3D "phpmailer =
    List=20
    manager";<BR>    // Plain
    text body (for mail clients =
    that cannot=20
    read HTML)<BR>   
    $text_body  =3D "Hello " . =
    $row["email"] .=20
    ", \n\n";<BR>    $text_body
    .=3D "Your personal =
    photograph to this=20
    message.\n\n";<BR>   
    $text_body .=3D "Sincerely,=20
    \n";<BR>    $text_body .=3D
    "phpmailer List =
    manager";</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>   =20
    $mail-&gt;Body    =3D
    $body;<BR>   =20
    $mail-&gt;AltBody =3D
    $text_body;<BR>   =20
    $mail-&gt;AddAddress($row["email"], =
    $row["email"]);<BR>   =20
    $mail-&gt;AddStringAttachment($row["photo"], =
    "YourPhoto.jpg");</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>   =20
    if(!$mail-&gt;Send())<BR>       
    echo =
    "There=20
    has been a mail error sending to " . $row["email"] . =
    "&lt;br&gt;";</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>    // Clear all =
    addresses and=20
    attachments for next
    loop<BR>   =20
    $mail-&gt;ClearAddresses();<BR>   =20
    $mail-&gt;ClearAttachments();<BR>}<BR>?&gt;</FONT></DIV>
    <DIV>
    <P></P>
    <P><FONT face=3D"Arial, Helvetica, sans-serif"
    size=3D2><STRONG>Daniel=20
    Naranjo</STRONG><BR>Lo =DAltimo Group, C.A.
    </FONT><BR><FONT=20
    face=3D"Arial, Helvetica, sans-serif" size=3D1>(58+) 416 =
    2917532<BR>(58+) 414=20
    7962406<BR><A=20
    href=3D"
    =20
    href=3D"
    FONT></P></DIV>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
    5px; =
    BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV>"Lucas Sevilla" &lt;<A=20
    =
    href=3D"mailto:[email protected]">[email protected]</A>&gt;=
    =20
    escribi=F3 en el mensaje
    </DIV></BLOCKQUOTE></BODY></HTML>
    ------=_NextPart_000_002D_01C70317.93E2BD70--

  • Mail bounces when sent from command-line, works from PHPMailer, Mail.app

    Recently, any mail send from the command-line (manually, or via automated scripts) is getting rejected. However, messages composed with, say, PHPMailer are getting through. One thing I notice about the bounced messages is that there's no user/sender recorded. Here's a snippet of the log:
    Sep 28 16:45:32 ns postfix/pickup[3275]: 64F57343FF2: uid=501 from=<admin>
    Sep 28 16:45:32 ns postfix/cleanup[6126]: 64F57343FF2: message-id=<[email protected]>
    Sep 28 16:45:32 ns postfix/qmgr[3276]: 64F57343FF2: from=<[email protected]>, size=627, nrcpt=1 (queue active)
    Sep 28 16:45:35 ns postfix/smtp[6130]: 64F57343FF2: to=<[email protected]>, relay=mx.metropolis.ca[65.254.254.57], delay=3, status=sent (250 2.0.0 tylR1X05q2fRSSh0000000 mail accepted for delivery)
    Sep 28 16:45:35 ns postfix/qmgr[3276]: 64F57343FF2: removed
    Sep 28 16:45:54 ns postfix/pickup[3275]: 0A7BB343FFF: uid=501 from=<admin>
    Sep 28 16:45:54 ns postfix/cleanup[6126]: 0A7BB343FFF: message-id=<20070928224554.0A7BB343FFF@mail>
    Sep 28 16:45:54 ns postfix/qmgr[3276]: 0A7BB343FFF: from=<[email protected]>, size=423, nrcpt=1 (queue active)
    Sep 28 16:45:54 ns postfix/smtp[6130]: 0A7BB343FFF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for gpspolice.net loops back to myself)
    The failure reason given "mail for ... loops back to myself" doesn't seem right, since I haven't changed the DNS settings on this machine.
    You'll notice, the message that is sent has the from= address specified, whereas the other two failed examples don't... I'm not really sure why this is failing all of a sudden. Telus, one of our ISPs, is infamous for quietly making major network policy changes (e.g., blocking port 25 for all outgoing business customers). Any suggestions, or a link to a good SMTP mail server (a la OS X server) tutorial would be appreciated. Thanks.
    ...Rene

    David_x wrote:
    David_x wrote:
    Can you explain why you need any zones in your DNS apart from your own?
    OK, I read a previous post from you which explains your internal setup (mini & xserve), so you are using internal domains for web stuff with your local DNS based on your xserve. I presume your mini is using the xserve for DNS? So although I am not entirely clear about everything that is going on, I'll presume you do need these domains in your xserve...
    Yes, that's all correct. The Xserve does runs DNS, Web and Mail Services, the Mini just runs a couple web sites (on port 8080, fwiw).
    If an external mail server is responsible for a domain which you have in your internal DNS then you have to mirror the public MX records in your local DNS. How MX records work...
    This is what I've done in the DNS Services, I believe...
    For the domain gpspolice.net, your mini will ask your xserve for the MX record. This will resolve to a host name - in the public DNS this is "mail.gpspolice.net". Your mini will then ask your xserve to resolve this host name - in the public DNS this is "209.200.253.29". So ideally, you should have these two records (MX record= mail.gpspolice.net, plus "A" record for mail.gpspolice.net = 209.200.253.29) in your xserve dns. You may get away with using a different MX host name as long as the final IP is the same but better if exactly mirrors public DNS records.
    -david
    I think I've done what you've said, and still certain messages don't get sent out. Basically, any message bound for a .baseloc.net domain doesn't get sent. Here's an example of one message that get's stuck in the queue, along with the console log:
    Message ID: 46A1435234C
    Date: Wed Oct 3 09:57:17
    Size: 11009
    Sender: [email protected]
    Recipient(s) & Status:
    [email protected]:
    temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_
    Oct 3 21:00:07 ns postfix/pipe[21091]: 46A1435234C: to=<[email protected]>, relay=cyrus, delay=39770, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )
    I have to say, I really appreciate your help. It's helping me understand the proper approach. Anyway, if there's any other information I can provide to help you [help me], please let me know. Thanks again.
    ...Rene

  • Problem with phpmailer script

    I made a form in Flash AS3. With 5 input text (name, email, bla, blab, bla) and a button that sends me to a php file email.php. I'm using phpmailer for making the form. I have already download the class.phpmailer.php and class.smtp.php files; and i copy the script from internet. But it isn`t working. Can anyone help me please? I will aprecciate so much ur help and time.
    <?
    $name=$_POST ['nom'];
    $email=$_POST ['email'];
    $enterprise=$_POST ['empresa'];
    $topic=$_POST ['motivo'];
    $message=$_POST ['mensaje'];
    require 'class.phpmailer.php';
    require 'class.smtp.php'; //incluimos la clase para envíos por SMTP
    $mail = new PHPMailer();
    $mail->IsSMTP();
    $mail->CharSet = 'UTF-8';
    $mail->SMTPAuth = true;
    $mail->SMTPSecure = "ssl";
    $mail->Host       = "smtp.gmail.com";
    $mail->Port       = 465;
    $mail->Username = "********@gmail.com";
    $mail->Password = "********";
    $mail->SetFrom($_POST[email],$_POST[nom]);
    $mail->AddAddress("********@gmail.com", "Fiorella");
    $mail->Subject = "Formulario de Contacto";
        $mail->MsgHTML('$_POST[mensaje]');//cuerpo con h
    if(!$mail->Send()) {//finalmente enviamos el email
       echo $mail->ErrorInfo;//si no se envía correctamente se muestra el error que ocurrió
    } else {
       echo 'Correo enviado correctamente';
    ?>
    Message was edited by Jochem van Dieten to remove username / password

    Check this
    http://www.darshanrane.com/blog/?p=167
    http://darshanrane.com

  • Sending Email using both HTML and plain text

    I could use some advise on how to start researching email for
    both HTML and plain text messages.
    I have a script called class.phpMail.php, but the code is
    alittle advanced for me. Basically I can't get
    it to work on my server and I don't know where to begin the
    learning process here.
    I talked to my provider, "HOST" company goDaddy.com and I was
    told that to connect so that I could send email I would need this
    line of code. They didn't say it should by in my php.ini file but
    that was where I found it.
    SMTP = relay-hosting.secureserver.net
    This is the smtp address that my provider uses to make the
    connection with my mail client.
    I was told that with this line of code I would not need a
    password or username
    I did some further reseach and I found an article that stated
    that my original error:
    Warning: fsockopen() expects parameter 2 to be long, string
    given in ...../php/class.smtp.php on line 105
    was being caused by this code because the $port value needed
    to be between 1 - 65365:
    $this->smtp_conn = fsockopen($host, # the host of the server
    $port, # the port to use ----- "this is line 105"
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    In particular the $port value was coming in corrupted and
    that I needed to cast it.
    I did as they suggested and made it an (int) as they
    suggested.
    $this->smtp_conn = fsockopen($host, # the host of the server
    (int)$port, # the port to use
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    It resolved part of the error message however, the other half
    of the error message is shown below:
    Message could not be sent.
    Mailer Error: Language string failed to load: connect_host
    What exactly is the connect_host they refer to in this
    message?
    Would it be the string in my php.ini file refering to the
    SMTP = relay-hosting.secureserver.net
    I have allot of what I think are disconnected questions as I
    really have just begun to work
    with the mail() function. If anyone has the time to educate
    this newbie into the wonderful
    world of email() I would appreciate it.
    Thank You
    Kevin Raleigh

    Sorry to dig up an old post, but we've spent the last few days trying to work out why an email campaign being sent from BC is going into the Junk folder of recipients that use MS Exchange. We've fixed quite a lot of issues, including the fact that Legacy Templates have random JS injected just before they get sent, so we had to switch to the new template system. We've narrowed the issue down to one of three things:
    1. A missing alt tag on the tracking image that BC drops into the email (pretty unlikely)
    2. The BC Europe IP (54.240.14.45) is blacklisted here: UCEPROTECTL2 (possible, but if you actually look it's not the IP itself, but another IP on the same network, so unlikely)
    3. The fact that the HTML email has no text component.
    I agree, BC is late on this but I think that it needs to be added, even if most users have HTML-ready email clients, spam checkers do seem to prefer multi-MIME emails.
    This is backed up by the following SpamAssassin rule, which we are currently unable to resolve:
    -1.105
    MIME_HTML_ONLY
    Message only has text/html MIME parts
    You should also include a text version of your message (text/plain)
    So in my opinion, BC do still need to add this as a feature, otherwise the system is not viable for our customers and we'll have to look elsewhere.

  • Site messed up after adding Contact form.

    The site is online in its current state: http://www.wientjesvoegwerk.nl/index.html
    The site uses (X)HTML, JAVA, PHP and Spry tabbed panels with a CSS layout.
    The current state has:
    <?php include("mail.php"); ?>
    Before the Doctype, etc.
    <?php $xajax->printJavascript('xajax/'); ?>
    In the header.
    But adding:
    <?php echo '<div id="contact_result">'.$form.'</div>'; ?>
    to the div where i want to put the mailing form results in problems...
    If i add that last line my footer will go up to the header. and i dont know why...
    The new code from the form that messes up the site is marked in red.
    The HTML:
    <?php include("mail.php"); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
         <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
         <title>Wientjes Voegwerk & Renovatie - Home</title>
        <link href="CSS/Style.css" rel="stylesheet" type="text/css" />
         <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
         <link href="CSS/Style.css" rel="stylesheet" type="text/css" />
         <meta http-equiv="Content-Language" content="NL" />
         <meta http-equiv="imagetoolbar" content="no" />
         <meta name="MSSmartTagsPreventParsing" content="true" />
        <meta name="description" content="Wientjes Voegwerk en Renovatie is een voeg- en renovatiebedrijf gespecialiseerd in gevelrenovatie. Dagelijkse werkzaamheden zijn het voegen van nieuwbouwwerk, en alle voorkomende vormen van gevelrenovatie. Ik geef uw woning, garage of schoorsteen de aandacht die het verdient en ben trots op het resultaat van mijn werk!"/>
        <meta name="keywords" content="Voegwerk, Renovatie, Reinigen, Impregneren, Muur, Voegen, Steen, Woning, Garage, Schoorsteen, Bedrijf, Gevel, Wientjes, Uitslijten, Kappen, Fundering, Vorstschade, Metselen, Metselwerk, Vocht" />
        <meta name="author" content="Rob Nijlaan" />
        <?php $xajax->printJavascript('xajax/'); ?>
    </head>
    <body>
    <div id="WContainer">
      <div id="WHeader" align="center">
             <img src="Pictures/VoegenRenLos.png" width="540" height="58" /><br />
        <img src="Pictures/WientLogo.png" width="600" height="136" alt="Wientjes Voegwerk &amp; Renovatie" /></div>
         <div id="TabbedPanels1" class="VTabbedPanels">
              <ul class="TabbedPanelsTabGroup">
             <div class="TabbedPanelsTab" tabindex="0">
              <style>#Home a{display:block;color:transparent;} #Home a:hover{background-position:left bottom;}a#Home {display:none}</style>
              <table id="Home" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Home">
            <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
              </div>
             <div class="TabbedPanelsTab" tabindex="0">
              <style>#Info a{display:block;color:transparent;} #Info a:hover{background-position:left bottom;}a#Info {display:none}</style>
              <table id="Info" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Info">
              <a href="javascript:TabbedPanels1.showPanel(2);" title="Info" style="background-image:url(Buttons/Info.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
              </div>
             <div class="TabbedPanelsTab" tabindex="0">
              <style>#Gallerij a{display:block;color:transparent;} #Gallerij a:hover{background-position:left bottom;}a#Gallerij {display:none}</style>
              <table id="Gallerij" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Gallerij">
              <a href="javascript:TabbedPanels1.showPanel(3);" title="Gallerij" style="background-image:url(Buttons/Gallerij.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
            </div>
              <div class="TabbedPanelsTab" tabindex="0">
              <style>#Contact a{display:block;color:transparent;} #Contact a:hover{background-position:left bottom;}a#Contact {display:none}</style>
              <table id="Contact" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Contact">
              <a href="javascript:TabbedPanels1.showPanel(4);" title="Contact" style="background-image:url(Buttons/Contact.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
            </div>
            <br />
            <br />
            <br />
            <br />
            <br />
            <center><footer>Wientjes Voegwerk en Renovatie<br /><br />
            tel; 06 - 221 464 28<br /><br />kvk;
            </footer></center>
            </ul>
                     <div class="TabbedPanelsContentGroup">
                        <div class="TabbedPanelsContent" id="Home">
                       <h1>Welkom Bij Wientjes Voegwerk en Renovatie!</h1>
          <p>Wientjes Voegwerk en Renovatie is een voeg- en renovatiebedrijf gespecialiseerd in gevelrenovatie.<br />Dagelijkse werkzaamheden zijn het voegen van nieuwbouwwerk, en alle voorkomende vormen van gevelrenovatie.<br />Ik geef uw woning, garage of schoorsteen de aandacht die het verdient en ben trots op het resultaat van mijn werk!<br /><br />Wientjes, J </p>
          <h2>Voegen/Renovatie/Reinigen & Impregneren. </h2>
    <table border="0" align="right"><center><tr><td>
    <a href="Foto/Foto's telefoon1 075.jpg"><img src="Foto/Foto's telefoon1 075.jpg" alt="Muur met Steiger" width="379" height="354" align="right" margin-right="55px"/>
    </a></td></tr><tr><td><center>klik op de foto voor een groter voorbeeld</center></td></tr></center></table>
      <p>Vaak wordt er bij het kopen van een woning weinig aandacht besteed aan het voegwerk. Er wordt alleen gekeken naar hoe een woning is gebouwd.<br />Een voeg bepaalt echter wel het aanzicht van een woning. Van een goed aangebrachte voeg heeft u uiteraard veel langer plezier. <br />Renovatie bestaat voornamelijk uit het uitslijpen of kappen van het oude voegwerk. Waar nodig het verwijderen van scheuren die zijn ontstaan door:</p>
      <ul>
        <li>
          <p>
            Verzakking van de fundering
          </p>
        </li>
        <li>
          <p>
            Slecht voegwerk
          </p>
        </li>
        <li>
          <p>
            Vorstschade
          </p>
        </li>
        <li>
          <p>
            Doorhangen of ontbreken van ...
          </p>
        </li>
      </ul>
      <p>Bij gevelvervuiling van uw woning kunnen er problemen ontstaan die het wooncomfort negatief kunnen beïnvloeden.<br />Wanneer de voeg is aangetast of het metselwerk is door vorstschade beschadigd, kunnen er vochtproblemen in huis ontstaan.<br />Mos en alg hechten zich goed aan beschadigde stenen en voegwerk. <br /><br />Door middel van impregnering wordt een woning waterafstotend gemaakt.<br />Dit betekent dat het voeg- en metstelwerk jarenlang wordt beschermd tegen weersinvloeden. <br />Ook is impregnering beter voor de isolatie van de woning.</p>
    <p align="left"><img src="Pictures/TelnrLos.png" width="525" height="49" align="top"/></p>
                             </div>
                       <div class="TabbedPanelsContent" id="Info">
                             test2
                       </div>
                       <div class="TabbedPanelsContent" id="Gallerij">
                             test3
                       </div>
                            <div class="TabbedPanelsContent" id="Contact">
                    <?php echo '<div id="contact_result">'.$form.'</div>'; ?>
                        </div>
                     </div>
           `     </div>
        </div>
         <div id="WFooter" align="center">
             <footer>Wientjes Voegwerk & Renovatie     ,    03- '02         »        Site by ;    <b>Rob Nijlaan</b>        »        Problemen of vragen over deze site?    -    <b><a href="mailto:[email protected]">[email protected]</a></b></footer>
           </div>
    </div>
    </body>
    </html>
    </
    The CSS:
    @charset "utf-8";
    /* CSS Document */
    html,body {
         height:100%; /* needed for container min-height */
         width:100%;
         background: #FFFFFF url(../Pictures/Background.png) no-repeat center;
         color:#000;
    h1{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif; color: #595999;
    font-weight: bold;
    font-style:italic;
    font-size: 250%;
    h2{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif; color: #595999;
    font-weight: bold;
    font-size: 200%;
    p{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;
    font-size: 110%;
    footer{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;
    font-size: 70%;
    #WContainer{
         position:absolute;
         margin:0 auto;
         width:80%;
         background:none;
         height:auto;
         height:100%;
         min-height:100%;
         margin-left: 10%;
         margin-right: 10%;
    #WHeader{
         height: 195px;
         width:100%;
         margin-bottom: 10px;
         margin-left: 0px;
         margin-right: 10px;
    .VTabbedPanels .TabbedPanelsTabGroup {
         float: left;
         width: 172px;
         height: 75px;
         background-color: #FFF;
         position: relative;
         border-top: solid 0px #FFF;
         border-right: solid 0px #FFF;
         border-left: solid 0px #FFF;
         border-bottom: solid 0px #FFF;
    .VTabbedPanels .TabbedPanelsTab {
         float: none;
         margin: 0px;
         border-top: none;
         border-left: none;
         border-right: none;
    .VTabbedPanels .TabbedPanelsContentGroup {
         margin-left: 220px;
         width: auto;
         height: auto;
         min-height:50%;
         max-width:83%;
         min-width:500px;
         padding: 20px 20px 20px 20px;
         border-left: solid 1px #999;
         border-bottom: solid 2px #999;
         border-top: solid 1px #999;
         border-right: solid 2px #999;
    #WFooter{
         clear:both;
         height: 30px;
         margin-top:1px;
    Also i use "SpryTabbedPanels.js", for the html.
    The Contact form: (adjusted to hide critical info from forum users)
    <?php
    require_once('phpmailer/class.phpmailer.php');
    require_once('xajax/xajax_core/xajax.inc.php');
    $form = '<form id="ContactForm">
                <div class="container">
              <label class="contactlabel">Ùw Naam<br /><input name="name" type="text" class="input" /></label>
              <label class="contactlabel">Uw Email Adres:<br /><input name="email" type="text" class="input" /></label>
              <label class="contactlabel">Uw Telefoonnummer:<br /><input name="phone" type="text" class="input" /></label>
              Typ hier uw bericht:<br />
              <textarea name="msg" cols="1" rows="1"></textarea><br />
                 <input type="button" id="subbtn" class="btn" value="Submit" onclick="xajax_myFunction(xajax.getFormValues(\'ContactForm\'));" />
              <div id="form_msg"></div> //this div will contain error messages
            </div>
         </form>';
    function myFunction($get) { 
        global $form, $error;
        $error = '';
        $objResponse = new xajaxResponse();
        $show_form = true; 
        if (!empty($get['email']) && !empty($get['phone']) && !empty($get['msg']) && !empty($get['name'])) {
            if (preg_match("/^[\w-]+(\.[\w-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4})$/i", trim($get['email']))) {
                $email = preg_replace("/\r\n/", "", $get['email']);
                $from = preg_replace("/\r\n/", "", $get['name']);
               $name = $get['name'];
                $phone = $get['phone'];
             $msg = $get['msg'];
             $mail = new PHPMailer();
                $mail->IsSMTP();
                $mail->Host = "mail.YOURHOST.com";
                $mail->SMTPAuth = true;
                $mail->Username = "USERNAME";
                $mail->Password = "PASSWORD";
                $mail->From = $get['email'];
                $mail->FromName = $get['name'];
                $mail->AddAddress("[email protected]");
                $mail->AddReplyTo($email, $from);
                $mail->Subject = "Er is een bericht verzonden vanuit Wientjesvoegwerk.nl";
                $mail->IsHTML(true);
             $mail->Body = "Name: $name <br/> Email: $email <br/> Phone: $phone <br/> Message: $msg";
                if ($mail->Send()) {
                    $error = "Success! Dank u voor uw interesse! Er wordt zo spoedig mogelijk contact met u opgenomen.";
                    $show_form = false;
                } else {
                    $error = "Er is een probleem ontstaan tijdens het verzenden, probeert u het a.u.b. nog eens.";
                        $show_form = true;
            } else {
                $error = "Het ingevoerde email adress is onjuist. Probeert u het a.u.b. nog eens.";
                   $show_form = true;
        } else {
            $error = "Vul a.u.b. alle nodige velden in!";
              $show_form = true;
        if (!$show_form) {
              $objResponse->assign('contact_result', 'innerHTML', $error);
              } else {
              $objResponse->assign('form_msg', 'innerHTML', $error);
        return $objResponse;
    $xajax = new xajax();
    $xajax->registerFunction('myFunction');
    $xajax->processRequest();
    ?>
    Also "class.phpmailer.php" and "xajax.inc.php" are obviously needed as well as some other files from those packages.
    THE BIG PROBLEMS:
    1. Adding the form to a div (into content div of Spry tabbed panels) results in wrong apearance.
         Footer is put to top.
    2. Adding the form to a div results in broken functions.
         Buttons in the Spry tabs dont work anymore.
    3. Java is messed up.
         in top screen you read:  printJavascript('xajax/'); ?>
         in lower screen in content div:  test2 test3 (text from the 2nd and 3rd Content area of Spry, just so its filled with something) and  '.$form.'  '; ?>
    SOLUTIONS ASKED:
    1. Please help me with the contact form so it will work on my page and no error remains. Im not that good in Java...
    2. Please help me solving the problem with the footer. I dont have any clue anymore why this happens. And why no problems occur without the mail form.
    3. Can anyone tell me why the buttons also lose function? It looks like a similar problem as the footer.
    In short: HELP!

    Thank you for pointing me in the right direction. I must honestly say im a hobby programmer that has the capability to learn fast.
    A few weeks ago i only knew html, actionscript, etc. I never worked with xhtml, javascript, css, etc. untill now.
    But with some help i managed to resolve ALL problems so far, exept 2...
    My site has no errors anymore all files are validated 100%!
    The only 2 problems now are;
         1.     The use of <li> for Spry tabs. They make the buttons have a dot in front of them. I hope this can be changed into something that removes the
                 list dots/numbers.
    So from this:
    button
    to this:
    button
         2.     I like to use this email form from: http://www.webbyzone.com/2010/01/10/make-xajax-phpmailer-contact-forms-work/
    The code is embedded in my site but doesnt work at all. Please take a look at it...

  • Help with e-mailing a form

    Hi, i am new to the forum and I just put up a new wesite for
    my company since the other one was outdated. I look around the
    forum to see what previous post could help me but no such luck. I
    am using Dreamweaver 8 and I need help with emailing a form.
    Here is the code of the form page and the script
    Can someone help me?

    The form needs to submit to a page that will have the email
    processing code
    on it. What you put there will depend on how you are sending
    the mail ..
    i.e. what server components are available to you on the
    server such as JMail
    or CFMail or PHPMail or ASPEMail .. etc. You already know
    what server model
    you are using and you should be able to find out what you
    have to work with
    on your host's web site.
    If this is not already an active web site with a server
    model, you can use
    something like Form Mail, a CGI script that will do that job
    for you ..
    available at
    http://www.cgi-resources.com
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "nitrodragon3000" <[email protected]> wrote
    in message
    news:e8lsmd$151$[email protected]..
    > Hi, i am new to the forum and I just put up a new wesite
    for my company
    > since
    > the other one was outdated. I look around the forum to
    see what previous
    > post
    > could help me but no such luck. I am using Dreamweaver 8
    and I need help
    > with
    > emailing a form.
    >
    > The website address is
    http://www.1helical.com and the
    form is under quote
    > request.
    >
    > Can someone help me?
    >

  • Embedding HTML into forms to make 3rd party Host Work

    My form looks wonderful!  Only one problem.... It doesn't work!
    It won't says the form was submitted successfully, but I don't receive it.  After reading a thread that said I have to make sure my host provider enables PHPmail, I contacted them they said I need to enter the following:
    mail("receiving-email","subject","message-body","headers");
    Into the form to make it work.
    Is this right?
    If so, how and where in the form do I embed it.  I don't want to screw up the widget.  I opened the html page for the form, but again I don't know where to put this line, if at all.
    Thanks in advance,
    Doc

    i tried uploading using FILEZILLA and everything worked perfectly!!
    consider this solved!!

  • Messages killed by spamfilters

    Hello,
    I got problem with spamfilters in MS mail services. People doesn't receive any of my emails from MYDOMAIN.COM.
    Only when someone add [email protected] to contacts or to whitelist he'll get an email.
    This is my email header:
    x-store-info:qAUQJzZ73IJCLUJ+0n7ZQ106eouhodPh79Dtx/H9J/aP1RCEy9grdkgHUSojCnHnl61jVgp9Hz17dFbdQ8kXYrWdq48TlIAODLo8eDYFJ25Ovl6oCsrMXJDUNFc3otewC4Z4Y8/4yt0=
    Authentication-Results: hotmail.com; spf=pass (sender IP is IP.IP.IP.IP) [email protected]; dkim=pass header.d=MYDOMAIN.com; x-hmca=pass [email protected]
    X-SID-PRA: [email protected]
    X-AUTH-Result: PASS
    X-SID-Result: PASS
    X-Message-Status: n:n
    X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MztHRD0zO1NDTD00
    X-Message-Info: 6YO/4nwP5t3KwIKW6Yo/3u9amHsR0ISBh+Sxrd28lw09jmYXvocV3CVBPVc93Ps2Q1g4G9rtnqf723YDoZh0z5DHgUqLwCQvorI/9HQnUxLbQIIlADpq8fbhpFFXZHvB/NOVBH3XsGGjgTZ28Py7FN4Pr/PZIX5HqDp1O3EpnlGHO/wKFQjyfE1aapukqrcJBfyGVDP+4mECulIulHtIb9LZghuy6Yuc
    Received: from MYDOMAIN.com ([IP.IP.IP.IP]) by COL0-MC2-F46.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
    Mon, 27 Jan 2014 23:24:01 -0800
    Received: by MYDOMAIN.com (Postfix, from userid 48)
    id 3BE2E733B; Tue, 28 Jan 2014 07:25:13 +0000 (UTC)
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=MYDOMAIN.com;
    s=default; t=1390893913;
    bh=qgPZteqvGf93SUtBQG4zDAuudngmY07rC2i6V9jIVRo=;
    h=To:Subject:Date:From;
    b=dqmjAdJYQNJyhAbFRUwpIJxOXBLspuV7SzXIbICRhDl0K8ADT/BNZ7osl+bGvZpKv
    YwVi8VkyuW3nE3GqHdfkRF1bTmDkMMAUNiDuw8D48WtM9OJomJN9yraDU3KQy2OvzS
    V143BC1Z9odjUNA3RWpPQSONPBN3BBz90te6ujqI=
    To: username <[email protected]>
    Subject: Password reset
    X-PHP-Originating-Script: 504:class.phpmailer.php
    Date: Tue, 28 Jan 2014 07:25:13 +0000
    From: WPGuards <[email protected]>
    Message-ID: <[email protected]>
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
    X-IP: IP.IP.IP.IP
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="b1_d4f5cd9de538e235c868a2d71198348f"
    Content-Transfer-Encoding: 8bit
    Return-Path: [email protected]
    X-OriginalArrivalTime: 28 Jan 2014 07:24:02.0153 (UTC) FILETIME=[EB0FED90:01CF1BF9]
    Thanks in advance for any help.

    Hello JMikita,
    It is not clear whether you use Outlook or not. It looks like the issue is related to MS services (not only Outlook). That's why I'd recommend asking such questions on the
    Outlook IT Pro Discussions  or
    Community forums instead. The current forum is for Outlook developers.
    I have found a forum thread which describes a similar issue -
    Internal Mail going to junk folder. There are various reasons why emails are treated as a spam. The
    Why Is My Email Going to The Spam Folder? How To Improve Email Delivery article describes common rules for reducing the chance of email being filtered.
    Actually, the problem may depend on Outlook itself too. Outlook performs its own evaluation and determine whether to move or not the incoming email to the Junk Email folder. Note, you can edit the settings on your own. Please see the "Junk " drop
    down menu located on the Home tab, it contains the "Junk E-mail option" menu item:
    The process of filtering Outlook e-mails is described in the
    Description of the improvements and the additions to the Outlook 2003 Junk E-Mail Filter features after you apply Office 2003 SP1 . An old version of Outlook is described, but general rules remain the same.
    Also please take a look at the
    Understanding Anti-Spam and Antivirus Functionality and
    IMF and the Junk E-mail folder in Outlook articles.

  • Form Email and Insert to DB

    I'm trying to get a form both - email and insert into a database the form information.  Below, you can see the code I am using.
    Here is my setup:
    1. I have a form where the action is a file called formmail.php
    2. This file inserts the data into a database and then includes another file called phpmail.php
    3. phpmail.php first looks in a file called zipcodes.php where I've set a number of arrays for various possible zipcodes.
    4. phpmail.php then emails the form data to the email addresses associated with those zipcodes.
    Without the formmail.php step - it works perfectly.
    With the formmail.php step - it inserts it into a database, checks if the email address is formatted correctly, but does not email anyone.
    Do you know why?   Below is the code for the various files:
    formail.php
    <?php
    $con = mysql_connect("localhost","user","password");
    if (!$con)
    die('Could not connect: ' . mysql_error());
    mysql_select_db("phtsystem", $con);
    $sql="INSERT INTO leads (firstname, lastname, address, city, `state`, zip, phone, email, comments, reason) VALUES ('$_POST[name2]','$_POST[last_name]','$_POST[address]','$_POST[city]','$_POST[state]','$_POST[zip]','$_POST[phone2]','$_POST[email]','$_POST[comments]','$_POST[reason]')";
    if (!mysql_query($sql,$con))
    die('Error: ' . mysql_error());
    include "phpmail.php";
    ?>
    phpmail.php
    <?php
    include("zipcodes.php");
    $zip=$_POST["zip"];
              if (in_array($zip, $Nashville)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $Knoxville)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $Huntsville)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $Florida)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $Georgia)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $SouthCarolina)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $NorthCarolina)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $Pennsylvania)) {
    $my_email = "[email protected], [email protected], [email protected]";
              }elseif (in_array($zip, $Maryland)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
               }elseif (in_array($zip, $Virginia)) {
    $my_email = "[email protected], [email protected], [email protected], [email protected]";
               }elseif (in_array($zip, $Texas)) {
    $my_email = "[email protected], [email protected], [email protected]";
    } else { $my_email = "[email protected], [email protected], [email protected]";
    $continue = "/";
    $errors = array();
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc:)/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST) . "This email is from the website.  If it doesn't say specifically what the person is contacting us about, it is most likely a sales lead.";
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "New Lead from PHT.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Dreamweaver Tutorial - Contact Form</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28969997-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body bgcolor="#ffffff" text="#000000">
    <div>
    <center>
    <b>Thank you <?php print stripslashes($_REQUEST['name']); ?></b>
    <br>Your message has been sent
    <p><a href="<?php print $continue; ?>">Click here to continue</a></p>
    </center>
    </div>
    </body>
    </html>
    zipcodes.php
    <?php
    $Nashville = array (37010, 37027, 37040, 37055, 37067, 37075, 37088, 37121, 37133, 37152, 37179, 37201, 37209, 37217, 37228, 37238, 37246, 37015, 37034, 37048, 37063, 37071, 37082, 37115, 37129, 37141, 37167, 37186, 37205, 37213, 37221, 37234, 37242, 37250, 38487, 37011, 37029, 37041, 37056, 37068, 37076, 37089, 37122, 37135, 37153, 37180, 37202, 37210, 37218, 37229, 37239, 37247, 37022, 37035, 37049, 37064, 37072, 37085, 37116, 37130, 37143, 37171, 37187, 37206, 37214, 37222, 37235, 37243, 38401, 37013, 37031, 37043, 37060, 37069, 37077, 37090, 37127, 37136, 37155, 37181, 37203, 37211, 37219, 37230, 37240, 37248, 37024, 37036, 37051, 37065, 37073, 37086, 37118, 37131, 37146, 37172, 37188, 37207, 37215, 37224, 37236, 37244, 38476, 37014, 37032, 37046, 37062, 37070, 37080, 37098, 37128, 37138, 37165, 37184, 37204, 37212, 37220, 37232, 37241, 37249, 37025, 37037, 37052, 37066, 37074, 37087, 37119, 37132, 37148, 37174, 37189, 37208, 37216, 37227, 37237, 37245, 38482);
    ?>
    <?php
    $Knoxville=array(37354, 37709, 37717, 37726, 37737, 37755, 37763, 37770, 37777, 37803, 37819, 37830, 37842, 37849, 37865, 37874, 37886, 37901, 37914, 37918, 37922, 37928, 37932, 37940, 37996, 38504, 37381, 37710, 37719, 37729, 37742, 37756, 37764, 37771, 37779, 37804, 37826, 37831, 37845, 37852, 37866, 37878, 37887, 37902, 37915, 37919, 37923, 37929, 37933, 37950, 37997, 38557, 37701, 37714, 37721, 37732, 37748, 37757, 37766, 37772, 37801, 37806, 37828, 37840, 37846, 37853, 37871, 37882, 37892, 37909, 37916, 37920, 37924, 37930, 37938, 37990, 37998, 38558, 37705, 37716, 37723, 37733, 37754, 37762, 37769, 37774, 37802, 37807, 37829, 37841, 37847, 37854, 37872, 37885, 37893, 37912, 37917, 37921, 37927, 37931, 37939, 37995, 37999);
    ?>
    etc...
    Message was edited by: Drymetal

    Scratch that.  It does work perfectly.   It just took the stupid server 20 minutes to send the emails. 

  • SPF and redirecting Personal Domain Emails to btin...

    Concern has been raised due to  Critical Path not delivering emails that SPF checks might stop emails, using  personal domain email addresses that were redirected (ie forwarded) to btinternet addresses, being delivered. Now that Critical Path appear to have temporarily fixed the issue the following email header obtained after the fix shows that the concerns are unfounded.  
    It is preferable  that when the "temporary" is removed removed from the current fix,  BT ensure that Critical Path are not allowed to prevent delivery of any emails but pass them on to the recipient in a similar way as illustrated below.
    The email header below, taken after the temporary fix by Critical Path, shows that when the redirection takes place no SPF check is done. It also shows that SPF check failure takes place when emails are forwarded from Critical Path to Yahoo.
    Note that most of the header has to be read from bottom to top eg Section A followed by Section B etc.
    The email was to payments@redacted ( ie @xxx.co.uk) that was redirected to [email protected] (ie [email protected])
    The redirection takes place at sections B and C.
    This email has several interesting features two of which are:
    1. It has a spoofed senders address and
    2. It contains a virus.
    EMAIL Header
    X-Apparently-To: [email protected] via 46.228.38.45; Tue, 05 Nov 2013 12:56:56 +0000
    Received-SPF: fail (domain of ups.com does not designate 65.20.0.12 as permitted sender)
    X-YMailISG: xWHRedactedS4oyc-
    X-Originating-IP: [65.20.0.12]
    Authentication-Results: mta1054.bt.mail.ir2.yahoo.com  from=ups.com;
    domainkeys=neutral (no sig);  from=ups.com; dkim=neutral (no sig)
    D
    Received: from 127.0.0.1  (EHLO smtpin26.bt.ext.cpcloud.co.uk) (65.20.0.12)
      by
           mta1054.bt.mail.ir2.yahoo.com with SMTP; Tue, 05 Nov 2013 12:56:56 +0000
    X-RazorGate-Spam: Suspected Spam
    X-CTCH-RefID: str=0001.0A090206.5278DFCF.0130,ss=4,sh,re=0.000,recu=0.000,reip=0.000,vtr=str,vl=3,vh,cl=4,cld=1,fgs=2147483656
    X-CTCH-VOD: Virus
    X-CTCH-Spam: Confirmed
    C
    Received: from mailex.mailcore.me (94.136.40.61)
                        by
              smtpin26.bt.ext.cpcloud.co.uk (8.6.100.99.10223)
            id 5278DFA600034221 for [email protected]; Tue, 5 Nov 2013 12:56:56 +0000
    B
    Received: from sender.siscontroller360.net.br ([192.241.183.204])
                by smtp03.mailcore.me with esmtp (Exim 4.80.1)
                (envelope-from <[email protected]>)
                id 1VdgBi-00084G-Ah
                for payments@REDACTED; Tue, 05 Nov 2013 12:56:56 +0000
    A
    Received: by sender.siscontroller360.net.br (Postfix, from userid 48)
                id 870CA1C0A1B; Tue,  5 Nov 2013 14:56:52 -0200 (BRST)
    To: payments@REDACTED
    Date: Tue, 5 Nov 2013 14:56:52 –0200
    From: UPS Quantum View <[email protected]>
    Message-ID: <[email protected]>
    X-Priority: 3
    X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
    Message-ID:
    Received-SPF: pass (google.com: domain of [email protected] does designate 192.123.32.83 as permitted sender) client-ip=192.123.32.83;
    Received: from 192.123.32.83 (EHLO mailer.ups.com) (192.123.32.83)
    Received: by mailer.ups.com (Postfix, from userid 1000) id A838D7824B;
    X-Mailer: MIME-tools 5.41 (Entity 5.404)
    X-Message-Status: s1:0
    X-SID-PRA: UPS Quantum View<[email protected]>
    X-SID-Result: TempError
    Conversion-With-Loss: Yes
    Sensitivity: 3
    Expiry-Date: Never
    X-MSmail-Priority: High
    X-Originating-Email: UPS Quantum View<[email protected]>
    X-Originating-IP: [92.123.32.83]
    X-iGspam-global: Unsure, spamicity=0.748491 - pe=7.48e-01 - pf=0.748491 - pg=0.748491
    X-oemPro-CSID: MjgxXzI3NA==
    Received: UPS Quantum View<[email protected]>
    Errors-To: [email protected],
                [email protected], [email protected]
    DomainKey-Status: good
    Received-SPF: pass
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
                boundary="b1_575091d94b25242718267b4bd3e3dd7d"
    Subject: UPS Delivery Notification Tracking Number : DIFIFK802DIFIFK296
    X-WebFusion-Spam-Score: 4.3 (++++)
    X-Spam-Score: 4.3 (++++)
    X-WebFusion-Spam-Flag: YES
    X-Spam-Flag: YES

    Oliver341 wrote:
    Amazon - Sender with SPF hard fail policy
    123-reg - email forwarder
    Critical Path - Destination mailbox
    Mail route (prior to relaxation of SPF reject):
    Amazon -> 123-reg
    Works fine
    123-reg -> CP
    Email rejected due to SPF check failed
    The "spf fail" you are seeing in your headers is actually added by Yahoo, since your mailbox has not yet been migrated to CP, and your btinternet mail is being forwarded to your BT Yahoo mailbox. Yahoo do not reject mail on SPF hard fail.   I indicated this in my post.
    Prior to the relaxation of SPF reject by CP, CP was not forwarding your mail to Yahoo because CP was taking the decision to reject the mail on SPF hard fail.
    I have headers before the temporary fix that have no indication of CP checking SPF.
    Mail route (post relaxation of SPF reject):
    Amazon -> 123-reg
    Works fine
    123-reg -> CP
    Email now not rejected due to SPF check failed
    But no indication that it did any checking.
    CP -> Yahoo (if mailbox not yet migrated)
    Yahoo adds SPF fail header but mail still accepted
    My comments on your diagnosis is in red above.
    It looks as if CP might handle "SPF hard fail policy" differently (from the obvious) than other policies eg not report them.
    Has anyone got any headers for BT Mail implementations ?
    Failure to deliver emails to recipients without any notification is unacceptable for any public email service.

  • Php form problem and question

    I am a new web designer who is not code savey yet. Anyway
    during the various sites i have designed i have used 3 different
    forms that process and email it to me using a seperate php form, 1
    in flash, 2 from a standard html form on a windows server. All have
    been uploaded, to the site, tested and worked fine. 2 are in old
    sites, one in my current site. Recently all 3 forms stopped working
    and while they looked like they worked fine they no longer actually
    sent anything. I had a big email arguement with my host and finally
    they added this line into my php script "ini_set
    ("sendmail_from","[email protected]");" email address is example here
    and they added another form to my site called "php4-cgi-fcgi.ini."
    Then my curent form started working again. I haven't changed
    anything, and of course the host never informed me of any changes.
    So why did this need to be added for my form to work again? Does
    this mean they upgraded to another version or something? Ihad a big
    arguement with them because they refused to tell me what they did
    that stopped all my forms from working, they kept acting like it
    was me or my provider that caused the problem, when i am positive
    we were not the problem. Any thoughts?

    doing a google on "ini_set ("sendmail_from" gives a lot of
    info.
    summary- the form script you are using is probably not
    setting a default
    "FROM" email address, so the host has phpmail() reject it as
    possible spam
    abuse.
    The .ini files the host added to your site correct the
    problem. They change
    values for php to use within your hosting domain.
    What php script are you using to send the emails? It is
    probably out of date
    if it doesn't address this issue.
    Off Topic: suggest never arguing with hosting support. Even
    it the person at
    the other end of the phone is an 18 year old drone not
    earning their salt.
    Move the site if needed. Develop social engineering skills to
    get things
    done.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • PHP Email Form is not Emailing

    HI,
    I made a PHP email form and i was wondering if i did it
    correct. I try to send a email but for some reason it wont work
    here is the PHP code:
    <?php
    $emailSubject = 'Computer Question!';
    $webMaster = '[email protected]';
    $nameField = $_POST ['name'];
    $phoneField = $_POST ['phone'];
    $emailField = $_POST ['email'];
    $questionField = $_POST ['question'];
    $body = <<<EOD
    <br><hr><br>
    Name: $name <br>
    Phone: $phone <br>
    Email: $email <br>
    Question: $question <br>
    EOD;
    $headers = "From: $email\r\n";
    $headers .="Content=type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    /* Results Rendered as HTML */
    $theResults = <<<EOD
    ?>
    Here is the Email form:
    :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post"
    action="Contact form 505 test 2.php">
    <table width="70%" border="1" cellpadding="6">
    <tr>
    <th width="16%" scope="col"><div align="right">
    <label for="name">Name:</label>
    </div></th>
    <th width="84%" scope="col"><div align="left">
    <input name="name" type="text" id="name" size="35"
    maxlength="60" />
    </div></th>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="phone ">Phone Number</label>
    </div></th>
    <td><div align="left">
    <input name="phone " type="text" id="phone " size="35"
    maxlength="13" />
    </div></td>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="email">Email:</label>
    </div></th>
    <td><div align="left">
    <input name="email" type="text" id="email" size="35"
    maxlength="40" />
    </div></td>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="question">Question:</label>
    </div></th>
    <td><div align="left">
    <textarea name="question" cols="26" rows="8"
    id="question"></textarea>
    </div></td>
    </tr>
    <tr>
    <th scope="row"> </th>
    <td><label for="Send Email"></label>
    <input type="submit" name="Send Email" id="Send Email"
    value="Submit" /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    Any help would be appreciated!
    thanks

    .oO(jumpman310)
    > I made a PHP email form and i was wondering if i did it
    correct. I try to send
    >a email but for some reason it wont work here is the PHP
    code:
    Next time please be more specific. "won't work" isn't really
    helpful.
    Anyway, the first thing to fix is the error reporting on your
    testing
    server, obviously it's not configured properly. In your
    php.ini these
    directives have to be set:
    error_reporting = E_ALL|E_STRICT
    display_errors = on
    You should get some notices from your script. After fixing
    those issues,
    you should also read about header injection and how to
    prevent it. Your
    script is vulnerable and can be abused for sending spam. Also
    consider
    to use a class like PHPMailer to make things more secure and
    convenient.
    Some further notes about your form markup:
    * It's very good that you make use of labels for your form
    controls, but
    in some cases the IDs of these controls contain spaces, which
    is not
    allowed.
    * You don't really need a label for a submit button.
    * Consider to drop all those div elements in the table
    headers - you
    don't need them. Use CSS to style the labels the way you
    want, e.g.
    form th {text-align: right}
    I also use this:
    label:hover {outline: 1px dotted #666}
    * Check the markup of the "Name" row. The 'scope' attribute
    is incorrect
    and the form control should be inside a 'td', not a 'th'.
    Micha

Maybe you are looking for

  • Actual Varaint Name used in the Background Job

    Hi, When a program is executed in Background made the selection screen variant selected is not the one that is shown in the Background Job Step information. There we see variant as &0000000000044. I want to find the actual variant that was selected a

  • WD4J -- XI -- R/3 Scenario

    Hello All Currently I am working on a scenario which requires accessing of data from R/3 4.6C through BAPI with XI as middle ware from a webdynpro application in Java. My query is that: is it possible to perform RFC lookups directly from webdynpro us

  • ZOnes not coming up after patching

    Hi I patched a T5240 Solaris 10 server having root and zone filesystems in zfs using Live Upgrade . patching and luactivate went on successfully .After reboot the server booted from the new BE but some of the zones did not boot while others started T

  • Vendor   Solicitation orders

    Hola senors, I think I am asking more general questions but if you can help me in this scenario mapping .I am an JD edward consultant and planning to support the Volunatry work . I appreciate your time in answering questions Breifly my scenario is :

  • Will not update to ios7

    I want to download Amazon Kindle app to my ipod touch running ios 6.1.6. Says I need ios7. My settings/general/updates will not allow update, says I AM up to date???