Jump to content

Sending Confirmation Mail


Recommended Posts

i want to send email as user signup on my website . i use php code mail() function for this . but i dont know the settings of heliohost for that . plz help me

 

 

this is my php code :

 

if($status){
$to="$email";
$subject="[Together We] Activate your account";
$message="Hello $username !
Please, confirm your registration by clicking link .Link is valid only for 1 day.
Click to activate:
$from="From : Together We <no-reply@togetherwe.heliohost.org>";
$sentmail=mail($to,$subject,$message,$from);
}

 

 

 

 

I want to use my gmail account for sending and receiving emails because i dont know email properties of heliohost

Edited by deep958
Link to comment
Share on other sites

i used this site for my mail function . by checking status , its showing mail is send but i didnt receive any mail .

am i need to change some heliohost settings??



i got this error while sending mail

 

 

ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes: SMTP error from remote mail server after end of data: 550-5.7.1 [64.62.211.131 11] Our system has detected that this message is\n550-5.7.1 not RFC 5322 compliant:\n550-5.7.1 'From' header is missing.\

Edited by deep958
Link to comment
Share on other sites

If you had read the link I posted there is an example of setting the from header:

<?php
$to = "somebody@example.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";

mail($to,$subject,$txt,$headers);
Link to comment
Share on other sites

if($status){

$to="$email";

$subject="[Together We] Activate your account";

$message="Hello $username !

Please, confirm your registration by clicking link .Link is valid only for 1 day.

Click to activate:




$headers="From : togetherweindia@gmail.com";


$sentmail=mail($to,$subject,$message,$headers);

}
Link to comment
Share on other sites

This works for me.

<?php
$to = "me@gmail.com";
$subject = "[Together We] Activate your account";
$message = "Hello world!";
$headers = "From: no-reply@krydos.heliohost.org\r\n";

mail($to,$subject,$message,$headers);
Link to comment
Share on other sites

In $headers, you r using heliohost mail account, but I want my Gmail account in that place also.
Thanks krydos, you r trying to solve my problem.

 

 

 

$to = "divyansh.agg15@gmail.com";
$subject = "[Together We] Activate your account";
$message = "Hello world!";
$headers = "From: deep958@togetherwe.heliohost.org\r\n";
$sentmail= mail($to,$subject,$message,$headers);

 

 

 

i used this code but still not working

Link to comment
Share on other sites

hurry!

now my code runs . previous code work now . i dont know why it was not working yesterday , but today its working .

Thank you krydos for helping me .

you always help me

 

but it goes into spam folder , do you know how to stop it from going into spam folder

Link to comment
Share on other sites

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.   Paste as plain text instead

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