Contact Form

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/26/2010 12:13:25 PM
Gravatar
Total Posts 26

Contact Form

 

i need help.

I'm using mojoportal-2-3-3-9.

i would like know if there is any way to send an email message from the external contact form module

 

thanks

 

mojo is wonderful.

congratulations.

 

hugs to all
 

2/26/2010 12:59:27 PM
Gravatar
Total Posts 2239

Re: Contact Form

Hi,

That is what the Contact Form is designed to do. Have you followed the instructions on configuring your site to send email? http://www.mojoportal.com/emailconfiguration.aspx.

You can also read the documentation on the Contact Forum module. http://www.mojoportal.com/using-the-contact-form.aspx.

If you have configured your site to send email but you are getting errors, please post the errors so we can help you more.

HTH,
Joe D.

3/1/2010 11:31:05 AM
Gravatar
Total Posts 26

Re: Contact Form

Hi Joe,

i have configured mine site to send email but you are getting errors,

the system log say :

2010-03-01 14:19:12,700 ERROR mojoPortal.Net.Email - all retries failed sending email to diegobcarneiro_@gmail.com from admin@admin.com, message was: Admin<br />admin@admin.com<br /><br /><p>
asdasdasdasa</p>
<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)<br />REMOTE_HOST: 200.129.43.145<br />REMOTE_ADDR: 200.129.43.145<br />LOCAL_ADDR: 200.129.43.145<br />
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for diegobcarneiro_@gmail.com
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)
2010-03-01 14:22:49,888 ERROR mojoPortal.Net.Email - invalid bcc address diegob@vdl.ufc.br|diegobcarneiro@gmail.com
2010-03-01 14:22:49,919 ERROR mojoPortal.Net.Email - error sending email to diegobcarneiro@gmail.com from admin@admin.com, will retry
2010-03-01 14:22:52,919 ERROR mojoPortal.Net.Email - all retries failed sending email to diegobcarneiro@gmail.com from admin@admin.com, message was: Admin<br />admin@admin.com<br /><br /><p>
sdasdasdasdas</p>
<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)<br />REMOTE_HOST: 200.129.43.145<br />REMOTE_ADDR: 200.129.43.145<br />LOCAL_ADDR: 200.129.43.145<br />
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for diegobcarneiro@gmail.com
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)

 

 

web.config:
<add key="DisableDotNetOpenMail" value="true" />
<add key="SMTPServer" value="smtp.gmail.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="true" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="diegobcarneiro@gmail.com" />
<add key="SMTPPassword" value="password" />
<add key="SMTPTimeoutInMilliseconds" value="30000" />
<!-- leave this blank for ascii encoding, allowed values are utf-8, utf-32, and unicode -->
<add key="SmtpPreferredEncoding" value="" />

 

<system.net>
<mailSettings>
<smtp from="mygmail@gmail.com">
<network host="200.129.43.130" port="25" password="mypassword" userName="diegob" />
</smtp>
</mailSettings>

</system.net>

 

 

contact form settings:

emailaddress to recieve: diegobcarneiro@gmail.com|diegob@virtual.ufc.br

Display Alias(es) for Receiving Email Address(es): diegobcarneiro@gmail.com|diegob@virtual.ufc.br

 

 

i need help,

 

hugs to all

 

thank's everybody

3/1/2010 2:31:59 PM
Gravatar
Total Posts 2239

Re: Contact Form

It appears that your mail host is not allowing you to send email:

The server response was: 5.7.1 Unable to relay...

I suggest checking your Gmail POP settings: http://mail.google.com/support/bin/answer.py?hl=en&answer=13273. I think your Gmail account needs to be setup to use POP in order for you to have relay access to their SMTP server.

HTH,
Joe D.

3/1/2010 2:38:47 PM
Gravatar
Total Posts 18439

Re: Contact Form

Also, gmail is probably not going to let you send mail from an address other than your own. Note the error says:

all retries failed sending email to diegobcarneiro_@gmail.com from admin@admin.com

The from address is admin@admin.com so it must mean you configured the contact form to use the entered address as the from address, while this is allowed it is not recommended and may not work for gmail. Also you would need to put your gmail address as the default from address in site settings.

Hope it helps,

Joe

3/1/2010 2:41:16 PM
Gravatar
Total Posts 2239

Re: Contact Form

Joe, good point. I missed that little detail! I should've read the error more closely.

-Joe D.

3/2/2010 5:41:56 AM
Gravatar
Total Posts 26

Re: Contact Form

hi, 

 

first,

I would like to thank you for your help....

 

i did the following changes:

 

in iis:  I gave Permissions for sending smtp

ip:127.0.0.1

 

in web.config:

 

<add key="DisableDotNetOpenMail" value="true" />
<add key="SMTPServer" value="localhost" />
<add key="SMTPRequiresAuthentication" value="false" />
<add key="SMTPUseSsl" value="true" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="diegob@virtual.ufc.br" />
<add key="SMTPPassword" value="" />
<add key="SMTPTimeoutInMilliseconds" value="30000" />
<!-- leave this blank for ascii encoding, allowed values are utf-8, utf-32, and unicode -->
<add key="SmtpPreferredEncoding" value="" />

 

<system.net>
<mailSettings>
<smtp from="diegob@virtual.ufc.br">
<network host="localhost" port="25" password="" userName="" />
</smtp>
</mailSettings>

</system.net>

 

 

in contact form settings:

e-mail :diegob@virtual.ufc.br
Display Alias(es) for Receiving Email Address(es) : diegob@virtual.ufc.br

in site settings:diegob@virtual.ufc.br

 

in email:I set the email for him to receive pop

 

but,

i don't recive the emails,

and shows no errors in system.log

hugs to all,

 

and thank's joe's

3/4/2010 12:17:33 PM
Gravatar
Total Posts 2239

Re: Contact Form

Hi,

If you are not seeing any errors in the mojoPortal log then the email is being sent properly from mojoPortal. You will have to investigate as to why the email is not getting to your inbox. It more than likely is being marked as spam.

HTH,
Joe D.

You must sign in to post in the forums. This thread is closed to new posts.